1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := GYP
6LOCAL_MODULE := testing_gtest_prod_gyp
7LOCAL_MODULE_STEM := gtest_prod
8LOCAL_MODULE_SUFFIX := .stamp
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_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
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES :=
26
27
28# Flags passed to both C and C++ files.
29MY_CFLAGS_Debug := \
30	--param=ssp-buffer-size=4 \
31	-fno-strict-aliasing \
32	-Wno-unused-parameter \
33	-Wno-missing-field-initializers \
34	-fvisibility=hidden \
35	-pipe \
36	-fPIC \
37	-Wno-unused-local-typedefs \
38	-Wno-format \
39	-msse2 \
40	-mfpmath=sse \
41	-mmmx \
42	-m32 \
43	-ffunction-sections \
44	-funwind-tables \
45	-g \
46	-fno-short-enums \
47	-finline-limit=64 \
48	-Wa,--noexecstack \
49	-U_FORTIFY_SOURCE \
50	-Wno-extra \
51	-Wno-ignored-qualifiers \
52	-Wno-type-limits \
53	-Wno-unused-but-set-variable \
54	-fno-stack-protector \
55	-Wno-address \
56	-Wno-format-security \
57	-Wno-return-type \
58	-Wno-sequence-point \
59	-Os \
60	-g \
61	-gdwarf-4 \
62	-fdata-sections \
63	-ffunction-sections \
64	-fomit-frame-pointer \
65	-funwind-tables
66
67MY_DEFS_Debug := \
68	'-DV8_DEPRECATION_WARNINGS' \
69	'-D_FILE_OFFSET_BITS=64' \
70	'-DNO_TCMALLOC' \
71	'-DDISABLE_NACL' \
72	'-DCHROMIUM_BUILD' \
73	'-DUSE_LIBJPEG_TURBO=1' \
74	'-DENABLE_WEBRTC=1' \
75	'-DUSE_PROPRIETARY_CODECS' \
76	'-DENABLE_BROWSER_CDMS' \
77	'-DENABLE_CONFIGURATION_POLICY' \
78	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
79	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
80	'-DENABLE_EGLIMAGE=1' \
81	'-DCLD_VERSION=1' \
82	'-DENABLE_PRINTING=1' \
83	'-DENABLE_MANAGED_USERS=1' \
84	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
85	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
86	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
87	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
88	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
89	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
90	'-DVIDEO_HOLE=1' \
91	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
92	'-DUSE_OPENSSL=1' \
93	'-DUSE_OPENSSL_CERTS=1' \
94	'-DANDROID' \
95	'-D__GNU_SOURCE=1' \
96	'-DUSE_STLPORT=1' \
97	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
98	'-DCHROME_BUILD_ID=""' \
99	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
100	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
101	'-D_DEBUG'
102
103
104# Include paths placed before CFLAGS/CPPFLAGS
105LOCAL_C_INCLUDES_Debug := \
106	$(gyp_shared_intermediate_dir) \
107	$(PWD)/frameworks/wilhelm/include \
108	$(PWD)/bionic \
109	$(PWD)/external/stlport/stlport
110
111
112# Flags passed to only C++ (and not C) files.
113LOCAL_CPPFLAGS_Debug := \
114	-fno-exceptions \
115	-fno-rtti \
116	-fno-threadsafe-statics \
117	-fvisibility-inlines-hidden \
118	-Wno-deprecated \
119	-std=gnu++11 \
120	-Wno-narrowing \
121	-Wno-literal-suffix \
122	-Wno-non-virtual-dtor \
123	-Wno-sign-promo \
124	-Wno-non-virtual-dtor
125
126
127# Flags passed to both C and C++ files.
128MY_CFLAGS_Release := \
129	--param=ssp-buffer-size=4 \
130	-fno-strict-aliasing \
131	-Wno-unused-parameter \
132	-Wno-missing-field-initializers \
133	-fvisibility=hidden \
134	-pipe \
135	-fPIC \
136	-Wno-unused-local-typedefs \
137	-Wno-format \
138	-msse2 \
139	-mfpmath=sse \
140	-mmmx \
141	-m32 \
142	-ffunction-sections \
143	-funwind-tables \
144	-g \
145	-fno-short-enums \
146	-finline-limit=64 \
147	-Wa,--noexecstack \
148	-U_FORTIFY_SOURCE \
149	-Wno-extra \
150	-Wno-ignored-qualifiers \
151	-Wno-type-limits \
152	-Wno-unused-but-set-variable \
153	-fno-stack-protector \
154	-Wno-address \
155	-Wno-format-security \
156	-Wno-return-type \
157	-Wno-sequence-point \
158	-Os \
159	-fno-ident \
160	-fdata-sections \
161	-ffunction-sections \
162	-fomit-frame-pointer \
163	-funwind-tables
164
165MY_DEFS_Release := \
166	'-DV8_DEPRECATION_WARNINGS' \
167	'-D_FILE_OFFSET_BITS=64' \
168	'-DNO_TCMALLOC' \
169	'-DDISABLE_NACL' \
170	'-DCHROMIUM_BUILD' \
171	'-DUSE_LIBJPEG_TURBO=1' \
172	'-DENABLE_WEBRTC=1' \
173	'-DUSE_PROPRIETARY_CODECS' \
174	'-DENABLE_BROWSER_CDMS' \
175	'-DENABLE_CONFIGURATION_POLICY' \
176	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
177	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
178	'-DENABLE_EGLIMAGE=1' \
179	'-DCLD_VERSION=1' \
180	'-DENABLE_PRINTING=1' \
181	'-DENABLE_MANAGED_USERS=1' \
182	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
183	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
184	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
185	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
186	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
187	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
188	'-DVIDEO_HOLE=1' \
189	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
190	'-DUSE_OPENSSL=1' \
191	'-DUSE_OPENSSL_CERTS=1' \
192	'-DANDROID' \
193	'-D__GNU_SOURCE=1' \
194	'-DUSE_STLPORT=1' \
195	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
196	'-DCHROME_BUILD_ID=""' \
197	'-DNDEBUG' \
198	'-DNVALGRIND' \
199	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
200
201
202# Include paths placed before CFLAGS/CPPFLAGS
203LOCAL_C_INCLUDES_Release := \
204	$(gyp_shared_intermediate_dir) \
205	$(PWD)/frameworks/wilhelm/include \
206	$(PWD)/bionic \
207	$(PWD)/external/stlport/stlport
208
209
210# Flags passed to only C++ (and not C) files.
211LOCAL_CPPFLAGS_Release := \
212	-fno-exceptions \
213	-fno-rtti \
214	-fno-threadsafe-statics \
215	-fvisibility-inlines-hidden \
216	-Wno-deprecated \
217	-std=gnu++11 \
218	-Wno-narrowing \
219	-Wno-literal-suffix \
220	-Wno-non-virtual-dtor \
221	-Wno-sign-promo \
222	-Wno-non-virtual-dtor
223
224
225LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
226LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
227LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
228LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
229### Rules for final target.
230# Add target alias to "gyp_all_modules" target.
231.PHONY: gyp_all_modules
232gyp_all_modules: testing_gtest_prod_gyp
233
234# Alias gyp target name.
235.PHONY: gtest_prod
236gtest_prod: testing_gtest_prod_gyp
237
238LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
239LOCAL_UNINSTALLABLE_MODULE := true
240LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX)
241
242include $(BUILD_SYSTEM)/base_rules.mk
243
244$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
245	$(hide) echo "Gyp timestamp: $@"
246	$(hide) mkdir -p $(dir $@)
247	$(hide) touch $@
248
249LOCAL_2ND_ARCH_VAR_PREFIX :=
250