1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := components_cdm_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	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_accessibility_ax_gen_gyp,,,$(GYP_VAR_PREFIX))/ui_accessibility_ax_gen_gyp.a \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a
17
18GYP_GENERATED_OUTPUTS :=
19
20# Make sure our deps and generated files are built first.
21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
22
23LOCAL_CPP_EXTENSION := .cc
24LOCAL_GENERATED_SOURCES :=
25
26GYP_COPIED_SOURCE_ORIGIN_DIRS :=
27
28LOCAL_SRC_FILES := \
29	components/cdm/browser/cdm_message_filter_android.cc
30
31
32# Flags passed to both C and C++ files.
33MY_CFLAGS_Debug := \
34	--param=ssp-buffer-size=4 \
35	-Werror \
36	-fno-exceptions \
37	-fno-strict-aliasing \
38	-Wall \
39	-Wno-unused-parameter \
40	-Wno-missing-field-initializers \
41	-fvisibility=hidden \
42	-pipe \
43	-fPIC \
44	-Wno-unused-local-typedefs \
45	-ffunction-sections \
46	-funwind-tables \
47	-g \
48	-fno-short-enums \
49	-finline-limit=64 \
50	-Wa,--noexecstack \
51	-U_FORTIFY_SOURCE \
52	-Wno-extra \
53	-Wno-ignored-qualifiers \
54	-Wno-type-limits \
55	-Wno-unused-but-set-variable \
56	-Os \
57	-g \
58	-fdata-sections \
59	-ffunction-sections \
60	-funwind-tables
61
62MY_DEFS_Debug := \
63	'-DV8_DEPRECATION_WARNINGS' \
64	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
65	'-D_FILE_OFFSET_BITS=64' \
66	'-DNO_TCMALLOC' \
67	'-DDISABLE_NACL' \
68	'-DCHROMIUM_BUILD' \
69	'-DUSE_LIBJPEG_TURBO=1' \
70	'-DENABLE_WEBRTC=1' \
71	'-DUSE_PROPRIETARY_CODECS' \
72	'-DENABLE_BROWSER_CDMS' \
73	'-DENABLE_CONFIGURATION_POLICY' \
74	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
75	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
76	'-DENABLE_EGLIMAGE=1' \
77	'-DCLD_VERSION=1' \
78	'-DENABLE_PRINTING=1' \
79	'-DENABLE_MANAGED_USERS=1' \
80	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
81	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
82	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
83	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
84	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
85	'-DVIDEO_HOLE=1' \
86	'-DMOJO_USE_SYSTEM_IMPL' \
87	'-DSK_ENABLE_INST_COUNT=0' \
88	'-DSK_SUPPORT_GPU=1' \
89	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
90	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
91	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
92	'-DGR_GL_IGNORE_ES3_MSAA=0' \
93	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
94	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
95	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
96	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
97	'-DSK_SUPPORT_LEGACY_N32_NAME' \
98	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
99	'-DSK_IGNORE_ETC1_SUPPORT' \
100	'-DSK_IGNORE_GPU_DITHER' \
101	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
102	'-DSK_BUILD_FOR_ANDROID' \
103	'-DSK_USE_POSIX_THREADS' \
104	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
105	'-DMEDIA_DISABLE_LIBVPX' \
106	'-DUSE_OPENSSL=1' \
107	'-DUSE_OPENSSL_CERTS=1' \
108	'-D__STDC_CONSTANT_MACROS' \
109	'-D__STDC_FORMAT_MACROS' \
110	'-DANDROID' \
111	'-D__GNU_SOURCE=1' \
112	'-DUSE_STLPORT=1' \
113	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
114	'-DCHROME_BUILD_ID=""' \
115	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
116	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
117	'-D_DEBUG'
118
119
120# Include paths placed before CFLAGS/CPPFLAGS
121LOCAL_C_INCLUDES_Debug := \
122	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
123	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
124	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
125	$(gyp_shared_intermediate_dir) \
126	$(LOCAL_PATH)/third_party/khronos \
127	$(LOCAL_PATH)/gpu \
128	$(LOCAL_PATH) \
129	$(LOCAL_PATH)/skia/config \
130	$(LOCAL_PATH)/third_party/WebKit/Source \
131	$(LOCAL_PATH)/third_party/WebKit \
132	$(LOCAL_PATH)/third_party/skia/src/core \
133	$(LOCAL_PATH)/third_party/skia/include/core \
134	$(LOCAL_PATH)/third_party/skia/include/effects \
135	$(LOCAL_PATH)/third_party/skia/include/pdf \
136	$(LOCAL_PATH)/third_party/skia/include/gpu \
137	$(LOCAL_PATH)/third_party/skia/include/lazy \
138	$(LOCAL_PATH)/third_party/skia/include/pathops \
139	$(LOCAL_PATH)/third_party/skia/include/pipe \
140	$(LOCAL_PATH)/third_party/skia/include/ports \
141	$(LOCAL_PATH)/third_party/skia/include/utils \
142	$(LOCAL_PATH)/skia/ext \
143	$(PWD)/frameworks/wilhelm/include \
144	$(PWD)/bionic \
145	$(PWD)/external/stlport/stlport
146
147
148# Flags passed to only C++ (and not C) files.
149LOCAL_CPPFLAGS_Debug := \
150	-fno-rtti \
151	-fno-threadsafe-statics \
152	-fvisibility-inlines-hidden \
153	-Wsign-compare \
154	-Wno-non-virtual-dtor \
155	-Wno-sign-promo
156
157
158LOCAL_FDO_SUPPORT_Debug := false
159
160# Flags passed to both C and C++ files.
161MY_CFLAGS_Release := \
162	--param=ssp-buffer-size=4 \
163	-Werror \
164	-fno-exceptions \
165	-fno-strict-aliasing \
166	-Wall \
167	-Wno-unused-parameter \
168	-Wno-missing-field-initializers \
169	-fvisibility=hidden \
170	-pipe \
171	-fPIC \
172	-Wno-unused-local-typedefs \
173	-ffunction-sections \
174	-funwind-tables \
175	-g \
176	-fno-short-enums \
177	-finline-limit=64 \
178	-Wa,--noexecstack \
179	-U_FORTIFY_SOURCE \
180	-Wno-extra \
181	-Wno-ignored-qualifiers \
182	-Wno-type-limits \
183	-Wno-unused-but-set-variable \
184	-Os \
185	-fno-ident \
186	-fdata-sections \
187	-ffunction-sections \
188	-funwind-tables
189
190MY_DEFS_Release := \
191	'-DV8_DEPRECATION_WARNINGS' \
192	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
193	'-D_FILE_OFFSET_BITS=64' \
194	'-DNO_TCMALLOC' \
195	'-DDISABLE_NACL' \
196	'-DCHROMIUM_BUILD' \
197	'-DUSE_LIBJPEG_TURBO=1' \
198	'-DENABLE_WEBRTC=1' \
199	'-DUSE_PROPRIETARY_CODECS' \
200	'-DENABLE_BROWSER_CDMS' \
201	'-DENABLE_CONFIGURATION_POLICY' \
202	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
203	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
204	'-DENABLE_EGLIMAGE=1' \
205	'-DCLD_VERSION=1' \
206	'-DENABLE_PRINTING=1' \
207	'-DENABLE_MANAGED_USERS=1' \
208	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
209	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
210	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
211	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
212	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
213	'-DVIDEO_HOLE=1' \
214	'-DMOJO_USE_SYSTEM_IMPL' \
215	'-DSK_ENABLE_INST_COUNT=0' \
216	'-DSK_SUPPORT_GPU=1' \
217	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
218	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
219	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
220	'-DGR_GL_IGNORE_ES3_MSAA=0' \
221	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
222	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
223	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
224	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
225	'-DSK_SUPPORT_LEGACY_N32_NAME' \
226	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
227	'-DSK_IGNORE_ETC1_SUPPORT' \
228	'-DSK_IGNORE_GPU_DITHER' \
229	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
230	'-DSK_BUILD_FOR_ANDROID' \
231	'-DSK_USE_POSIX_THREADS' \
232	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
233	'-DMEDIA_DISABLE_LIBVPX' \
234	'-DUSE_OPENSSL=1' \
235	'-DUSE_OPENSSL_CERTS=1' \
236	'-D__STDC_CONSTANT_MACROS' \
237	'-D__STDC_FORMAT_MACROS' \
238	'-DANDROID' \
239	'-D__GNU_SOURCE=1' \
240	'-DUSE_STLPORT=1' \
241	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
242	'-DCHROME_BUILD_ID=""' \
243	'-DNDEBUG' \
244	'-DNVALGRIND' \
245	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
246	'-D_FORTIFY_SOURCE=2'
247
248
249# Include paths placed before CFLAGS/CPPFLAGS
250LOCAL_C_INCLUDES_Release := \
251	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
252	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
253	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
254	$(gyp_shared_intermediate_dir) \
255	$(LOCAL_PATH)/third_party/khronos \
256	$(LOCAL_PATH)/gpu \
257	$(LOCAL_PATH) \
258	$(LOCAL_PATH)/skia/config \
259	$(LOCAL_PATH)/third_party/WebKit/Source \
260	$(LOCAL_PATH)/third_party/WebKit \
261	$(LOCAL_PATH)/third_party/skia/src/core \
262	$(LOCAL_PATH)/third_party/skia/include/core \
263	$(LOCAL_PATH)/third_party/skia/include/effects \
264	$(LOCAL_PATH)/third_party/skia/include/pdf \
265	$(LOCAL_PATH)/third_party/skia/include/gpu \
266	$(LOCAL_PATH)/third_party/skia/include/lazy \
267	$(LOCAL_PATH)/third_party/skia/include/pathops \
268	$(LOCAL_PATH)/third_party/skia/include/pipe \
269	$(LOCAL_PATH)/third_party/skia/include/ports \
270	$(LOCAL_PATH)/third_party/skia/include/utils \
271	$(LOCAL_PATH)/skia/ext \
272	$(PWD)/frameworks/wilhelm/include \
273	$(PWD)/bionic \
274	$(PWD)/external/stlport/stlport
275
276
277# Flags passed to only C++ (and not C) files.
278LOCAL_CPPFLAGS_Release := \
279	-fno-rtti \
280	-fno-threadsafe-statics \
281	-fvisibility-inlines-hidden \
282	-Wsign-compare \
283	-Wno-non-virtual-dtor \
284	-Wno-sign-promo
285
286
287LOCAL_FDO_SUPPORT_Release := false
288
289LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
290LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
291LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
292LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
293LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
294### Rules for final target.
295
296LOCAL_LDFLAGS_Debug := \
297	-Wl,-z,now \
298	-Wl,-z,relro \
299	-Wl,--fatal-warnings \
300	-Wl,-z,noexecstack \
301	-fPIC \
302	-nostdlib \
303	-Wl,--no-undefined \
304	-Wl,--exclude-libs=ALL \
305	-Wl,--warn-shared-textrel \
306	-Wl,-O1 \
307	-Wl,--as-needed
308
309
310LOCAL_LDFLAGS_Release := \
311	-Wl,-z,now \
312	-Wl,-z,relro \
313	-Wl,--fatal-warnings \
314	-Wl,-z,noexecstack \
315	-fPIC \
316	-nostdlib \
317	-Wl,--no-undefined \
318	-Wl,--exclude-libs=ALL \
319	-Wl,-O1 \
320	-Wl,--as-needed \
321	-Wl,--gc-sections \
322	-Wl,--warn-shared-textrel
323
324
325LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
326
327LOCAL_STATIC_LIBRARIES := \
328	ui_accessibility_ax_gen_gyp \
329	skia_skia_library_gyp
330
331# Enable grouping to fix circular references
332LOCAL_GROUP_STATIC_LIBRARIES := true
333
334LOCAL_SHARED_LIBRARIES := \
335	libstlport \
336	libdl
337
338# Add target alias to "gyp_all_modules" target.
339.PHONY: gyp_all_modules
340gyp_all_modules: components_cdm_browser_gyp
341
342# Alias gyp target name.
343.PHONY: cdm_browser
344cdm_browser: components_cdm_browser_gyp
345
346include $(BUILD_STATIC_LIBRARY)
347