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 --param=ssp-buffer-size=4 \ 55 -fno-strict-aliasing \ 56 -Wno-unused-parameter \ 57 -Wno-missing-field-initializers \ 58 -fvisibility=hidden \ 59 -pipe \ 60 -fPIC \ 61 -Wno-unused-local-typedefs \ 62 -Wno-format \ 63 -ffunction-sections \ 64 -funwind-tables \ 65 -g \ 66 -fno-short-enums \ 67 -finline-limit=64 \ 68 -Wa,--noexecstack \ 69 -U_FORTIFY_SOURCE \ 70 -Wno-extra \ 71 -Wno-ignored-qualifiers \ 72 -Wno-type-limits \ 73 -Wno-unused-but-set-variable \ 74 -Wno-address \ 75 -Wno-format-security \ 76 -Wno-return-type \ 77 -Wno-sequence-point \ 78 -Os \ 79 -g \ 80 -gdwarf-4 \ 81 -fdata-sections \ 82 -ffunction-sections \ 83 -funwind-tables 84 85 MY_DEFS_Debug := \ 86 '-DV8_DEPRECATION_WARNINGS' \ 87 '-D_FILE_OFFSET_BITS=64' \ 88 '-DNO_TCMALLOC' \ 89 '-DDISABLE_NACL' \ 90 '-DCHROMIUM_BUILD' \ 91 '-DUSE_LIBJPEG_TURBO=1' \ 92 '-DENABLE_WEBRTC=1' \ 93 '-DUSE_PROPRIETARY_CODECS' \ 94 '-DENABLE_BROWSER_CDMS' \ 95 '-DENABLE_CONFIGURATION_POLICY' \ 96 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 97 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 98 '-DENABLE_EGLIMAGE=1' \ 99 '-DCLD_VERSION=1' \ 100 '-DENABLE_PRINTING=1' \ 101 '-DENABLE_MANAGED_USERS=1' \ 102 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 103 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 104 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 105 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 106 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 107 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 108 '-DVIDEO_HOLE=1' \ 109 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 110 '-DV8_TARGET_ARCH_ARM64' \ 111 '-DV8_I18N_SUPPORT' \ 112 '-DUSE_OPENSSL=1' \ 113 '-DUSE_OPENSSL_CERTS=1' \ 114 '-DANDROID' \ 115 '-D__GNU_SOURCE=1' \ 116 '-DUSE_STLPORT=1' \ 117 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 118 '-DCHROME_BUILD_ID=""' \ 119 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 120 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 121 '-D_DEBUG' \ 122 '-DENABLE_DISASSEMBLER' \ 123 '-DV8_ENABLE_CHECKS' \ 124 '-DOBJECT_PRINT' \ 125 '-DVERIFY_HEAP' \ 126 '-DENABLE_EXTRA_CHECKS' \ 127 '-DENABLE_HANDLE_ZAPPING' 128 129 130 # Include paths placed before CFLAGS/CPPFLAGS 131 LOCAL_C_INCLUDES_Debug := \ 132 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 133 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 134 $(LOCAL_PATH)/v8 \ 135 $(gyp_shared_intermediate_dir) \ 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 -Wno-deprecated \ 148 -std=gnu++11 \ 149 -Wno-narrowing \ 150 -Wno-literal-suffix \ 151 -Wno-non-virtual-dtor \ 152 -Wno-sign-promo \ 153 -Wno-non-virtual-dtor 154 155 156 # Flags passed to both C and C++ files. 157 MY_CFLAGS_Release := \ 158 --param=ssp-buffer-size=4 \ 159 -fno-strict-aliasing \ 160 -Wno-unused-parameter \ 161 -Wno-missing-field-initializers \ 162 -fvisibility=hidden \ 163 -pipe \ 164 -fPIC \ 165 -Wno-unused-local-typedefs \ 166 -Wno-format \ 167 -ffunction-sections \ 168 -funwind-tables \ 169 -g \ 170 -fno-short-enums \ 171 -finline-limit=64 \ 172 -Wa,--noexecstack \ 173 -U_FORTIFY_SOURCE \ 174 -Wno-extra \ 175 -Wno-ignored-qualifiers \ 176 -Wno-type-limits \ 177 -Wno-unused-but-set-variable \ 178 -Wno-address \ 179 -Wno-format-security \ 180 -Wno-return-type \ 181 -Wno-sequence-point \ 182 -fno-ident \ 183 -fdata-sections \ 184 -ffunction-sections \ 185 -funwind-tables \ 186 -fdata-sections \ 187 -ffunction-sections \ 188 -O2 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 '-DV8_TARGET_ARCH_ARM64' \ 216 '-DV8_I18N_SUPPORT' \ 217 '-DUSE_OPENSSL=1' \ 218 '-DUSE_OPENSSL_CERTS=1' \ 219 '-DANDROID' \ 220 '-D__GNU_SOURCE=1' \ 221 '-DUSE_STLPORT=1' \ 222 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 223 '-DCHROME_BUILD_ID=""' \ 224 '-DNDEBUG' \ 225 '-DNVALGRIND' \ 226 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 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 $(LOCAL_PATH)/v8 \ 234 $(gyp_shared_intermediate_dir) \ 235 $(PWD)/frameworks/wilhelm/include \ 236 $(PWD)/bionic \ 237 $(PWD)/external/stlport/stlport 238 239 240 # Flags passed to only C++ (and not C) files. 241 LOCAL_CPPFLAGS_Release := \ 242 -fno-exceptions \ 243 -fno-rtti \ 244 -fno-threadsafe-statics \ 245 -fvisibility-inlines-hidden \ 246 -Wno-deprecated \ 247 -std=gnu++11 \ 248 -Wno-narrowing \ 249 -Wno-literal-suffix \ 250 -Wno-non-virtual-dtor \ 251 -Wno-sign-promo \ 252 -Wno-non-virtual-dtor 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 ### Set directly by aosp_build_settings. 266 LOCAL_FDO_SUPPORT := true 267 268 # Add target alias to "gyp_all_modules" target. 269 .PHONY: gyp_all_modules 270 gyp_all_modules: v8_tools_gyp_v8_snapshot_gyp 271 272 # Alias gyp target name. 273 .PHONY: v8_snapshot 274 v8_snapshot: v8_tools_gyp_v8_snapshot_gyp 275 276 include $(BUILD_STATIC_LIBRARY) 277