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_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 $(gyp_shared_intermediate_dir)/mksnapshot \ 15 $(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/js2c.stamp 16 17 ### Rules for action "run_mksnapshot": 18 $(gyp_intermediate_dir)/snapshot.cc: gyp_local_path := $(LOCAL_PATH) 19 $(gyp_intermediate_dir)/snapshot.cc: gyp_var_prefix := $(GYP_VAR_PREFIX) 20 $(gyp_intermediate_dir)/snapshot.cc: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 21 $(gyp_intermediate_dir)/snapshot.cc: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 22 $(gyp_intermediate_dir)/snapshot.cc: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 23 $(gyp_intermediate_dir)/snapshot.cc: $(gyp_shared_intermediate_dir)/mksnapshot $(GYP_TARGET_DEPENDENCIES) 24 @echo "Gyp action: v8_tools_gyp_v8_gyp_v8_snapshot_target_run_mksnapshot ($@)" 25 $(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" 26 27 28 29 GYP_GENERATED_OUTPUTS := \ 30 $(gyp_intermediate_dir)/snapshot.cc 31 32 # Make sure our deps and generated files are built first. 33 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 34 35 LOCAL_CPP_EXTENSION := .cc 36 $(gyp_intermediate_dir)/libraries.cc: $(gyp_shared_intermediate_dir)/libraries.cc 37 mkdir -p $(@D); cp $< $@ 38 $(gyp_intermediate_dir)/experimental-libraries.cc: $(gyp_shared_intermediate_dir)/experimental-libraries.cc 39 mkdir -p $(@D); cp $< $@ 40 LOCAL_GENERATED_SOURCES := \ 41 $(gyp_intermediate_dir)/libraries.cc \ 42 $(gyp_intermediate_dir)/experimental-libraries.cc \ 43 $(gyp_intermediate_dir)/snapshot.cc 44 45 GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 46 $(gyp_shared_intermediate_dir) 47 48 LOCAL_SRC_FILES := \ 49 v8/src/snapshot-common.cc 50 51 52 # Flags passed to both C and C++ files. 53 MY_CFLAGS_Debug := \ 54 -fstack-protector \ 55 --param=ssp-buffer-size=4 \ 56 -fno-strict-aliasing \ 57 -Wno-unused-parameter \ 58 -Wno-missing-field-initializers \ 59 -fvisibility=hidden \ 60 -pipe \ 61 -fPIC \ 62 -Wno-unused-local-typedefs \ 63 -Wno-format \ 64 -fno-tree-sra \ 65 -fno-caller-saves \ 66 -Wno-psabi \ 67 -fno-partial-inlining \ 68 -fno-early-inlining \ 69 -fno-tree-copy-prop \ 70 -fno-tree-loop-optimize \ 71 -fno-move-loop-invariants \ 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 -gdwarf-4 \ 91 -fdata-sections \ 92 -ffunction-sections \ 93 -fomit-frame-pointer \ 94 -funwind-tables 95 96 MY_DEFS_Debug := \ 97 '-DV8_DEPRECATION_WARNINGS' \ 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="https://proxy-dev.googlezip.net:443/"' \ 115 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 116 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 117 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 118 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 119 '-DVIDEO_HOLE=1' \ 120 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 121 '-DV8_TARGET_ARCH_ARM' \ 122 '-DCAN_USE_ARMV7_INSTRUCTIONS' \ 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-exceptions \ 156 -fno-rtti \ 157 -fno-threadsafe-statics \ 158 -fvisibility-inlines-hidden \ 159 -Wno-deprecated \ 160 -Wno-abi \ 161 -std=gnu++11 \ 162 -Wno-narrowing \ 163 -Wno-literal-suffix \ 164 -Wno-non-virtual-dtor \ 165 -Wno-sign-promo \ 166 -Wno-non-virtual-dtor 167 168 169 # Flags passed to both C and C++ files. 170 MY_CFLAGS_Release := \ 171 -fstack-protector \ 172 --param=ssp-buffer-size=4 \ 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 -fno-tree-sra \ 182 -fno-caller-saves \ 183 -Wno-psabi \ 184 -fno-partial-inlining \ 185 -fno-early-inlining \ 186 -fno-tree-copy-prop \ 187 -fno-tree-loop-optimize \ 188 -fno-move-loop-invariants \ 189 -ffunction-sections \ 190 -funwind-tables \ 191 -g \ 192 -fstack-protector \ 193 -fno-short-enums \ 194 -finline-limit=64 \ 195 -Wa,--noexecstack \ 196 -U_FORTIFY_SOURCE \ 197 -Wno-extra \ 198 -Wno-ignored-qualifiers \ 199 -Wno-type-limits \ 200 -Wno-unused-but-set-variable \ 201 -Wno-address \ 202 -Wno-format-security \ 203 -Wno-return-type \ 204 -Wno-sequence-point \ 205 -fno-ident \ 206 -fdata-sections \ 207 -ffunction-sections \ 208 -fomit-frame-pointer \ 209 -funwind-tables \ 210 -fdata-sections \ 211 -ffunction-sections \ 212 -O2 213 214 MY_DEFS_Release := \ 215 '-DV8_DEPRECATION_WARNINGS' \ 216 '-D_FILE_OFFSET_BITS=64' \ 217 '-DNO_TCMALLOC' \ 218 '-DDISABLE_NACL' \ 219 '-DCHROMIUM_BUILD' \ 220 '-DUSE_LIBJPEG_TURBO=1' \ 221 '-DENABLE_WEBRTC=1' \ 222 '-DUSE_PROPRIETARY_CODECS' \ 223 '-DENABLE_BROWSER_CDMS' \ 224 '-DENABLE_CONFIGURATION_POLICY' \ 225 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 226 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 227 '-DENABLE_EGLIMAGE=1' \ 228 '-DCLD_VERSION=1' \ 229 '-DENABLE_PRINTING=1' \ 230 '-DENABLE_MANAGED_USERS=1' \ 231 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 232 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 233 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 234 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 235 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 236 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 237 '-DVIDEO_HOLE=1' \ 238 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 239 '-DV8_TARGET_ARCH_ARM' \ 240 '-DCAN_USE_ARMV7_INSTRUCTIONS' \ 241 '-DV8_I18N_SUPPORT' \ 242 '-DUSE_OPENSSL=1' \ 243 '-DUSE_OPENSSL_CERTS=1' \ 244 '-DANDROID' \ 245 '-D__GNU_SOURCE=1' \ 246 '-DUSE_STLPORT=1' \ 247 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 248 '-DCHROME_BUILD_ID=""' \ 249 '-DNDEBUG' \ 250 '-DNVALGRIND' \ 251 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 252 253 254 # Include paths placed before CFLAGS/CPPFLAGS 255 LOCAL_C_INCLUDES_Release := \ 256 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 257 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 258 $(LOCAL_PATH)/v8 \ 259 $(gyp_shared_intermediate_dir) \ 260 $(PWD)/frameworks/wilhelm/include \ 261 $(PWD)/bionic \ 262 $(PWD)/external/stlport/stlport 263 264 265 # Flags passed to only C++ (and not C) files. 266 LOCAL_CPPFLAGS_Release := \ 267 -fno-exceptions \ 268 -fno-rtti \ 269 -fno-threadsafe-statics \ 270 -fvisibility-inlines-hidden \ 271 -Wno-deprecated \ 272 -Wno-abi \ 273 -std=gnu++11 \ 274 -Wno-narrowing \ 275 -Wno-literal-suffix \ 276 -Wno-non-virtual-dtor \ 277 -Wno-sign-promo \ 278 -Wno-non-virtual-dtor 279 280 281 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 282 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 283 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 284 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 285 ### Rules for final target. 286 287 LOCAL_SHARED_LIBRARIES := \ 288 libstlport \ 289 libdl 290 291 ### Set directly by aosp_build_settings. 292 LOCAL_FDO_SUPPORT := true 293 294 # Add target alias to "gyp_all_modules" target. 295 .PHONY: gyp_all_modules 296 gyp_all_modules: v8_tools_gyp_v8_snapshot_gyp 297 298 # Alias gyp target name. 299 .PHONY: v8_snapshot 300 v8_snapshot: v8_tools_gyp_v8_snapshot_gyp 301 302 include $(BUILD_STATIC_LIBRARY) 303