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 	-fstack-protector \
     56 	--param=ssp-buffer-size=4 \
     57 	-Werror \
     58 	-fno-strict-aliasing \
     59 	-Wall \
     60 	-Wno-unused-parameter \
     61 	-Wno-missing-field-initializers \
     62 	-fvisibility=hidden \
     63 	-pipe \
     64 	-fPIC \
     65 	-Wno-unused-local-typedefs \
     66 	-m64 \
     67 	-march=x86-64 \
     68 	-ffunction-sections \
     69 	-funwind-tables \
     70 	-g \
     71 	-fstack-protector \
     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 	-Os \
     81 	-g \
     82 	-gdwarf-4 \
     83 	-fdata-sections \
     84 	-ffunction-sections \
     85 	-fomit-frame-pointer \
     86 	-funwind-tables
     87 
     88 MY_DEFS_Debug := \
     89 	'-DV8_DEPRECATION_WARNINGS' \
     90 	'-D_FILE_OFFSET_BITS=64' \
     91 	'-DNO_TCMALLOC' \
     92 	'-DDISABLE_NACL' \
     93 	'-DCHROMIUM_BUILD' \
     94 	'-DUSE_LIBJPEG_TURBO=1' \
     95 	'-DENABLE_WEBRTC=1' \
     96 	'-DUSE_PROPRIETARY_CODECS' \
     97 	'-DENABLE_BROWSER_CDMS' \
     98 	'-DENABLE_CONFIGURATION_POLICY' \
     99 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    100 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    101 	'-DENABLE_EGLIMAGE=1' \
    102 	'-DCLD_VERSION=1' \
    103 	'-DENABLE_PRINTING=1' \
    104 	'-DENABLE_MANAGED_USERS=1' \
    105 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    106 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    107 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    108 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    109 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    110 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    111 	'-DVIDEO_HOLE=1' \
    112 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    113 	'-DGIN_IMPLEMENTATION' \
    114 	'-DUSE_OPENSSL=1' \
    115 	'-DUSE_OPENSSL_CERTS=1' \
    116 	'-D__STDC_CONSTANT_MACROS' \
    117 	'-D__STDC_FORMAT_MACROS' \
    118 	'-DANDROID' \
    119 	'-D__GNU_SOURCE=1' \
    120 	'-DUSE_STLPORT=1' \
    121 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    122 	'-DCHROME_BUILD_ID=""' \
    123 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    124 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    125 	'-D_DEBUG'
    126 
    127 
    128 # Include paths placed before CFLAGS/CPPFLAGS
    129 LOCAL_C_INCLUDES_Debug := \
    130 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    131 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    132 	$(gyp_shared_intermediate_dir) \
    133 	$(LOCAL_PATH) \
    134 	$(LOCAL_PATH)/v8/include \
    135 	$(PWD)/frameworks/wilhelm/include \
    136 	$(PWD)/bionic \
    137 	$(PWD)/external/stlport/stlport
    138 
    139 
    140 # Flags passed to only C++ (and not C) files.
    141 LOCAL_CPPFLAGS_Debug := \
    142 	-fno-exceptions \
    143 	-fno-rtti \
    144 	-fno-threadsafe-statics \
    145 	-fvisibility-inlines-hidden \
    146 	-Wsign-compare \
    147 	-std=gnu++11 \
    148 	-Wno-narrowing \
    149 	-Wno-literal-suffix \
    150 	-Wno-non-virtual-dtor \
    151 	-Wno-sign-promo
    152 
    153 
    154 # Flags passed to both C and C++ files.
    155 MY_CFLAGS_Release := \
    156 	-fstack-protector \
    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 	-m64 \
    168 	-march=x86-64 \
    169 	-ffunction-sections \
    170 	-funwind-tables \
    171 	-g \
    172 	-fstack-protector \
    173 	-fno-short-enums \
    174 	-finline-limit=64 \
    175 	-Wa,--noexecstack \
    176 	-U_FORTIFY_SOURCE \
    177 	-Wno-extra \
    178 	-Wno-ignored-qualifiers \
    179 	-Wno-type-limits \
    180 	-Wno-unused-but-set-variable \
    181 	-Os \
    182 	-fno-ident \
    183 	-fdata-sections \
    184 	-ffunction-sections \
    185 	-fomit-frame-pointer \
    186 	-funwind-tables
    187 
    188 MY_DEFS_Release := \
    189 	'-DV8_DEPRECATION_WARNINGS' \
    190 	'-D_FILE_OFFSET_BITS=64' \
    191 	'-DNO_TCMALLOC' \
    192 	'-DDISABLE_NACL' \
    193 	'-DCHROMIUM_BUILD' \
    194 	'-DUSE_LIBJPEG_TURBO=1' \
    195 	'-DENABLE_WEBRTC=1' \
    196 	'-DUSE_PROPRIETARY_CODECS' \
    197 	'-DENABLE_BROWSER_CDMS' \
    198 	'-DENABLE_CONFIGURATION_POLICY' \
    199 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    200 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    201 	'-DENABLE_EGLIMAGE=1' \
    202 	'-DCLD_VERSION=1' \
    203 	'-DENABLE_PRINTING=1' \
    204 	'-DENABLE_MANAGED_USERS=1' \
    205 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    206 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    207 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    208 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    209 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    210 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    211 	'-DVIDEO_HOLE=1' \
    212 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    213 	'-DGIN_IMPLEMENTATION' \
    214 	'-DUSE_OPENSSL=1' \
    215 	'-DUSE_OPENSSL_CERTS=1' \
    216 	'-D__STDC_CONSTANT_MACROS' \
    217 	'-D__STDC_FORMAT_MACROS' \
    218 	'-DANDROID' \
    219 	'-D__GNU_SOURCE=1' \
    220 	'-DUSE_STLPORT=1' \
    221 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    222 	'-DCHROME_BUILD_ID=""' \
    223 	'-DNDEBUG' \
    224 	'-DNVALGRIND' \
    225 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    226 	'-D_FORTIFY_SOURCE=2'
    227 
    228 
    229 # Include paths placed before CFLAGS/CPPFLAGS
    230 LOCAL_C_INCLUDES_Release := \
    231 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    232 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    233 	$(gyp_shared_intermediate_dir) \
    234 	$(LOCAL_PATH) \
    235 	$(LOCAL_PATH)/v8/include \
    236 	$(PWD)/frameworks/wilhelm/include \
    237 	$(PWD)/bionic \
    238 	$(PWD)/external/stlport/stlport
    239 
    240 
    241 # Flags passed to only C++ (and not C) files.
    242 LOCAL_CPPFLAGS_Release := \
    243 	-fno-exceptions \
    244 	-fno-rtti \
    245 	-fno-threadsafe-statics \
    246 	-fvisibility-inlines-hidden \
    247 	-Wsign-compare \
    248 	-std=gnu++11 \
    249 	-Wno-narrowing \
    250 	-Wno-literal-suffix \
    251 	-Wno-non-virtual-dtor \
    252 	-Wno-sign-promo
    253 
    254 
    255 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    256 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    257 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    258 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    259 ### Rules for final target.
    260 
    261 LOCAL_SHARED_LIBRARIES := \
    262 	libstlport \
    263 	libdl
    264 
    265 # Add target alias to "gyp_all_modules" target.
    266 .PHONY: gyp_all_modules
    267 gyp_all_modules: gin_gin_gyp
    268 
    269 # Alias gyp target name.
    270 .PHONY: gin
    271 gin: gin_gin_gyp
    272 
    273 include $(BUILD_STATIC_LIBRARY)
    274