1afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)# This file is generated by gyp; do not edit.
2afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
3afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)include $(CLEAR_VARS)
4afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
5afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)LOCAL_MODULE := v8_tools_gyp_v8_snapshot_gyp
7afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)LOCAL_MODULE_SUFFIX := .a
81f7d94a58ed12500a9acdf7c19bc07b90adbb469Android Chromium AutomergerLOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
91f7d94a58ed12500a9acdf7c19bc07b90adbb469Android Chromium Automergergyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
101f7d94a58ed12500a9acdf7c19bc07b90adbb469Android Chromium Automergergyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
12afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)# Make sure our deps are built first.
13afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)GYP_TARGET_DEPENDENCIES := \
143f417819926108853433df184fbb358aaa85cefcAndroid Chromium Automerger	$(gyp_shared_intermediate_dir)/mksnapshot \
159b496ea63d1eb07a18213230682c511c389c86b1Android Chromium Automerger	$(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/js2c.stamp
16afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
17afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)### Rules for action "run_mksnapshot":
18afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)$(gyp_intermediate_dir)/snapshot.cc: gyp_local_path := $(LOCAL_PATH)
19151677661fb053249ecc0be576c26d3cb914f750Android Chromium Automerger$(gyp_intermediate_dir)/snapshot.cc: gyp_var_prefix := $(GYP_VAR_PREFIX)
20b59364634840200e281c55388fac9c5792ae1ecdAndroid Chromium Automerger$(gyp_intermediate_dir)/snapshot.cc: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
21b59364634840200e281c55388fac9c5792ae1ecdAndroid Chromium Automerger$(gyp_intermediate_dir)/snapshot.cc: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
22b28ed87ec574d115aa46a222eb9460bd1a6496c2Android Chromium Automerger$(gyp_intermediate_dir)/snapshot.cc: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
233f417819926108853433df184fbb358aaa85cefcAndroid Chromium Automerger$(gyp_intermediate_dir)/snapshot.cc: $(gyp_shared_intermediate_dir)/mksnapshot $(GYP_TARGET_DEPENDENCIES)
24b28ed87ec574d115aa46a222eb9460bd1a6496c2Android Chromium Automerger	@echo "Gyp action: v8_tools_gyp_v8_gyp_v8_snapshot_target_run_mksnapshot ($@)"
253f417819926108853433df184fbb358aaa85cefcAndroid Chromium Automerger	$(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"
26afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
27afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
28afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
29afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)GYP_GENERATED_OUTPUTS := \
30afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	$(gyp_intermediate_dir)/snapshot.cc
31afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
32afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)# Make sure our deps and generated files are built first.
33afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
34afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
35afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)LOCAL_CPP_EXTENSION := .cc
36afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)$(gyp_intermediate_dir)/libraries.cc: $(gyp_shared_intermediate_dir)/libraries.cc
37afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	mkdir -p $(@D); cp $< $@
38afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)$(gyp_intermediate_dir)/experimental-libraries.cc: $(gyp_shared_intermediate_dir)/experimental-libraries.cc
39afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	mkdir -p $(@D); cp $< $@
40afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)LOCAL_GENERATED_SOURCES := \
41afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	$(gyp_intermediate_dir)/libraries.cc \
42afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	$(gyp_intermediate_dir)/experimental-libraries.cc \
439ccfd61b869f7ff2ef3ce91e56207e9844177d29Android Chromium Automerger	$(gyp_intermediate_dir)/snapshot.cc
44afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
45afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)GYP_COPIED_SOURCE_ORIGIN_DIRS := \
46afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	$(gyp_shared_intermediate_dir)
47afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
48d55ba1dfaeddc5c5aee37f13d85e279bb3b8363aAndroid Chromium AutomergerLOCAL_SRC_FILES := \
49d55ba1dfaeddc5c5aee37f13d85e279bb3b8363aAndroid Chromium Automerger	v8/src/snapshot-common.cc
50afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
51afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
52afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)# Flags passed to both C and C++ files.
536c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerMY_CFLAGS_Debug := \
542ccac0bd289bea34dd6eac5c0324fa0282b5aa69Torne (Richard Coles)	-fstack-protector \
552ccac0bd289bea34dd6eac5c0324fa0282b5aa69Torne (Richard Coles)	--param=ssp-buffer-size=4 \
56afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-fno-strict-aliasing \
57afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-Wno-unused-parameter \
58afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-Wno-missing-field-initializers \
59afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-fvisibility=hidden \
60afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-pipe \
61afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-fPIC \
627b9ad4e95ab244473ce5b797e8780a7779a633a1Android Chromium Automerger	-Wno-unused-local-typedefs \
63afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-Wno-format \
64afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-fno-tree-sra \
657b9ad4e95ab244473ce5b797e8780a7779a633a1Android Chromium Automerger	-fno-caller-saves \
66afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-Wno-psabi \
6759024954719c634f52fec4e9e0c18a3066801b7eAndroid Chromium Automerger	-fno-partial-inlining \
6859024954719c634f52fec4e9e0c18a3066801b7eAndroid Chromium Automerger	-fno-early-inlining \
6959024954719c634f52fec4e9e0c18a3066801b7eAndroid Chromium Automerger	-fno-tree-copy-prop \
7059024954719c634f52fec4e9e0c18a3066801b7eAndroid Chromium Automerger	-fno-tree-loop-optimize \
7159024954719c634f52fec4e9e0c18a3066801b7eAndroid Chromium Automerger	-fno-move-loop-invariants \
72afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-ffunction-sections \
73afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-funwind-tables \
74afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-g \
75afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-fstack-protector \
76afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-fno-short-enums \
77afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-finline-limit=64 \
78afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-Wa,--noexecstack \
792ccac0bd289bea34dd6eac5c0324fa0282b5aa69Torne (Richard Coles)	-U_FORTIFY_SOURCE \
80e0dad48b08c8b30d862ef19e091be45abcab99feAndroid Chromium Automerger	-Wno-extra \
81e0dad48b08c8b30d862ef19e091be45abcab99feAndroid Chromium Automerger	-Wno-ignored-qualifiers \
82e0dad48b08c8b30d862ef19e091be45abcab99feAndroid Chromium Automerger	-Wno-type-limits \
8349c06b0b1d28732cc27b64249745855af984041cAndroid Chromium Automerger	-Wno-unused-but-set-variable \
84e0dad48b08c8b30d862ef19e091be45abcab99feAndroid Chromium Automerger	-Wno-address \
85e0dad48b08c8b30d862ef19e091be45abcab99feAndroid Chromium Automerger	-Wno-format-security \
86e0dad48b08c8b30d862ef19e091be45abcab99feAndroid Chromium Automerger	-Wno-return-type \
87e0dad48b08c8b30d862ef19e091be45abcab99feAndroid Chromium Automerger	-Wno-sequence-point \
88afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-Os \
89afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-g \
901b4962ebd16c1ace88c12bc2c7f646ec287545c3Android Chromium Automerger	-gdwarf-4 \
91afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-fdata-sections \
9269771ca5d80378436cf20509a5c8d7c49bb565dbAndroid Chromium Automerger	-ffunction-sections \
936806e65ebd99d3c3b9ad570e57eb7d3b9564764bAndroid Chromium Automerger	-fomit-frame-pointer \
9469771ca5d80378436cf20509a5c8d7c49bb565dbAndroid Chromium Automerger	-funwind-tables
95afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
966c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerMY_DEFS_Debug := \
97fdb08f46e53f94a5e62043415568eda4e8de9950Android Chromium Automerger	'-DV8_DEPRECATION_WARNINGS' \
98afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-D_FILE_OFFSET_BITS=64' \
99afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DNO_TCMALLOC' \
100afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DDISABLE_NACL' \
101afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DCHROMIUM_BUILD' \
102afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DUSE_LIBJPEG_TURBO=1' \
1032dbd3e178f25e2af580fba093a6072fc17457871Android Chromium Automerger	'-DENABLE_WEBRTC=1' \
104afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DUSE_PROPRIETARY_CODECS' \
1058fa39d2e728ea8254a0cbd268c32772e8749c18dAndroid Chromium Automerger	'-DENABLE_BROWSER_CDMS' \
1061d12ca407ca8c9df12f38087b83f1094a36be80bAndroid Chromium Automerger	'-DENABLE_CONFIGURATION_POLICY' \
107851d2e34ccf060bb04200ad2f626f34189247b08Android Chromium Automerger	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
108851d2e34ccf060bb04200ad2f626f34189247b08Android Chromium Automerger	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
109afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DENABLE_EGLIMAGE=1' \
110de9f4a98b1165b9b1bb26c79ec743d2228c02f9cAndroid Chromium Automerger	'-DCLD_VERSION=1' \
111c21245f7080990d50a40981f431cea36909c704fAndroid Chromium Automerger	'-DENABLE_PRINTING=1' \
11214fdfac3422aaf1eb7e222b5f4021230cf865cceAndroid Chromium Automerger	'-DENABLE_MANAGED_USERS=1' \
113c1f5fc681b0495f5e16a6c7a693d767dbefcfa5fTorne (Richard Coles)	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
114df0983a6acb560c1012036d21c29a826aac00b3aAndroid Chromium Automerger	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
115df0983a6acb560c1012036d21c29a826aac00b3aAndroid Chromium Automerger	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
116c1f5fc681b0495f5e16a6c7a693d767dbefcfa5fTorne (Richard Coles)	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
117c1f5fc681b0495f5e16a6c7a693d767dbefcfa5fTorne (Richard Coles)	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
118baf4b7536eee2d8fefabdab9be2901c4b04f1c85Android Chromium Automerger	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
11970d70cb2626549aed2f50d8c08082ab27f9f1077Torne (Richard Coles)	'-DVIDEO_HOLE=1' \
120f37885dbe3aaf84c4cfa45e49fa20fdc3cf415e2Android Chromium Automerger	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
121afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DV8_TARGET_ARCH_ARM' \
122d55ba1dfaeddc5c5aee37f13d85e279bb3b8363aAndroid Chromium Automerger	'-DCAN_USE_ARMV7_INSTRUCTIONS' \
123fa2c7a84ec29e7150930affaabf8615fcb2d7a73Android Chromium Automerger	'-DV8_I18N_SUPPORT' \
124f8c9526b158ca34595a4d12d7518a54d84161095Android Chromium Automerger	'-DUSE_OPENSSL=1' \
1257cd9723fba417669a0887a2c47cda6a20bb25fe0Android Chromium Automerger	'-DUSE_OPENSSL_CERTS=1' \
126afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DANDROID' \
127afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-D__GNU_SOURCE=1' \
128afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DUSE_STLPORT=1' \
129afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
13083d65f6e2802be9ac08dafaff99f2f535058f96bTorne (Richard Coles)	'-DCHROME_BUILD_ID=""' \
131afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
132afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
133afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-D_DEBUG' \
134afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DENABLE_DISASSEMBLER' \
135afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	'-DV8_ENABLE_CHECKS' \
136b45a249c3f24866fffa2c085e4c19fb6062bc490Torne (Richard Coles)	'-DOBJECT_PRINT' \
1372ccac0bd289bea34dd6eac5c0324fa0282b5aa69Torne (Richard Coles)	'-DVERIFY_HEAP' \
138778ee55e9cb2cc2b2f1471a63feb94123b4c66bcAndroid Chromium Automerger	'-DENABLE_EXTRA_CHECKS' \
139778ee55e9cb2cc2b2f1471a63feb94123b4c66bcAndroid Chromium Automerger	'-DENABLE_HANDLE_ZAPPING'
140afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
141afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
142afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)# Include paths placed before CFLAGS/CPPFLAGS
1436c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerLOCAL_C_INCLUDES_Debug := \
1445b5a28cd990f2b1d54dc085662e1df7014d5fcecAndroid Chromium Automerger	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
1455b5a28cd990f2b1d54dc085662e1df7014d5fcecAndroid Chromium Automerger	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
1460fac7502a6e87bf94f7ec9e56364012aad1031e5Android Chromium Automerger	$(LOCAL_PATH)/v8 \
147a715e94c5d62236fb7b1e050f175ed825a6373baAndroid Chromium Automerger	$(gyp_shared_intermediate_dir) \
1486c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	$(PWD)/frameworks/wilhelm/include \
1496c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	$(PWD)/bionic \
1506c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	$(PWD)/external/stlport/stlport
1516c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger
1526c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger
1536c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger# Flags passed to only C++ (and not C) files.
1546c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerLOCAL_CPPFLAGS_Debug := \
1556df483e67f4054a9b9011dbf9bc9379623ece826Android Chromium Automerger	-fno-exceptions \
1566c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fno-rtti \
1576c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fno-threadsafe-statics \
1586c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fvisibility-inlines-hidden \
1596c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-deprecated \
1606c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-abi \
161d55ba1dfaeddc5c5aee37f13d85e279bb3b8363aAndroid Chromium Automerger	-std=gnu++11 \
162d55ba1dfaeddc5c5aee37f13d85e279bb3b8363aAndroid Chromium Automerger	-Wno-narrowing \
163d55ba1dfaeddc5c5aee37f13d85e279bb3b8363aAndroid Chromium Automerger	-Wno-literal-suffix \
1646c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-non-virtual-dtor \
1656c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-sign-promo \
1666c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-non-virtual-dtor
1676c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger
1686c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger
1696c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger# Flags passed to both C and C++ files.
1706c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerMY_CFLAGS_Release := \
1716c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fstack-protector \
1726c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	--param=ssp-buffer-size=4 \
1736c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fno-strict-aliasing \
1746c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-unused-parameter \
1756c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-missing-field-initializers \
1766c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fvisibility=hidden \
1776c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-pipe \
1786c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fPIC \
1797b9ad4e95ab244473ce5b797e8780a7779a633a1Android Chromium Automerger	-Wno-unused-local-typedefs \
1806c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-format \
1816c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fno-tree-sra \
1827b9ad4e95ab244473ce5b797e8780a7779a633a1Android Chromium Automerger	-fno-caller-saves \
1836c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-psabi \
18459024954719c634f52fec4e9e0c18a3066801b7eAndroid Chromium Automerger	-fno-partial-inlining \
18559024954719c634f52fec4e9e0c18a3066801b7eAndroid Chromium Automerger	-fno-early-inlining \
18659024954719c634f52fec4e9e0c18a3066801b7eAndroid Chromium Automerger	-fno-tree-copy-prop \
18759024954719c634f52fec4e9e0c18a3066801b7eAndroid Chromium Automerger	-fno-tree-loop-optimize \
18859024954719c634f52fec4e9e0c18a3066801b7eAndroid Chromium Automerger	-fno-move-loop-invariants \
1896c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-ffunction-sections \
1906c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-funwind-tables \
1916c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-g \
1926c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fstack-protector \
1936c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fno-short-enums \
1946c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-finline-limit=64 \
1956c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wa,--noexecstack \
1966c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-U_FORTIFY_SOURCE \
1976c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-extra \
1986c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-ignored-qualifiers \
1996c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-type-limits \
20049c06b0b1d28732cc27b64249745855af984041cAndroid Chromium Automerger	-Wno-unused-but-set-variable \
2016c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-address \
2026c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-format-security \
2036c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-return-type \
2046c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-Wno-sequence-point \
2056c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fno-ident \
2066c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fdata-sections \
2076c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-ffunction-sections \
2086c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fomit-frame-pointer \
20969771ca5d80378436cf20509a5c8d7c49bb565dbAndroid Chromium Automerger	-funwind-tables \
2106c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-fdata-sections \
2116c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-ffunction-sections \
2126c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	-O2
2136c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger
2146c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerMY_DEFS_Release := \
215fdb08f46e53f94a5e62043415568eda4e8de9950Android Chromium Automerger	'-DV8_DEPRECATION_WARNINGS' \
2166c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-D_FILE_OFFSET_BITS=64' \
2176c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DNO_TCMALLOC' \
2186c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DDISABLE_NACL' \
2196c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DCHROMIUM_BUILD' \
2206c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DUSE_LIBJPEG_TURBO=1' \
2212dbd3e178f25e2af580fba093a6072fc17457871Android Chromium Automerger	'-DENABLE_WEBRTC=1' \
2226c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DUSE_PROPRIETARY_CODECS' \
2238fa39d2e728ea8254a0cbd268c32772e8749c18dAndroid Chromium Automerger	'-DENABLE_BROWSER_CDMS' \
2241d12ca407ca8c9df12f38087b83f1094a36be80bAndroid Chromium Automerger	'-DENABLE_CONFIGURATION_POLICY' \
225851d2e34ccf060bb04200ad2f626f34189247b08Android Chromium Automerger	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
226851d2e34ccf060bb04200ad2f626f34189247b08Android Chromium Automerger	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
2276c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DENABLE_EGLIMAGE=1' \
228de9f4a98b1165b9b1bb26c79ec743d2228c02f9cAndroid Chromium Automerger	'-DCLD_VERSION=1' \
229c21245f7080990d50a40981f431cea36909c704fAndroid Chromium Automerger	'-DENABLE_PRINTING=1' \
23014fdfac3422aaf1eb7e222b5f4021230cf865cceAndroid Chromium Automerger	'-DENABLE_MANAGED_USERS=1' \
231c1f5fc681b0495f5e16a6c7a693d767dbefcfa5fTorne (Richard Coles)	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
232df0983a6acb560c1012036d21c29a826aac00b3aAndroid Chromium Automerger	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
233df0983a6acb560c1012036d21c29a826aac00b3aAndroid Chromium Automerger	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
234c1f5fc681b0495f5e16a6c7a693d767dbefcfa5fTorne (Richard Coles)	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
235c1f5fc681b0495f5e16a6c7a693d767dbefcfa5fTorne (Richard Coles)	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
236baf4b7536eee2d8fefabdab9be2901c4b04f1c85Android Chromium Automerger	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
23770d70cb2626549aed2f50d8c08082ab27f9f1077Torne (Richard Coles)	'-DVIDEO_HOLE=1' \
238f37885dbe3aaf84c4cfa45e49fa20fdc3cf415e2Android Chromium Automerger	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
2396c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DV8_TARGET_ARCH_ARM' \
240d55ba1dfaeddc5c5aee37f13d85e279bb3b8363aAndroid Chromium Automerger	'-DCAN_USE_ARMV7_INSTRUCTIONS' \
241fa2c7a84ec29e7150930affaabf8615fcb2d7a73Android Chromium Automerger	'-DV8_I18N_SUPPORT' \
242f8c9526b158ca34595a4d12d7518a54d84161095Android Chromium Automerger	'-DUSE_OPENSSL=1' \
2437cd9723fba417669a0887a2c47cda6a20bb25fe0Android Chromium Automerger	'-DUSE_OPENSSL_CERTS=1' \
2446c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DANDROID' \
2456c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-D__GNU_SOURCE=1' \
2466c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DUSE_STLPORT=1' \
2476c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
2486c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DCHROME_BUILD_ID=""' \
2496c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DNDEBUG' \
2506c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger	'-DNVALGRIND' \
2511a99f89a4e1c1494c838619b21c8eb3d430ce9ccTorne (Richard Coles)	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
2526c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger
2536c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger
2546c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger# Include paths placed before CFLAGS/CPPFLAGS
2556c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerLOCAL_C_INCLUDES_Release := \
2565b5a28cd990f2b1d54dc085662e1df7014d5fcecAndroid Chromium Automerger	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
2575b5a28cd990f2b1d54dc085662e1df7014d5fcecAndroid Chromium Automerger	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
2580fac7502a6e87bf94f7ec9e56364012aad1031e5Android Chromium Automerger	$(LOCAL_PATH)/v8 \
259a715e94c5d62236fb7b1e050f175ed825a6373baAndroid Chromium Automerger	$(gyp_shared_intermediate_dir) \
2606207d0e9d847b55cdc1657f4564e71bfde1b5379Android Chromium Automerger	$(PWD)/frameworks/wilhelm/include \
2616207d0e9d847b55cdc1657f4564e71bfde1b5379Android Chromium Automerger	$(PWD)/bionic \
2626207d0e9d847b55cdc1657f4564e71bfde1b5379Android Chromium Automerger	$(PWD)/external/stlport/stlport
263afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
264afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
265afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)# Flags passed to only C++ (and not C) files.
2666c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerLOCAL_CPPFLAGS_Release := \
2676df483e67f4054a9b9011dbf9bc9379623ece826Android Chromium Automerger	-fno-exceptions \
268afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-fno-rtti \
269afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-fno-threadsafe-statics \
270afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-fvisibility-inlines-hidden \
271afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-Wno-deprecated \
272afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	-Wno-abi \
273d55ba1dfaeddc5c5aee37f13d85e279bb3b8363aAndroid Chromium Automerger	-std=gnu++11 \
274d55ba1dfaeddc5c5aee37f13d85e279bb3b8363aAndroid Chromium Automerger	-Wno-narrowing \
275d55ba1dfaeddc5c5aee37f13d85e279bb3b8363aAndroid Chromium Automerger	-Wno-literal-suffix \
276fe7d8dc7dc1db6cfe6678be576c7264de56f2773Android Chromium Automerger	-Wno-non-virtual-dtor \
277fe7d8dc7dc1db6cfe6678be576c7264de56f2773Android Chromium Automerger	-Wno-sign-promo \
278fe7d8dc7dc1db6cfe6678be576c7264de56f2773Android Chromium Automerger	-Wno-non-virtual-dtor
279afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
2806c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium Automerger
2816c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerLOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
2826c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerLOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
2836c8423273b6bfaafb3c48b0d20e30f580e99534bAndroid Chromium AutomergerLOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
284868757725f36dabc0d459cfdcc6b328f668c8107Android Chromium AutomergerLOCAL_ASFLAGS := $(LOCAL_CFLAGS)
285afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)### Rules for final target.
286afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
287afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)LOCAL_SHARED_LIBRARIES := \
288afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	libstlport \
289afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)	libdl
290afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
2911a99f89a4e1c1494c838619b21c8eb3d430ce9ccTorne (Richard Coles)### Set directly by aosp_build_settings.
2921a99f89a4e1c1494c838619b21c8eb3d430ce9ccTorne (Richard Coles)LOCAL_FDO_SUPPORT := true
2931a99f89a4e1c1494c838619b21c8eb3d430ce9ccTorne (Richard Coles)
294afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)# Add target alias to "gyp_all_modules" target.
295afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles).PHONY: gyp_all_modules
296afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)gyp_all_modules: v8_tools_gyp_v8_snapshot_gyp
297afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
298afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)# Alias gyp target name.
299afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles).PHONY: v8_snapshot
300afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)v8_snapshot: v8_tools_gyp_v8_snapshot_gyp
301afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)
302afb318d3ce8734120b6fd7f88b194fc175672314Torne (Richard Coles)include $(BUILD_STATIC_LIBRARY)
303