1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := components_data_reduction_proxy_browser_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
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_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc \
28	components/data_reduction_proxy/browser/data_reduction_proxy_config_service.cc \
29	components/data_reduction_proxy/browser/data_reduction_proxy_metrics.cc \
30	components/data_reduction_proxy/browser/data_reduction_proxy_params.cc \
31	components/data_reduction_proxy/browser/data_reduction_proxy_prefs.cc \
32	components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc \
33	components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc \
34	components/data_reduction_proxy/browser/http_auth_handler_data_reduction_proxy.cc
35
36
37# Flags passed to both C and C++ files.
38MY_CFLAGS_Debug := \
39	-fstack-protector \
40	--param=ssp-buffer-size=4 \
41	 \
42	-fno-exceptions \
43	-fno-strict-aliasing \
44	-Wall \
45	-Wno-unused-parameter \
46	-Wno-missing-field-initializers \
47	-fvisibility=hidden \
48	-pipe \
49	-fPIC \
50	-Wno-unused-local-typedefs \
51	-EL \
52	-mhard-float \
53	-ffunction-sections \
54	-funwind-tables \
55	-g \
56	-fstack-protector \
57	-fno-short-enums \
58	-finline-limit=64 \
59	-Wa,--noexecstack \
60	-U_FORTIFY_SOURCE \
61	-Wno-extra \
62	-Wno-ignored-qualifiers \
63	-Wno-type-limits \
64	-Wno-unused-but-set-variable \
65	-Os \
66	-g \
67	-fdata-sections \
68	-ffunction-sections \
69	-fomit-frame-pointer \
70	-funwind-tables
71
72MY_DEFS_Debug := \
73	'-DV8_DEPRECATION_WARNINGS' \
74	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
75	'-D_FILE_OFFSET_BITS=64' \
76	'-DNO_TCMALLOC' \
77	'-DDISABLE_NACL' \
78	'-DCHROMIUM_BUILD' \
79	'-DUSE_LIBJPEG_TURBO=1' \
80	'-DENABLE_WEBRTC=1' \
81	'-DUSE_PROPRIETARY_CODECS' \
82	'-DENABLE_BROWSER_CDMS' \
83	'-DENABLE_CONFIGURATION_POLICY' \
84	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
85	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
86	'-DENABLE_EGLIMAGE=1' \
87	'-DCLD_VERSION=1' \
88	'-DENABLE_PRINTING=1' \
89	'-DENABLE_MANAGED_USERS=1' \
90	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
91	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
92	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
93	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
94	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
95	'-DVIDEO_HOLE=1' \
96	'-DPOSIX_AVOID_MMAP' \
97	'-DUSE_OPENSSL=1' \
98	'-DUSE_OPENSSL_CERTS=1' \
99	'-D__STDC_CONSTANT_MACROS' \
100	'-D__STDC_FORMAT_MACROS' \
101	'-DANDROID' \
102	'-D__GNU_SOURCE=1' \
103	'-DUSE_STLPORT=1' \
104	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
105	'-DCHROME_BUILD_ID=""' \
106	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
107	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
108	'-D_DEBUG'
109
110
111# Include paths placed before CFLAGS/CPPFLAGS
112LOCAL_C_INCLUDES_Debug := \
113	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
114	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
115	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
116	$(gyp_shared_intermediate_dir) \
117	$(LOCAL_PATH) \
118	$(LOCAL_PATH)/skia/config \
119	$(PWD)/frameworks/wilhelm/include \
120	$(PWD)/bionic \
121	$(PWD)/external/stlport/stlport
122
123
124# Flags passed to only C++ (and not C) files.
125LOCAL_CPPFLAGS_Debug := \
126	-fno-rtti \
127	-fno-threadsafe-statics \
128	-fvisibility-inlines-hidden \
129	-Wsign-compare \
130	-Wno-uninitialized \
131	-Wno-non-virtual-dtor \
132	-Wno-sign-promo
133
134
135LOCAL_FDO_SUPPORT_Debug := false
136
137# Flags passed to both C and C++ files.
138MY_CFLAGS_Release := \
139	-fstack-protector \
140	--param=ssp-buffer-size=4 \
141	 \
142	-fno-exceptions \
143	-fno-strict-aliasing \
144	-Wall \
145	-Wno-unused-parameter \
146	-Wno-missing-field-initializers \
147	-fvisibility=hidden \
148	-pipe \
149	-fPIC \
150	-Wno-unused-local-typedefs \
151	-EL \
152	-mhard-float \
153	-ffunction-sections \
154	-funwind-tables \
155	-g \
156	-fstack-protector \
157	-fno-short-enums \
158	-finline-limit=64 \
159	-Wa,--noexecstack \
160	-U_FORTIFY_SOURCE \
161	-Wno-extra \
162	-Wno-ignored-qualifiers \
163	-Wno-type-limits \
164	-Wno-unused-but-set-variable \
165	-Os \
166	-fno-ident \
167	-fdata-sections \
168	-ffunction-sections \
169	-fomit-frame-pointer \
170	-funwind-tables
171
172MY_DEFS_Release := \
173	'-DV8_DEPRECATION_WARNINGS' \
174	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
175	'-D_FILE_OFFSET_BITS=64' \
176	'-DNO_TCMALLOC' \
177	'-DDISABLE_NACL' \
178	'-DCHROMIUM_BUILD' \
179	'-DUSE_LIBJPEG_TURBO=1' \
180	'-DENABLE_WEBRTC=1' \
181	'-DUSE_PROPRIETARY_CODECS' \
182	'-DENABLE_BROWSER_CDMS' \
183	'-DENABLE_CONFIGURATION_POLICY' \
184	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
185	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
186	'-DENABLE_EGLIMAGE=1' \
187	'-DCLD_VERSION=1' \
188	'-DENABLE_PRINTING=1' \
189	'-DENABLE_MANAGED_USERS=1' \
190	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
191	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
192	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
193	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
194	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
195	'-DVIDEO_HOLE=1' \
196	'-DPOSIX_AVOID_MMAP' \
197	'-DUSE_OPENSSL=1' \
198	'-DUSE_OPENSSL_CERTS=1' \
199	'-D__STDC_CONSTANT_MACROS' \
200	'-D__STDC_FORMAT_MACROS' \
201	'-DANDROID' \
202	'-D__GNU_SOURCE=1' \
203	'-DUSE_STLPORT=1' \
204	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
205	'-DCHROME_BUILD_ID=""' \
206	'-DNDEBUG' \
207	'-DNVALGRIND' \
208	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
209	'-D_FORTIFY_SOURCE=2'
210
211
212# Include paths placed before CFLAGS/CPPFLAGS
213LOCAL_C_INCLUDES_Release := \
214	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
215	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
216	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
217	$(gyp_shared_intermediate_dir) \
218	$(LOCAL_PATH) \
219	$(LOCAL_PATH)/skia/config \
220	$(PWD)/frameworks/wilhelm/include \
221	$(PWD)/bionic \
222	$(PWD)/external/stlport/stlport
223
224
225# Flags passed to only C++ (and not C) files.
226LOCAL_CPPFLAGS_Release := \
227	-fno-rtti \
228	-fno-threadsafe-statics \
229	-fvisibility-inlines-hidden \
230	-Wsign-compare \
231	-Wno-uninitialized \
232	-Wno-non-virtual-dtor \
233	-Wno-sign-promo
234
235
236LOCAL_FDO_SUPPORT_Release := false
237
238LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
239LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
240LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
241LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
242LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
243### Rules for final target.
244
245LOCAL_LDFLAGS_Debug := \
246	-Wl,-z,now \
247	-Wl,-z,relro \
248	-Wl,--fatal-warnings \
249	-Wl,-z,noexecstack \
250	-fPIC \
251	-EL \
252	-Wl,--no-keep-memory \
253	-nostdlib \
254	-Wl,--no-undefined \
255	-Wl,--exclude-libs=ALL \
256	-Wl,--warn-shared-textrel \
257	-Wl,-O1 \
258	-Wl,--as-needed
259
260
261LOCAL_LDFLAGS_Release := \
262	-Wl,-z,now \
263	-Wl,-z,relro \
264	-Wl,--fatal-warnings \
265	-Wl,-z,noexecstack \
266	-fPIC \
267	-EL \
268	-Wl,--no-keep-memory \
269	-nostdlib \
270	-Wl,--no-undefined \
271	-Wl,--exclude-libs=ALL \
272	-Wl,-O1 \
273	-Wl,--as-needed \
274	-Wl,--gc-sections \
275	-Wl,--warn-shared-textrel
276
277
278LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
279
280LOCAL_STATIC_LIBRARIES :=
281
282# Enable grouping to fix circular references
283LOCAL_GROUP_STATIC_LIBRARIES := true
284
285LOCAL_SHARED_LIBRARIES := \
286	libstlport \
287	libdl
288
289# Add target alias to "gyp_all_modules" target.
290.PHONY: gyp_all_modules
291gyp_all_modules: components_data_reduction_proxy_browser_gyp
292
293# Alias gyp target name.
294.PHONY: data_reduction_proxy_browser
295data_reduction_proxy_browser: components_data_reduction_proxy_browser_gyp
296
297include $(BUILD_STATIC_LIBRARY)
298