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