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_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_IS_HOST_MODULE := true
9LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES := \
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
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_CPP_EXTENSION := .cc
23$(gyp_intermediate_dir)/libraries.cc: $(gyp_shared_intermediate_dir)/libraries.cc
24	mkdir -p $(@D); cp $< $@
25$(gyp_intermediate_dir)/experimental-libraries.cc: $(gyp_shared_intermediate_dir)/experimental-libraries.cc
26	mkdir -p $(@D); cp $< $@
27LOCAL_GENERATED_SOURCES := \
28	$(gyp_intermediate_dir)/libraries.cc \
29	$(gyp_intermediate_dir)/experimental-libraries.cc
30
31GYP_COPIED_SOURCE_ORIGIN_DIRS := \
32	$(gyp_shared_intermediate_dir)
33
34LOCAL_SRC_FILES := \
35	v8/src/snapshot-common.cc \
36	v8/src/snapshot-empty.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	 \
44	-pthread \
45	-fno-strict-aliasing \
46	-Wno-unused-parameter \
47	-Wno-missing-field-initializers \
48	-fvisibility=hidden \
49	-pipe \
50	-fPIC \
51	-Wno-format \
52	-Wheader-hygiene \
53	-Wno-char-subscripts \
54	-Wno-unneeded-internal-declaration \
55	-Wno-covered-switch-default \
56	-Wstring-conversion \
57	-Wno-c++11-narrowing \
58	-Wno-deprecated-register \
59	-Wno-unused-local-typedef \
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_MIPS64' \
94	'-DCAN_USE_FPU_INSTRUCTIONS' \
95	'-D__mips_hard_float=1' \
96	'-D_MIPS_ARCH_MIPS64R2' \
97	'-DV8_I18N_SUPPORT' \
98	'-DUSE_OPENSSL=1' \
99	'-DUSE_OPENSSL_CERTS=1' \
100	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
101	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
102	'-D_DEBUG' \
103	'-DENABLE_DISASSEMBLER' \
104	'-DV8_ENABLE_CHECKS' \
105	'-DOBJECT_PRINT' \
106	'-DVERIFY_HEAP' \
107	'-DENABLE_EXTRA_CHECKS' \
108	'-DENABLE_HANDLE_ZAPPING'
109
110
111# Include paths placed before CFLAGS/CPPFLAGS
112LOCAL_C_INCLUDES_Debug := \
113	$(LOCAL_PATH)/v8 \
114	$(gyp_shared_intermediate_dir)
115
116
117# Flags passed to only C++ (and not C) files.
118LOCAL_CPPFLAGS_Debug := \
119	-fno-exceptions \
120	-fno-rtti \
121	-fno-threadsafe-statics \
122	-fvisibility-inlines-hidden \
123	-Wno-deprecated \
124	-std=gnu++11
125
126
127# Flags passed to both C and C++ files.
128MY_CFLAGS_Release := \
129	-fstack-protector \
130	--param=ssp-buffer-size=4 \
131	 \
132	-pthread \
133	-fno-strict-aliasing \
134	-Wno-unused-parameter \
135	-Wno-missing-field-initializers \
136	-fvisibility=hidden \
137	-pipe \
138	-fPIC \
139	-Wno-format \
140	-Wheader-hygiene \
141	-Wno-char-subscripts \
142	-Wno-unneeded-internal-declaration \
143	-Wno-covered-switch-default \
144	-Wstring-conversion \
145	-Wno-c++11-narrowing \
146	-Wno-deprecated-register \
147	-Wno-unused-local-typedef \
148	-fno-ident \
149	-fdata-sections \
150	-ffunction-sections \
151	-fomit-frame-pointer \
152	-funwind-tables \
153	-fdata-sections \
154	-ffunction-sections \
155	-O2
156
157MY_DEFS_Release := \
158	'-DV8_DEPRECATION_WARNINGS' \
159	'-D_FILE_OFFSET_BITS=64' \
160	'-DNO_TCMALLOC' \
161	'-DDISABLE_NACL' \
162	'-DCHROMIUM_BUILD' \
163	'-DUSE_LIBJPEG_TURBO=1' \
164	'-DENABLE_WEBRTC=1' \
165	'-DUSE_PROPRIETARY_CODECS' \
166	'-DENABLE_BROWSER_CDMS' \
167	'-DENABLE_CONFIGURATION_POLICY' \
168	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
169	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
170	'-DENABLE_EGLIMAGE=1' \
171	'-DCLD_VERSION=1' \
172	'-DENABLE_PRINTING=1' \
173	'-DENABLE_MANAGED_USERS=1' \
174	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
175	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
176	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
177	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
178	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
179	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
180	'-DVIDEO_HOLE=1' \
181	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
182	'-DV8_TARGET_ARCH_MIPS64' \
183	'-DCAN_USE_FPU_INSTRUCTIONS' \
184	'-D__mips_hard_float=1' \
185	'-D_MIPS_ARCH_MIPS64R2' \
186	'-DV8_I18N_SUPPORT' \
187	'-DUSE_OPENSSL=1' \
188	'-DUSE_OPENSSL_CERTS=1' \
189	'-DNDEBUG' \
190	'-DNVALGRIND' \
191	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
192
193
194# Include paths placed before CFLAGS/CPPFLAGS
195LOCAL_C_INCLUDES_Release := \
196	$(LOCAL_PATH)/v8 \
197	$(gyp_shared_intermediate_dir)
198
199
200# Flags passed to only C++ (and not C) files.
201LOCAL_CPPFLAGS_Release := \
202	-fno-exceptions \
203	-fno-rtti \
204	-fno-threadsafe-statics \
205	-fvisibility-inlines-hidden \
206	-Wno-deprecated \
207	-std=gnu++11
208
209
210LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
211# Undefine ANDROID for host modules
212LOCAL_CFLAGS += -UANDROID
213LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
214LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
215LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
216### Rules for final target.
217### Set directly by aosp_build_settings.
218LOCAL_CLANG := true
219
220# Add target alias to "gyp_all_modules" target.
221.PHONY: gyp_all_modules
222gyp_all_modules: v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
223
224# Alias gyp target name.
225.PHONY: v8_nosnapshot
226v8_nosnapshot: v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
227
228include $(BUILD_HOST_STATIC_LIBRARY)
229