• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := EXECUTABLES
6LOCAL_MODULE := v8_tools_gyp_mksnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
7LOCAL_MODULE_STEM := mksnapshot
8LOCAL_MODULE_SUFFIX :=
9LOCAL_IS_HOST_MODULE := true
10LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
11gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))
12gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
13
14# Make sure our deps are built first.
15GYP_TARGET_DEPENDENCIES := \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_base_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_base_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
17	$(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
18	$(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
19	$(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
20	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icui18n_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_icu_icui18n_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
21	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icuuc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_icu_icuuc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
22	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icudata_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_icu_icudata_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \
23	$(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/js2c.stamp
24
25GYP_GENERATED_OUTPUTS :=
26
27# Make sure our deps and generated files are built first.
28LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
29
30LOCAL_CPP_EXTENSION := .cc
31LOCAL_GENERATED_SOURCES :=
32
33GYP_COPIED_SOURCE_ORIGIN_DIRS :=
34
35LOCAL_SRC_FILES := \
36	v8/src/mksnapshot.cc
37
38
39# Flags passed to both C and C++ files.
40MY_CFLAGS_Debug := \
41	-fstack-protector \
42	--param=ssp-buffer-size=4 \
43	-pthread \
44	-fno-strict-aliasing \
45	-Wno-unused-parameter \
46	-Wno-missing-field-initializers \
47	-fvisibility=hidden \
48	-pipe \
49	-fPIC \
50	-Wno-format \
51	-Wheader-hygiene \
52	-Wno-char-subscripts \
53	-Wno-unneeded-internal-declaration \
54	-Wno-covered-switch-default \
55	-Wstring-conversion \
56	-Wno-c++11-narrowing \
57	-Wno-deprecated-register \
58	-Wno-unused-local-typedef \
59	-m32 \
60	-Os \
61	-g \
62	-gdwarf-4 \
63	-fdata-sections \
64	-ffunction-sections \
65	-fomit-frame-pointer \
66	-funwind-tables
67
68MY_DEFS_Debug := \
69	'-DV8_DEPRECATION_WARNINGS' \
70	'-D_FILE_OFFSET_BITS=64' \
71	'-DNO_TCMALLOC' \
72	'-DDISABLE_NACL' \
73	'-DCHROMIUM_BUILD' \
74	'-DUSE_LIBJPEG_TURBO=1' \
75	'-DENABLE_WEBRTC=1' \
76	'-DUSE_PROPRIETARY_CODECS' \
77	'-DENABLE_BROWSER_CDMS' \
78	'-DENABLE_CONFIGURATION_POLICY' \
79	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
80	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
81	'-DENABLE_EGLIMAGE=1' \
82	'-DCLD_VERSION=1' \
83	'-DENABLE_PRINTING=1' \
84	'-DENABLE_MANAGED_USERS=1' \
85	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
86	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
87	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
88	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
89	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
90	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
91	'-DVIDEO_HOLE=1' \
92	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
93	'-DV8_TARGET_ARCH_IA32' \
94	'-DV8_I18N_SUPPORT' \
95	'-DUSE_OPENSSL=1' \
96	'-DUSE_OPENSSL_CERTS=1' \
97	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
98	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
99	'-D_DEBUG' \
100	'-DENABLE_DISASSEMBLER' \
101	'-DV8_ENABLE_CHECKS' \
102	'-DOBJECT_PRINT' \
103	'-DVERIFY_HEAP' \
104	'-DENABLE_EXTRA_CHECKS' \
105	'-DENABLE_HANDLE_ZAPPING'
106
107
108# Include paths placed before CFLAGS/CPPFLAGS
109LOCAL_C_INCLUDES_Debug := \
110	$(LOCAL_PATH)/v8 \
111	$(gyp_shared_intermediate_dir)
112
113
114# Flags passed to only C++ (and not C) files.
115LOCAL_CPPFLAGS_Debug := \
116	-fno-exceptions \
117	-fno-rtti \
118	-fno-threadsafe-statics \
119	-fvisibility-inlines-hidden \
120	-Wno-deprecated \
121	-std=gnu++11
122
123
124# Flags passed to both C and C++ files.
125MY_CFLAGS_Release := \
126	-fstack-protector \
127	--param=ssp-buffer-size=4 \
128	-pthread \
129	-fno-strict-aliasing \
130	-Wno-unused-parameter \
131	-Wno-missing-field-initializers \
132	-fvisibility=hidden \
133	-pipe \
134	-fPIC \
135	-Wno-format \
136	-Wheader-hygiene \
137	-Wno-char-subscripts \
138	-Wno-unneeded-internal-declaration \
139	-Wno-covered-switch-default \
140	-Wstring-conversion \
141	-Wno-c++11-narrowing \
142	-Wno-deprecated-register \
143	-Wno-unused-local-typedef \
144	-m32 \
145	-fno-ident \
146	-fdata-sections \
147	-ffunction-sections \
148	-fomit-frame-pointer \
149	-funwind-tables \
150	-fdata-sections \
151	-ffunction-sections \
152	-O2
153
154MY_DEFS_Release := \
155	'-DV8_DEPRECATION_WARNINGS' \
156	'-D_FILE_OFFSET_BITS=64' \
157	'-DNO_TCMALLOC' \
158	'-DDISABLE_NACL' \
159	'-DCHROMIUM_BUILD' \
160	'-DUSE_LIBJPEG_TURBO=1' \
161	'-DENABLE_WEBRTC=1' \
162	'-DUSE_PROPRIETARY_CODECS' \
163	'-DENABLE_BROWSER_CDMS' \
164	'-DENABLE_CONFIGURATION_POLICY' \
165	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
166	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
167	'-DENABLE_EGLIMAGE=1' \
168	'-DCLD_VERSION=1' \
169	'-DENABLE_PRINTING=1' \
170	'-DENABLE_MANAGED_USERS=1' \
171	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
172	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
173	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
174	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
175	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
176	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
177	'-DVIDEO_HOLE=1' \
178	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
179	'-DV8_TARGET_ARCH_IA32' \
180	'-DV8_I18N_SUPPORT' \
181	'-DUSE_OPENSSL=1' \
182	'-DUSE_OPENSSL_CERTS=1' \
183	'-DNDEBUG' \
184	'-DNVALGRIND' \
185	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
186
187
188# Include paths placed before CFLAGS/CPPFLAGS
189LOCAL_C_INCLUDES_Release := \
190	$(LOCAL_PATH)/v8 \
191	$(gyp_shared_intermediate_dir)
192
193
194# Flags passed to only C++ (and not C) files.
195LOCAL_CPPFLAGS_Release := \
196	-fno-exceptions \
197	-fno-rtti \
198	-fno-threadsafe-statics \
199	-fvisibility-inlines-hidden \
200	-Wno-deprecated \
201	-std=gnu++11
202
203
204LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
205# Undefine ANDROID for host modules
206LOCAL_CFLAGS += -UANDROID
207LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
208LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
209LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
210### Rules for final target.
211
212LOCAL_LDFLAGS_Debug := \
213	-Wl,-z,now \
214	-Wl,-z,relro \
215	-pthread \
216	-fPIC \
217	-m32
218
219
220LOCAL_LDFLAGS_Release := \
221	-Wl,-z,now \
222	-Wl,-z,relro \
223	-pthread \
224	-fPIC \
225	-m32
226
227
228LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
229
230LOCAL_STATIC_LIBRARIES := \
231	v8_tools_gyp_v8_base_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
232	v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
233	v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
234	v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
235	third_party_icu_icui18n_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
236	third_party_icu_icuuc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \
237	third_party_icu_icudata_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
238
239# Enable grouping to fix circular references
240LOCAL_GROUP_STATIC_LIBRARIES := true
241### Set directly by aosp_build_settings.
242LOCAL_CLANG := true
243
244# Add target alias to "gyp_all_modules" target.
245.PHONY: gyp_all_modules
246gyp_all_modules: v8_tools_gyp_mksnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
247
248# Alias gyp target name.
249.PHONY: mksnapshot
250mksnapshot: v8_tools_gyp_mksnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
251
252LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
253include $(BUILD_HOST_EXECUTABLE)
254