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 := v8_tools_gyp_v8_snapshot_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(gyp_shared_intermediate_dir)/mksnapshot \ 16 $(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/js2c.stamp \ 17 $(call intermediates-dir-for,GYP,v8_tools_gyp_generate_trig_table_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/generate_trig_table.stamp 18 19 ### Rules for action "run_mksnapshot": 20 $(gyp_intermediate_dir)/snapshot.cc: gyp_local_path := $(LOCAL_PATH) 21 $(gyp_intermediate_dir)/snapshot.cc: gyp_var_prefix := $(GYP_VAR_PREFIX) 22 $(gyp_intermediate_dir)/snapshot.cc: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 23 $(gyp_intermediate_dir)/snapshot.cc: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 24 $(gyp_intermediate_dir)/snapshot.cc: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 25 $(gyp_intermediate_dir)/snapshot.cc: $(gyp_shared_intermediate_dir)/mksnapshot $(GYP_TARGET_DEPENDENCIES) 26 @echo "Gyp action: v8_tools_gyp_v8_gyp_v8_snapshot_target_run_mksnapshot ($@)" 27 $(hide)cd $(gyp_local_path)/v8/tools/gyp; mkdir -p $(gyp_intermediate_dir); "$(gyp_shared_intermediate_dir)/mksnapshot" --log-snapshot-positions --logfile "$(gyp_intermediate_dir)/snapshot.log" --random-seed 314159265 "$(gyp_intermediate_dir)/snapshot.cc" 28 29 30 31 GYP_GENERATED_OUTPUTS := \ 32 $(gyp_intermediate_dir)/snapshot.cc 33 34 # Make sure our deps and generated files are built first. 35 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 36 37 LOCAL_CPP_EXTENSION := .cc 38 $(gyp_intermediate_dir)/libraries.cc: $(gyp_shared_intermediate_dir)/libraries.cc 39 mkdir -p $(@D); cp $< $@ 40 $(gyp_intermediate_dir)/experimental-libraries.cc: $(gyp_shared_intermediate_dir)/experimental-libraries.cc 41 mkdir -p $(@D); cp $< $@ 42 $(gyp_intermediate_dir)/trig-table.cc: $(gyp_shared_intermediate_dir)/trig-table.cc 43 mkdir -p $(@D); cp $< $@ 44 LOCAL_GENERATED_SOURCES := \ 45 $(gyp_intermediate_dir)/libraries.cc \ 46 $(gyp_intermediate_dir)/experimental-libraries.cc \ 47 $(gyp_intermediate_dir)/trig-table.cc \ 48 $(gyp_intermediate_dir)/snapshot.cc 49 50 GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 51 $(gyp_shared_intermediate_dir) 52 53 LOCAL_SRC_FILES := 54 55 56 # Flags passed to both C and C++ files. 57 MY_CFLAGS_Debug := \ 58 -fstack-protector \ 59 --param=ssp-buffer-size=4 \ 60 \ 61 -fno-exceptions \ 62 -fno-strict-aliasing \ 63 -Wno-unused-parameter \ 64 -Wno-missing-field-initializers \ 65 -fvisibility=hidden \ 66 -pipe \ 67 -fPIC \ 68 -Wno-unused-local-typedefs \ 69 -Wno-format \ 70 -EL \ 71 -mhard-float \ 72 -ffunction-sections \ 73 -funwind-tables \ 74 -g \ 75 -fstack-protector \ 76 -fno-short-enums \ 77 -finline-limit=64 \ 78 -Wa,--noexecstack \ 79 -U_FORTIFY_SOURCE \ 80 -Wno-extra \ 81 -Wno-ignored-qualifiers \ 82 -Wno-type-limits \ 83 -Wno-unused-but-set-variable \ 84 -Wno-address \ 85 -Wno-format-security \ 86 -Wno-return-type \ 87 -Wno-sequence-point \ 88 -Os \ 89 -g \ 90 -fdata-sections \ 91 -ffunction-sections \ 92 -fomit-frame-pointer \ 93 -funwind-tables 94 95 MY_DEFS_Debug := \ 96 '-DV8_DEPRECATION_WARNINGS' \ 97 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 98 '-D_FILE_OFFSET_BITS=64' \ 99 '-DNO_TCMALLOC' \ 100 '-DDISABLE_NACL' \ 101 '-DCHROMIUM_BUILD' \ 102 '-DUSE_LIBJPEG_TURBO=1' \ 103 '-DENABLE_WEBRTC=1' \ 104 '-DUSE_PROPRIETARY_CODECS' \ 105 '-DENABLE_BROWSER_CDMS' \ 106 '-DENABLE_CONFIGURATION_POLICY' \ 107 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 108 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 109 '-DENABLE_EGLIMAGE=1' \ 110 '-DCLD_VERSION=1' \ 111 '-DENABLE_PRINTING=1' \ 112 '-DENABLE_MANAGED_USERS=1' \ 113 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 114 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 115 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 116 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 117 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 118 '-DVIDEO_HOLE=1' \ 119 '-DV8_TARGET_ARCH_MIPS' \ 120 '-DCAN_USE_FPU_INSTRUCTIONS' \ 121 '-D__mips_hard_float=1' \ 122 '-D_MIPS_ARCH_MIPS32R2' \ 123 '-DV8_I18N_SUPPORT' \ 124 '-DUSE_OPENSSL=1' \ 125 '-DUSE_OPENSSL_CERTS=1' \ 126 '-DANDROID' \ 127 '-D__GNU_SOURCE=1' \ 128 '-DUSE_STLPORT=1' \ 129 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 130 '-DCHROME_BUILD_ID=""' \ 131 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 132 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 133 '-D_DEBUG' \ 134 '-DENABLE_DISASSEMBLER' \ 135 '-DV8_ENABLE_CHECKS' \ 136 '-DOBJECT_PRINT' \ 137 '-DVERIFY_HEAP' \ 138 '-DENABLE_EXTRA_CHECKS' \ 139 '-DENABLE_HANDLE_ZAPPING' 140 141 142 # Include paths placed before CFLAGS/CPPFLAGS 143 LOCAL_C_INCLUDES_Debug := \ 144 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 145 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 146 $(LOCAL_PATH)/v8 \ 147 $(gyp_shared_intermediate_dir) \ 148 $(PWD)/frameworks/wilhelm/include \ 149 $(PWD)/bionic \ 150 $(PWD)/external/stlport/stlport 151 152 153 # Flags passed to only C++ (and not C) files. 154 LOCAL_CPPFLAGS_Debug := \ 155 -fno-rtti \ 156 -fno-threadsafe-statics \ 157 -fvisibility-inlines-hidden \ 158 -Wno-deprecated \ 159 -Wno-uninitialized \ 160 -Wno-non-virtual-dtor \ 161 -Wno-sign-promo \ 162 -Wno-non-virtual-dtor 163 164 165 LOCAL_FDO_SUPPORT_Debug := false 166 167 # Flags passed to both C and C++ files. 168 MY_CFLAGS_Release := \ 169 -fstack-protector \ 170 --param=ssp-buffer-size=4 \ 171 \ 172 -fno-exceptions \ 173 -fno-strict-aliasing \ 174 -Wno-unused-parameter \ 175 -Wno-missing-field-initializers \ 176 -fvisibility=hidden \ 177 -pipe \ 178 -fPIC \ 179 -Wno-unused-local-typedefs \ 180 -Wno-format \ 181 -EL \ 182 -mhard-float \ 183 -ffunction-sections \ 184 -funwind-tables \ 185 -g \ 186 -fstack-protector \ 187 -fno-short-enums \ 188 -finline-limit=64 \ 189 -Wa,--noexecstack \ 190 -U_FORTIFY_SOURCE \ 191 -Wno-extra \ 192 -Wno-ignored-qualifiers \ 193 -Wno-type-limits \ 194 -Wno-unused-but-set-variable \ 195 -Wno-address \ 196 -Wno-format-security \ 197 -Wno-return-type \ 198 -Wno-sequence-point \ 199 -fno-ident \ 200 -fdata-sections \ 201 -ffunction-sections \ 202 -fomit-frame-pointer \ 203 -funwind-tables \ 204 -fdata-sections \ 205 -ffunction-sections \ 206 -O2 207 208 MY_DEFS_Release := \ 209 '-DV8_DEPRECATION_WARNINGS' \ 210 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 211 '-D_FILE_OFFSET_BITS=64' \ 212 '-DNO_TCMALLOC' \ 213 '-DDISABLE_NACL' \ 214 '-DCHROMIUM_BUILD' \ 215 '-DUSE_LIBJPEG_TURBO=1' \ 216 '-DENABLE_WEBRTC=1' \ 217 '-DUSE_PROPRIETARY_CODECS' \ 218 '-DENABLE_BROWSER_CDMS' \ 219 '-DENABLE_CONFIGURATION_POLICY' \ 220 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 221 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 222 '-DENABLE_EGLIMAGE=1' \ 223 '-DCLD_VERSION=1' \ 224 '-DENABLE_PRINTING=1' \ 225 '-DENABLE_MANAGED_USERS=1' \ 226 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 227 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 228 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 229 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 230 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 231 '-DVIDEO_HOLE=1' \ 232 '-DV8_TARGET_ARCH_MIPS' \ 233 '-DCAN_USE_FPU_INSTRUCTIONS' \ 234 '-D__mips_hard_float=1' \ 235 '-D_MIPS_ARCH_MIPS32R2' \ 236 '-DV8_I18N_SUPPORT' \ 237 '-DUSE_OPENSSL=1' \ 238 '-DUSE_OPENSSL_CERTS=1' \ 239 '-DANDROID' \ 240 '-D__GNU_SOURCE=1' \ 241 '-DUSE_STLPORT=1' \ 242 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 243 '-DCHROME_BUILD_ID=""' \ 244 '-DNDEBUG' \ 245 '-DNVALGRIND' \ 246 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 247 248 249 # Include paths placed before CFLAGS/CPPFLAGS 250 LOCAL_C_INCLUDES_Release := \ 251 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 252 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 253 $(LOCAL_PATH)/v8 \ 254 $(gyp_shared_intermediate_dir) \ 255 $(PWD)/frameworks/wilhelm/include \ 256 $(PWD)/bionic \ 257 $(PWD)/external/stlport/stlport 258 259 260 # Flags passed to only C++ (and not C) files. 261 LOCAL_CPPFLAGS_Release := \ 262 -fno-rtti \ 263 -fno-threadsafe-statics \ 264 -fvisibility-inlines-hidden \ 265 -Wno-deprecated \ 266 -Wno-uninitialized \ 267 -Wno-non-virtual-dtor \ 268 -Wno-sign-promo \ 269 -Wno-non-virtual-dtor 270 271 272 LOCAL_FDO_SUPPORT_Release := true 273 274 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 275 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 276 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 277 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 278 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 279 ### Rules for final target. 280 281 LOCAL_LDFLAGS_Debug := \ 282 -Wl,-z,now \ 283 -Wl,-z,relro \ 284 -Wl,--fatal-warnings \ 285 -Wl,-z,noexecstack \ 286 -fPIC \ 287 -EL \ 288 -Wl,--no-keep-memory \ 289 -nostdlib \ 290 -Wl,--no-undefined \ 291 -Wl,--exclude-libs=ALL \ 292 -Wl,--warn-shared-textrel \ 293 -Wl,-O1 \ 294 -Wl,--as-needed 295 296 297 LOCAL_LDFLAGS_Release := \ 298 -Wl,-z,now \ 299 -Wl,-z,relro \ 300 -Wl,--fatal-warnings \ 301 -Wl,-z,noexecstack \ 302 -fPIC \ 303 -EL \ 304 -Wl,--no-keep-memory \ 305 -nostdlib \ 306 -Wl,--no-undefined \ 307 -Wl,--exclude-libs=ALL \ 308 -Wl,-O1 \ 309 -Wl,--as-needed \ 310 -Wl,--gc-sections \ 311 -Wl,--warn-shared-textrel 312 313 314 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 315 316 LOCAL_STATIC_LIBRARIES := 317 318 # Enable grouping to fix circular references 319 LOCAL_GROUP_STATIC_LIBRARIES := true 320 321 LOCAL_SHARED_LIBRARIES := \ 322 libstlport \ 323 libdl 324 325 # Add target alias to "gyp_all_modules" target. 326 .PHONY: gyp_all_modules 327 gyp_all_modules: v8_tools_gyp_v8_snapshot_gyp 328 329 # Alias gyp target name. 330 .PHONY: v8_snapshot 331 v8_snapshot: v8_tools_gyp_v8_snapshot_gyp 332 333 include $(BUILD_STATIC_LIBRARY) 334