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 -fno-exceptions \ 61 -fno-strict-aliasing \ 62 -Wno-unused-parameter \ 63 -Wno-missing-field-initializers \ 64 -fvisibility=hidden \ 65 -pipe \ 66 -fPIC \ 67 -Wno-unused-local-typedefs \ 68 -Wno-format \ 69 -m64 \ 70 -march=x86-64 \ 71 -ffunction-sections \ 72 -funwind-tables \ 73 -g \ 74 -fstack-protector \ 75 -fno-short-enums \ 76 -finline-limit=64 \ 77 -Wa,--noexecstack \ 78 -U_FORTIFY_SOURCE \ 79 -Wno-extra \ 80 -Wno-ignored-qualifiers \ 81 -Wno-type-limits \ 82 -Wno-unused-but-set-variable \ 83 -Wno-address \ 84 -Wno-format-security \ 85 -Wno-return-type \ 86 -Wno-sequence-point \ 87 -Os \ 88 -g \ 89 -fdata-sections \ 90 -ffunction-sections \ 91 -fomit-frame-pointer \ 92 -funwind-tables 93 94 MY_DEFS_Debug := \ 95 '-DV8_DEPRECATION_WARNINGS' \ 96 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 97 '-D_FILE_OFFSET_BITS=64' \ 98 '-DNO_TCMALLOC' \ 99 '-DDISABLE_NACL' \ 100 '-DCHROMIUM_BUILD' \ 101 '-DUSE_LIBJPEG_TURBO=1' \ 102 '-DENABLE_WEBRTC=1' \ 103 '-DUSE_PROPRIETARY_CODECS' \ 104 '-DENABLE_BROWSER_CDMS' \ 105 '-DENABLE_CONFIGURATION_POLICY' \ 106 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 107 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 108 '-DENABLE_EGLIMAGE=1' \ 109 '-DCLD_VERSION=1' \ 110 '-DENABLE_PRINTING=1' \ 111 '-DENABLE_MANAGED_USERS=1' \ 112 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 113 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 114 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 115 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 116 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 117 '-DVIDEO_HOLE=1' \ 118 '-DV8_TARGET_ARCH_X64' \ 119 '-DV8_I18N_SUPPORT' \ 120 '-DUSE_OPENSSL=1' \ 121 '-DUSE_OPENSSL_CERTS=1' \ 122 '-DANDROID' \ 123 '-D__GNU_SOURCE=1' \ 124 '-DUSE_STLPORT=1' \ 125 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 126 '-DCHROME_BUILD_ID=""' \ 127 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 128 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 129 '-D_DEBUG' \ 130 '-DENABLE_DISASSEMBLER' \ 131 '-DV8_ENABLE_CHECKS' \ 132 '-DOBJECT_PRINT' \ 133 '-DVERIFY_HEAP' \ 134 '-DENABLE_EXTRA_CHECKS' \ 135 '-DENABLE_HANDLE_ZAPPING' 136 137 138 # Include paths placed before CFLAGS/CPPFLAGS 139 LOCAL_C_INCLUDES_Debug := \ 140 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 141 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 142 $(LOCAL_PATH)/v8 \ 143 $(gyp_shared_intermediate_dir) \ 144 $(PWD)/frameworks/wilhelm/include \ 145 $(PWD)/bionic \ 146 $(PWD)/external/stlport/stlport 147 148 149 # Flags passed to only C++ (and not C) files. 150 LOCAL_CPPFLAGS_Debug := \ 151 -fno-rtti \ 152 -fno-threadsafe-statics \ 153 -fvisibility-inlines-hidden \ 154 -Wno-deprecated \ 155 -Wno-non-virtual-dtor \ 156 -Wno-sign-promo \ 157 -Wno-non-virtual-dtor 158 159 160 LOCAL_FDO_SUPPORT_Debug := false 161 162 # Flags passed to both C and C++ files. 163 MY_CFLAGS_Release := \ 164 -fstack-protector \ 165 --param=ssp-buffer-size=4 \ 166 -fno-exceptions \ 167 -fno-strict-aliasing \ 168 -Wno-unused-parameter \ 169 -Wno-missing-field-initializers \ 170 -fvisibility=hidden \ 171 -pipe \ 172 -fPIC \ 173 -Wno-unused-local-typedefs \ 174 -Wno-format \ 175 -m64 \ 176 -march=x86-64 \ 177 -ffunction-sections \ 178 -funwind-tables \ 179 -g \ 180 -fstack-protector \ 181 -fno-short-enums \ 182 -finline-limit=64 \ 183 -Wa,--noexecstack \ 184 -U_FORTIFY_SOURCE \ 185 -Wno-extra \ 186 -Wno-ignored-qualifiers \ 187 -Wno-type-limits \ 188 -Wno-unused-but-set-variable \ 189 -Wno-address \ 190 -Wno-format-security \ 191 -Wno-return-type \ 192 -Wno-sequence-point \ 193 -fno-ident \ 194 -fdata-sections \ 195 -ffunction-sections \ 196 -fomit-frame-pointer \ 197 -funwind-tables \ 198 -fdata-sections \ 199 -ffunction-sections \ 200 -O2 201 202 MY_DEFS_Release := \ 203 '-DV8_DEPRECATION_WARNINGS' \ 204 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 205 '-D_FILE_OFFSET_BITS=64' \ 206 '-DNO_TCMALLOC' \ 207 '-DDISABLE_NACL' \ 208 '-DCHROMIUM_BUILD' \ 209 '-DUSE_LIBJPEG_TURBO=1' \ 210 '-DENABLE_WEBRTC=1' \ 211 '-DUSE_PROPRIETARY_CODECS' \ 212 '-DENABLE_BROWSER_CDMS' \ 213 '-DENABLE_CONFIGURATION_POLICY' \ 214 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 215 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 216 '-DENABLE_EGLIMAGE=1' \ 217 '-DCLD_VERSION=1' \ 218 '-DENABLE_PRINTING=1' \ 219 '-DENABLE_MANAGED_USERS=1' \ 220 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 221 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 222 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 223 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 224 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 225 '-DVIDEO_HOLE=1' \ 226 '-DV8_TARGET_ARCH_X64' \ 227 '-DV8_I18N_SUPPORT' \ 228 '-DUSE_OPENSSL=1' \ 229 '-DUSE_OPENSSL_CERTS=1' \ 230 '-DANDROID' \ 231 '-D__GNU_SOURCE=1' \ 232 '-DUSE_STLPORT=1' \ 233 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 234 '-DCHROME_BUILD_ID=""' \ 235 '-DNDEBUG' \ 236 '-DNVALGRIND' \ 237 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 238 239 240 # Include paths placed before CFLAGS/CPPFLAGS 241 LOCAL_C_INCLUDES_Release := \ 242 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 243 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 244 $(LOCAL_PATH)/v8 \ 245 $(gyp_shared_intermediate_dir) \ 246 $(PWD)/frameworks/wilhelm/include \ 247 $(PWD)/bionic \ 248 $(PWD)/external/stlport/stlport 249 250 251 # Flags passed to only C++ (and not C) files. 252 LOCAL_CPPFLAGS_Release := \ 253 -fno-rtti \ 254 -fno-threadsafe-statics \ 255 -fvisibility-inlines-hidden \ 256 -Wno-deprecated \ 257 -Wno-non-virtual-dtor \ 258 -Wno-sign-promo \ 259 -Wno-non-virtual-dtor 260 261 262 LOCAL_FDO_SUPPORT_Release := true 263 264 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 265 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 266 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 267 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 268 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 269 ### Rules for final target. 270 271 LOCAL_LDFLAGS_Debug := \ 272 -Wl,-z,now \ 273 -Wl,-z,relro \ 274 -Wl,--fatal-warnings \ 275 -Wl,-z,noexecstack \ 276 -fPIC \ 277 -m64 \ 278 -fuse-ld=gold \ 279 -nostdlib \ 280 -Wl,--no-undefined \ 281 -Wl,--exclude-libs=ALL \ 282 -Wl,--warn-shared-textrel \ 283 -Wl,-O1 \ 284 -Wl,--as-needed 285 286 287 LOCAL_LDFLAGS_Release := \ 288 -Wl,-z,now \ 289 -Wl,-z,relro \ 290 -Wl,--fatal-warnings \ 291 -Wl,-z,noexecstack \ 292 -fPIC \ 293 -m64 \ 294 -fuse-ld=gold \ 295 -nostdlib \ 296 -Wl,--no-undefined \ 297 -Wl,--exclude-libs=ALL \ 298 -Wl,-O1 \ 299 -Wl,--as-needed \ 300 -Wl,--gc-sections \ 301 -Wl,--warn-shared-textrel 302 303 304 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 305 306 LOCAL_STATIC_LIBRARIES := 307 308 # Enable grouping to fix circular references 309 LOCAL_GROUP_STATIC_LIBRARIES := true 310 311 LOCAL_SHARED_LIBRARIES := \ 312 libstlport \ 313 libdl 314 315 # Add target alias to "gyp_all_modules" target. 316 .PHONY: gyp_all_modules 317 gyp_all_modules: v8_tools_gyp_v8_snapshot_gyp 318 319 # Alias gyp target name. 320 .PHONY: v8_snapshot 321 v8_snapshot: v8_tools_gyp_v8_snapshot_gyp 322 323 include $(BUILD_STATIC_LIBRARY) 324