Home | History | Annotate | Download | only in gin
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
      6 LOCAL_MODULE := gin_gin_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES := \
     14 	$(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp,,,$(GYP_VAR_PREFIX))/v8.stamp
     15 
     16 GYP_GENERATED_OUTPUTS :=
     17 
     18 # Make sure our deps and generated files are built first.
     19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     20 
     21 LOCAL_CPP_EXTENSION := .cc
     22 LOCAL_GENERATED_SOURCES :=
     23 
     24 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     25 
     26 LOCAL_SRC_FILES := \
     27 	gin/arguments.cc \
     28 	gin/array_buffer.cc \
     29 	gin/context_holder.cc \
     30 	gin/converter.cc \
     31 	gin/debug_impl.cc \
     32 	gin/dictionary.cc \
     33 	gin/function_template.cc \
     34 	gin/interceptor.cc \
     35 	gin/isolate_holder.cc \
     36 	gin/modules/console.cc \
     37 	gin/modules/file_module_provider.cc \
     38 	gin/modules/module_registry.cc \
     39 	gin/modules/module_runner_delegate.cc \
     40 	gin/modules/timer.cc \
     41 	gin/object_template_builder.cc \
     42 	gin/per_context_data.cc \
     43 	gin/per_isolate_data.cc \
     44 	gin/runner.cc \
     45 	gin/run_microtasks_observer.cc \
     46 	gin/shell_runner.cc \
     47 	gin/try_catch.cc \
     48 	gin/v8_platform.cc \
     49 	gin/wrappable.cc \
     50 	gin/wrapper_info.cc
     51 
     52 
     53 # Flags passed to both C and C++ files.
     54 MY_CFLAGS_Debug := \
     55 	--param=ssp-buffer-size=4 \
     56 	-Werror \
     57 	-fno-strict-aliasing \
     58 	-Wall \
     59 	-Wno-unused-parameter \
     60 	-Wno-missing-field-initializers \
     61 	-fvisibility=hidden \
     62 	-pipe \
     63 	-fPIC \
     64 	-Wno-unused-local-typedefs \
     65 	-msse2 \
     66 	-mfpmath=sse \
     67 	-mmmx \
     68 	-m32 \
     69 	-ffunction-sections \
     70 	-funwind-tables \
     71 	-g \
     72 	-fno-short-enums \
     73 	-finline-limit=64 \
     74 	-Wa,--noexecstack \
     75 	-U_FORTIFY_SOURCE \
     76 	-Wno-extra \
     77 	-Wno-ignored-qualifiers \
     78 	-Wno-type-limits \
     79 	-Wno-unused-but-set-variable \
     80 	-fno-stack-protector \
     81 	-Os \
     82 	-g \
     83 	-gdwarf-4 \
     84 	-fdata-sections \
     85 	-ffunction-sections \
     86 	-fomit-frame-pointer \
     87 	-funwind-tables
     88 
     89 MY_DEFS_Debug := \
     90 	'-DV8_DEPRECATION_WARNINGS' \
     91 	'-D_FILE_OFFSET_BITS=64' \
     92 	'-DNO_TCMALLOC' \
     93 	'-DDISABLE_NACL' \
     94 	'-DCHROMIUM_BUILD' \
     95 	'-DUSE_LIBJPEG_TURBO=1' \
     96 	'-DENABLE_WEBRTC=1' \
     97 	'-DUSE_PROPRIETARY_CODECS' \
     98 	'-DENABLE_BROWSER_CDMS' \
     99 	'-DENABLE_CONFIGURATION_POLICY' \
    100 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    101 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    102 	'-DENABLE_EGLIMAGE=1' \
    103 	'-DCLD_VERSION=1' \
    104 	'-DENABLE_PRINTING=1' \
    105 	'-DENABLE_MANAGED_USERS=1' \
    106 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    107 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    108 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    109 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    110 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    111 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    112 	'-DVIDEO_HOLE=1' \
    113 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    114 	'-DGIN_IMPLEMENTATION' \
    115 	'-DUSE_OPENSSL=1' \
    116 	'-DUSE_OPENSSL_CERTS=1' \
    117 	'-D__STDC_CONSTANT_MACROS' \
    118 	'-D__STDC_FORMAT_MACROS' \
    119 	'-DANDROID' \
    120 	'-D__GNU_SOURCE=1' \
    121 	'-DUSE_STLPORT=1' \
    122 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    123 	'-DCHROME_BUILD_ID=""' \
    124 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    125 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    126 	'-D_DEBUG'
    127 
    128 
    129 # Include paths placed before CFLAGS/CPPFLAGS
    130 LOCAL_C_INCLUDES_Debug := \
    131 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    132 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    133 	$(gyp_shared_intermediate_dir) \
    134 	$(LOCAL_PATH) \
    135 	$(LOCAL_PATH)/v8/include \
    136 	$(PWD)/frameworks/wilhelm/include \
    137 	$(PWD)/bionic \
    138 	$(PWD)/external/stlport/stlport
    139 
    140 
    141 # Flags passed to only C++ (and not C) files.
    142 LOCAL_CPPFLAGS_Debug := \
    143 	-fno-exceptions \
    144 	-fno-rtti \
    145 	-fno-threadsafe-statics \
    146 	-fvisibility-inlines-hidden \
    147 	-Wsign-compare \
    148 	-std=gnu++11 \
    149 	-Wno-narrowing \
    150 	-Wno-literal-suffix \
    151 	-Wno-non-virtual-dtor \
    152 	-Wno-sign-promo
    153 
    154 
    155 # Flags passed to both C and C++ files.
    156 MY_CFLAGS_Release := \
    157 	--param=ssp-buffer-size=4 \
    158 	-Werror \
    159 	-fno-strict-aliasing \
    160 	-Wall \
    161 	-Wno-unused-parameter \
    162 	-Wno-missing-field-initializers \
    163 	-fvisibility=hidden \
    164 	-pipe \
    165 	-fPIC \
    166 	-Wno-unused-local-typedefs \
    167 	-msse2 \
    168 	-mfpmath=sse \
    169 	-mmmx \
    170 	-m32 \
    171 	-ffunction-sections \
    172 	-funwind-tables \
    173 	-g \
    174 	-fno-short-enums \
    175 	-finline-limit=64 \
    176 	-Wa,--noexecstack \
    177 	-U_FORTIFY_SOURCE \
    178 	-Wno-extra \
    179 	-Wno-ignored-qualifiers \
    180 	-Wno-type-limits \
    181 	-Wno-unused-but-set-variable \
    182 	-fno-stack-protector \
    183 	-Os \
    184 	-fno-ident \
    185 	-fdata-sections \
    186 	-ffunction-sections \
    187 	-fomit-frame-pointer \
    188 	-funwind-tables
    189 
    190 MY_DEFS_Release := \
    191 	'-DV8_DEPRECATION_WARNINGS' \
    192 	'-D_FILE_OFFSET_BITS=64' \
    193 	'-DNO_TCMALLOC' \
    194 	'-DDISABLE_NACL' \
    195 	'-DCHROMIUM_BUILD' \
    196 	'-DUSE_LIBJPEG_TURBO=1' \
    197 	'-DENABLE_WEBRTC=1' \
    198 	'-DUSE_PROPRIETARY_CODECS' \
    199 	'-DENABLE_BROWSER_CDMS' \
    200 	'-DENABLE_CONFIGURATION_POLICY' \
    201 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    202 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    203 	'-DENABLE_EGLIMAGE=1' \
    204 	'-DCLD_VERSION=1' \
    205 	'-DENABLE_PRINTING=1' \
    206 	'-DENABLE_MANAGED_USERS=1' \
    207 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    208 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    209 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    210 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    211 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    212 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    213 	'-DVIDEO_HOLE=1' \
    214 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    215 	'-DGIN_IMPLEMENTATION' \
    216 	'-DUSE_OPENSSL=1' \
    217 	'-DUSE_OPENSSL_CERTS=1' \
    218 	'-D__STDC_CONSTANT_MACROS' \
    219 	'-D__STDC_FORMAT_MACROS' \
    220 	'-DANDROID' \
    221 	'-D__GNU_SOURCE=1' \
    222 	'-DUSE_STLPORT=1' \
    223 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    224 	'-DCHROME_BUILD_ID=""' \
    225 	'-DNDEBUG' \
    226 	'-DNVALGRIND' \
    227 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    228 	'-D_FORTIFY_SOURCE=2'
    229 
    230 
    231 # Include paths placed before CFLAGS/CPPFLAGS
    232 LOCAL_C_INCLUDES_Release := \
    233 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    234 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    235 	$(gyp_shared_intermediate_dir) \
    236 	$(LOCAL_PATH) \
    237 	$(LOCAL_PATH)/v8/include \
    238 	$(PWD)/frameworks/wilhelm/include \
    239 	$(PWD)/bionic \
    240 	$(PWD)/external/stlport/stlport
    241 
    242 
    243 # Flags passed to only C++ (and not C) files.
    244 LOCAL_CPPFLAGS_Release := \
    245 	-fno-exceptions \
    246 	-fno-rtti \
    247 	-fno-threadsafe-statics \
    248 	-fvisibility-inlines-hidden \
    249 	-Wsign-compare \
    250 	-std=gnu++11 \
    251 	-Wno-narrowing \
    252 	-Wno-literal-suffix \
    253 	-Wno-non-virtual-dtor \
    254 	-Wno-sign-promo
    255 
    256 
    257 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    258 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    259 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    260 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    261 ### Rules for final target.
    262 
    263 LOCAL_SHARED_LIBRARIES := \
    264 	libstlport \
    265 	libdl
    266 
    267 # Add target alias to "gyp_all_modules" target.
    268 .PHONY: gyp_all_modules
    269 gyp_all_modules: gin_gin_gyp
    270 
    271 # Alias gyp target name.
    272 .PHONY: gin
    273 gin: gin_gin_gyp
    274 
    275 include $(BUILD_STATIC_LIBRARY)
    276