1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := components_cdm_renderer_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,GYP,third_party_widevine_cdm_widevine_cdm_version_h_gyp,,,$(GYP_VAR_PREFIX))/widevine_cdm_version_h.stamp
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_CPP_EXTENSION := .cc
23LOCAL_GENERATED_SOURCES :=
24
25GYP_COPIED_SOURCE_ORIGIN_DIRS :=
26
27LOCAL_SRC_FILES := \
28	components/cdm/renderer/widevine_key_systems.cc \
29	components/cdm/renderer/android_key_systems.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	-msse2 \
46	-mfpmath=sse \
47	-mmmx \
48	-m32 \
49	-ffunction-sections \
50	-funwind-tables \
51	-g \
52	-fno-short-enums \
53	-finline-limit=64 \
54	-Wa,--noexecstack \
55	-U_FORTIFY_SOURCE \
56	-Wno-extra \
57	-Wno-ignored-qualifiers \
58	-Wno-type-limits \
59	-Wno-unused-but-set-variable \
60	-fno-stack-protector \
61	-Os \
62	-g \
63	-fdata-sections \
64	-ffunction-sections \
65	-fomit-frame-pointer \
66	-funwind-tables
67
68MY_DEFS_Debug := \
69	'-DV8_DEPRECATION_WARNINGS' \
70	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
71	'-D_FILE_OFFSET_BITS=64' \
72	'-DNO_TCMALLOC' \
73	'-DDISABLE_NACL' \
74	'-DCHROMIUM_BUILD' \
75	'-DUSE_LIBJPEG_TURBO=1' \
76	'-DENABLE_WEBRTC=1' \
77	'-DUSE_PROPRIETARY_CODECS' \
78	'-DENABLE_BROWSER_CDMS' \
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	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
87	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
88	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
89	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
90	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
91	'-DVIDEO_HOLE=1' \
92	'-DMOJO_USE_SYSTEM_IMPL' \
93	'-DLIBPEERCONNECTION_LIB=1' \
94	'-DUSE_OPENSSL=1' \
95	'-DUSE_OPENSSL_CERTS=1' \
96	'-D__STDC_CONSTANT_MACROS' \
97	'-D__STDC_FORMAT_MACROS' \
98	'-DANDROID' \
99	'-D__GNU_SOURCE=1' \
100	'-DUSE_STLPORT=1' \
101	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
102	'-DCHROME_BUILD_ID=""' \
103	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
104	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
105	'-D_DEBUG'
106
107
108# Include paths placed before CFLAGS/CPPFLAGS
109LOCAL_C_INCLUDES_Debug := \
110	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
111	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
112	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
113	$(gyp_shared_intermediate_dir) \
114	$(LOCAL_PATH)/third_party/khronos \
115	$(LOCAL_PATH)/gpu \
116	$(LOCAL_PATH) \
117	$(LOCAL_PATH)/skia/config \
118	$(LOCAL_PATH)/third_party/WebKit/Source \
119	$(LOCAL_PATH)/third_party/WebKit \
120	$(PWD)/frameworks/wilhelm/include \
121	$(PWD)/bionic \
122	$(PWD)/external/stlport/stlport
123
124
125# Flags passed to only C++ (and not C) files.
126LOCAL_CPPFLAGS_Debug := \
127	-fno-rtti \
128	-fno-threadsafe-statics \
129	-fvisibility-inlines-hidden \
130	-Wsign-compare \
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	--param=ssp-buffer-size=4 \
140	-Werror \
141	-fno-exceptions \
142	-fno-strict-aliasing \
143	-Wall \
144	-Wno-unused-parameter \
145	-Wno-missing-field-initializers \
146	-fvisibility=hidden \
147	-pipe \
148	-fPIC \
149	-Wno-unused-local-typedefs \
150	-msse2 \
151	-mfpmath=sse \
152	-mmmx \
153	-m32 \
154	-ffunction-sections \
155	-funwind-tables \
156	-g \
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	-fno-stack-protector \
166	-Os \
167	-fno-ident \
168	-fdata-sections \
169	-ffunction-sections \
170	-fomit-frame-pointer \
171	-funwind-tables
172
173MY_DEFS_Release := \
174	'-DV8_DEPRECATION_WARNINGS' \
175	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
176	'-D_FILE_OFFSET_BITS=64' \
177	'-DNO_TCMALLOC' \
178	'-DDISABLE_NACL' \
179	'-DCHROMIUM_BUILD' \
180	'-DUSE_LIBJPEG_TURBO=1' \
181	'-DENABLE_WEBRTC=1' \
182	'-DUSE_PROPRIETARY_CODECS' \
183	'-DENABLE_BROWSER_CDMS' \
184	'-DENABLE_CONFIGURATION_POLICY' \
185	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
186	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
187	'-DENABLE_EGLIMAGE=1' \
188	'-DCLD_VERSION=1' \
189	'-DENABLE_PRINTING=1' \
190	'-DENABLE_MANAGED_USERS=1' \
191	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
192	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
193	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
194	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
195	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
196	'-DVIDEO_HOLE=1' \
197	'-DMOJO_USE_SYSTEM_IMPL' \
198	'-DLIBPEERCONNECTION_LIB=1' \
199	'-DUSE_OPENSSL=1' \
200	'-DUSE_OPENSSL_CERTS=1' \
201	'-D__STDC_CONSTANT_MACROS' \
202	'-D__STDC_FORMAT_MACROS' \
203	'-DANDROID' \
204	'-D__GNU_SOURCE=1' \
205	'-DUSE_STLPORT=1' \
206	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
207	'-DCHROME_BUILD_ID=""' \
208	'-DNDEBUG' \
209	'-DNVALGRIND' \
210	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
211	'-D_FORTIFY_SOURCE=2'
212
213
214# Include paths placed before CFLAGS/CPPFLAGS
215LOCAL_C_INCLUDES_Release := \
216	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
217	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
218	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
219	$(gyp_shared_intermediate_dir) \
220	$(LOCAL_PATH)/third_party/khronos \
221	$(LOCAL_PATH)/gpu \
222	$(LOCAL_PATH) \
223	$(LOCAL_PATH)/skia/config \
224	$(LOCAL_PATH)/third_party/WebKit/Source \
225	$(LOCAL_PATH)/third_party/WebKit \
226	$(PWD)/frameworks/wilhelm/include \
227	$(PWD)/bionic \
228	$(PWD)/external/stlport/stlport
229
230
231# Flags passed to only C++ (and not C) files.
232LOCAL_CPPFLAGS_Release := \
233	-fno-rtti \
234	-fno-threadsafe-statics \
235	-fvisibility-inlines-hidden \
236	-Wsign-compare \
237	-Wno-non-virtual-dtor \
238	-Wno-sign-promo
239
240
241LOCAL_FDO_SUPPORT_Release := false
242
243LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
244LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
245LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
246LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
247LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
248### Rules for final target.
249
250LOCAL_LDFLAGS_Debug := \
251	-Wl,-z,now \
252	-Wl,-z,relro \
253	-Wl,--fatal-warnings \
254	-Wl,-z,noexecstack \
255	-fPIC \
256	-m32 \
257	-fuse-ld=gold \
258	-nostdlib \
259	-Wl,--no-undefined \
260	-Wl,--exclude-libs=ALL \
261	-Wl,--warn-shared-textrel \
262	-Wl,-O1 \
263	-Wl,--as-needed
264
265
266LOCAL_LDFLAGS_Release := \
267	-Wl,-z,now \
268	-Wl,-z,relro \
269	-Wl,--fatal-warnings \
270	-Wl,-z,noexecstack \
271	-fPIC \
272	-m32 \
273	-fuse-ld=gold \
274	-nostdlib \
275	-Wl,--no-undefined \
276	-Wl,--exclude-libs=ALL \
277	-Wl,-O1 \
278	-Wl,--as-needed \
279	-Wl,--gc-sections \
280	-Wl,--warn-shared-textrel
281
282
283LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
284
285LOCAL_STATIC_LIBRARIES :=
286
287# Enable grouping to fix circular references
288LOCAL_GROUP_STATIC_LIBRARIES := true
289
290LOCAL_SHARED_LIBRARIES := \
291	libstlport \
292	libdl
293
294# Add target alias to "gyp_all_modules" target.
295.PHONY: gyp_all_modules
296gyp_all_modules: components_cdm_renderer_gyp
297
298# Alias gyp target name.
299.PHONY: cdm_renderer
300cdm_renderer: components_cdm_renderer_gyp
301
302include $(BUILD_STATIC_LIBRARY)
303