1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := v8_tools_gyp_v8_snapshot_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_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 29GYP_GENERATED_OUTPUTS := \ 30 $(gyp_intermediate_dir)/snapshot.cc 31 32# Make sure our deps and generated files are built first. 33LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 34 35LOCAL_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 $< $@ 40LOCAL_GENERATED_SOURCES := \ 41 $(gyp_intermediate_dir)/libraries.cc \ 42 $(gyp_intermediate_dir)/experimental-libraries.cc \ 43 $(gyp_intermediate_dir)/snapshot.cc 44 45GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 46 $(gyp_shared_intermediate_dir) 47 48LOCAL_SRC_FILES := \ 49 v8/src/snapshot-common.cc 50 51 52# Flags passed to both C and C++ files. 53MY_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 -msse2 \ 64 -mfpmath=sse \ 65 -mmmx \ 66 -m32 \ 67 -ffunction-sections \ 68 -funwind-tables \ 69 -g \ 70 -fno-short-enums \ 71 -finline-limit=64 \ 72 -Wa,--noexecstack \ 73 -U_FORTIFY_SOURCE \ 74 -Wno-extra \ 75 -Wno-ignored-qualifiers \ 76 -Wno-type-limits \ 77 -Wno-unused-but-set-variable \ 78 -fno-stack-protector \ 79 -Wno-address \ 80 -Wno-format-security \ 81 -Wno-return-type \ 82 -Wno-sequence-point \ 83 -m32 \ 84 -Os \ 85 -g \ 86 -gdwarf-4 \ 87 -fdata-sections \ 88 -ffunction-sections \ 89 -fomit-frame-pointer \ 90 -funwind-tables 91 92MY_DEFS_Debug := \ 93 '-DV8_DEPRECATION_WARNINGS' \ 94 '-D_FILE_OFFSET_BITS=64' \ 95 '-DNO_TCMALLOC' \ 96 '-DDISABLE_NACL' \ 97 '-DCHROMIUM_BUILD' \ 98 '-DUSE_LIBJPEG_TURBO=1' \ 99 '-DENABLE_WEBRTC=1' \ 100 '-DUSE_PROPRIETARY_CODECS' \ 101 '-DENABLE_BROWSER_CDMS' \ 102 '-DENABLE_CONFIGURATION_POLICY' \ 103 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 104 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 105 '-DENABLE_EGLIMAGE=1' \ 106 '-DCLD_VERSION=1' \ 107 '-DENABLE_PRINTING=1' \ 108 '-DENABLE_MANAGED_USERS=1' \ 109 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 110 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 111 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 112 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 113 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 114 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 115 '-DVIDEO_HOLE=1' \ 116 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 117 '-DV8_TARGET_ARCH_IA32' \ 118 '-DV8_I18N_SUPPORT' \ 119 '-DUSE_OPENSSL=1' \ 120 '-DUSE_OPENSSL_CERTS=1' \ 121 '-DANDROID' \ 122 '-D__GNU_SOURCE=1' \ 123 '-DUSE_STLPORT=1' \ 124 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 125 '-DCHROME_BUILD_ID=""' \ 126 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 127 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 128 '-D_DEBUG' \ 129 '-DENABLE_DISASSEMBLER' \ 130 '-DV8_ENABLE_CHECKS' \ 131 '-DOBJECT_PRINT' \ 132 '-DVERIFY_HEAP' \ 133 '-DENABLE_EXTRA_CHECKS' \ 134 '-DENABLE_HANDLE_ZAPPING' 135 136 137# Include paths placed before CFLAGS/CPPFLAGS 138LOCAL_C_INCLUDES_Debug := \ 139 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 140 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 141 $(LOCAL_PATH)/v8 \ 142 $(gyp_shared_intermediate_dir) \ 143 $(PWD)/frameworks/wilhelm/include \ 144 $(PWD)/bionic \ 145 $(PWD)/external/stlport/stlport 146 147 148# Flags passed to only C++ (and not C) files. 149LOCAL_CPPFLAGS_Debug := \ 150 -fno-exceptions \ 151 -fno-rtti \ 152 -fno-threadsafe-statics \ 153 -fvisibility-inlines-hidden \ 154 -Wno-deprecated \ 155 -std=gnu++11 \ 156 -Wno-narrowing \ 157 -Wno-literal-suffix \ 158 -Wno-non-virtual-dtor \ 159 -Wno-sign-promo \ 160 -Wno-non-virtual-dtor 161 162 163# Flags passed to both C and C++ files. 164MY_CFLAGS_Release := \ 165 --param=ssp-buffer-size=4 \ 166 -fno-strict-aliasing \ 167 -Wno-unused-parameter \ 168 -Wno-missing-field-initializers \ 169 -fvisibility=hidden \ 170 -pipe \ 171 -fPIC \ 172 -Wno-unused-local-typedefs \ 173 -Wno-format \ 174 -msse2 \ 175 -mfpmath=sse \ 176 -mmmx \ 177 -m32 \ 178 -ffunction-sections \ 179 -funwind-tables \ 180 -g \ 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 -fno-stack-protector \ 190 -Wno-address \ 191 -Wno-format-security \ 192 -Wno-return-type \ 193 -Wno-sequence-point \ 194 -m32 \ 195 -fno-ident \ 196 -fdata-sections \ 197 -ffunction-sections \ 198 -fomit-frame-pointer \ 199 -funwind-tables \ 200 -fdata-sections \ 201 -ffunction-sections \ 202 -O2 203 204MY_DEFS_Release := \ 205 '-DV8_DEPRECATION_WARNINGS' \ 206 '-D_FILE_OFFSET_BITS=64' \ 207 '-DNO_TCMALLOC' \ 208 '-DDISABLE_NACL' \ 209 '-DCHROMIUM_BUILD' \ 210 '-DUSE_LIBJPEG_TURBO=1' \ 211 '-DENABLE_WEBRTC=1' \ 212 '-DUSE_PROPRIETARY_CODECS' \ 213 '-DENABLE_BROWSER_CDMS' \ 214 '-DENABLE_CONFIGURATION_POLICY' \ 215 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 216 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 217 '-DENABLE_EGLIMAGE=1' \ 218 '-DCLD_VERSION=1' \ 219 '-DENABLE_PRINTING=1' \ 220 '-DENABLE_MANAGED_USERS=1' \ 221 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 222 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 223 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 224 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 225 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 226 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 227 '-DVIDEO_HOLE=1' \ 228 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 229 '-DV8_TARGET_ARCH_IA32' \ 230 '-DV8_I18N_SUPPORT' \ 231 '-DUSE_OPENSSL=1' \ 232 '-DUSE_OPENSSL_CERTS=1' \ 233 '-DANDROID' \ 234 '-D__GNU_SOURCE=1' \ 235 '-DUSE_STLPORT=1' \ 236 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 237 '-DCHROME_BUILD_ID=""' \ 238 '-DNDEBUG' \ 239 '-DNVALGRIND' \ 240 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 241 242 243# Include paths placed before CFLAGS/CPPFLAGS 244LOCAL_C_INCLUDES_Release := \ 245 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 246 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 247 $(LOCAL_PATH)/v8 \ 248 $(gyp_shared_intermediate_dir) \ 249 $(PWD)/frameworks/wilhelm/include \ 250 $(PWD)/bionic \ 251 $(PWD)/external/stlport/stlport 252 253 254# Flags passed to only C++ (and not C) files. 255LOCAL_CPPFLAGS_Release := \ 256 -fno-exceptions \ 257 -fno-rtti \ 258 -fno-threadsafe-statics \ 259 -fvisibility-inlines-hidden \ 260 -Wno-deprecated \ 261 -std=gnu++11 \ 262 -Wno-narrowing \ 263 -Wno-literal-suffix \ 264 -Wno-non-virtual-dtor \ 265 -Wno-sign-promo \ 266 -Wno-non-virtual-dtor 267 268 269LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 270LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 271LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 272LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 273### Rules for final target. 274 275LOCAL_SHARED_LIBRARIES := \ 276 libstlport \ 277 libdl 278 279### Set directly by aosp_build_settings. 280LOCAL_FDO_SUPPORT := true 281 282# Add target alias to "gyp_all_modules" target. 283.PHONY: gyp_all_modules 284gyp_all_modules: v8_tools_gyp_v8_snapshot_gyp 285 286# Alias gyp target name. 287.PHONY: v8_snapshot 288v8_snapshot: v8_tools_gyp_v8_snapshot_gyp 289 290include $(BUILD_STATIC_LIBRARY) 291