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