1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := media_player_android_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,GYP,third_party_widevine_cdm_widevine_cdm_version_h_gyp,,,$(GYP_VAR_PREFIX))/widevine_cdm_version_h.stamp \
15	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a \
16	$(call intermediates-dir-for,GYP,media_media_android_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/media_android_jni_headers.stamp
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	media/base/android/audio_decoder_job.cc \
30	media/base/android/browser_cdm_factory_android.cc \
31	media/base/android/media_codec_bridge.cc \
32	media/base/android/media_decoder_job.cc \
33	media/base/android/media_drm_bridge.cc \
34	media/base/android/media_jni_registrar.cc \
35	media/base/android/media_player_android.cc \
36	media/base/android/media_player_bridge.cc \
37	media/base/android/media_player_listener.cc \
38	media/base/android/media_source_player.cc \
39	media/base/android/video_decoder_job.cc \
40	media/base/android/webaudio_media_codec_bridge.cc
41
42
43# Flags passed to both C and C++ files.
44MY_CFLAGS_Debug := \
45	-fstack-protector \
46	--param=ssp-buffer-size=4 \
47	-Werror \
48	-fno-strict-aliasing \
49	-Wall \
50	-Wno-unused-parameter \
51	-Wno-missing-field-initializers \
52	-fvisibility=hidden \
53	-pipe \
54	-fPIC \
55	-Wno-unused-local-typedefs \
56	-fno-tree-sra \
57	-fno-caller-saves \
58	-Wno-psabi \
59	-fno-partial-inlining \
60	-fno-early-inlining \
61	-fno-tree-copy-prop \
62	-fno-tree-loop-optimize \
63	-fno-move-loop-invariants \
64	-ffunction-sections \
65	-funwind-tables \
66	-g \
67	-fstack-protector \
68	-fno-short-enums \
69	-finline-limit=64 \
70	-Wa,--noexecstack \
71	-U_FORTIFY_SOURCE \
72	-Wno-extra \
73	-Wno-ignored-qualifiers \
74	-Wno-type-limits \
75	-Wno-unused-but-set-variable \
76	-Os \
77	-g \
78	-gdwarf-4 \
79	-fdata-sections \
80	-ffunction-sections \
81	-fomit-frame-pointer \
82	-funwind-tables
83
84MY_DEFS_Debug := \
85	'-DV8_DEPRECATION_WARNINGS' \
86	'-D_FILE_OFFSET_BITS=64' \
87	'-DNO_TCMALLOC' \
88	'-DDISABLE_NACL' \
89	'-DCHROMIUM_BUILD' \
90	'-DUSE_LIBJPEG_TURBO=1' \
91	'-DENABLE_WEBRTC=1' \
92	'-DUSE_PROPRIETARY_CODECS' \
93	'-DENABLE_BROWSER_CDMS' \
94	'-DENABLE_CONFIGURATION_POLICY' \
95	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
96	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
97	'-DENABLE_EGLIMAGE=1' \
98	'-DCLD_VERSION=1' \
99	'-DENABLE_PRINTING=1' \
100	'-DENABLE_MANAGED_USERS=1' \
101	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
102	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
103	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
104	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
105	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
106	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
107	'-DVIDEO_HOLE=1' \
108	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
109	'-DMEDIA_IMPLEMENTATION' \
110	'-DMESA_EGL_NO_X11_HEADERS' \
111	'-DUSE_OPENSSL=1' \
112	'-DUSE_OPENSSL_CERTS=1' \
113	'-D__STDC_CONSTANT_MACROS' \
114	'-D__STDC_FORMAT_MACROS' \
115	'-DANDROID' \
116	'-D__GNU_SOURCE=1' \
117	'-DUSE_STLPORT=1' \
118	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
119	'-DCHROME_BUILD_ID=""' \
120	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
121	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
122	'-D_DEBUG'
123
124
125# Include paths placed before CFLAGS/CPPFLAGS
126LOCAL_C_INCLUDES_Debug := \
127	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
128	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
129	$(gyp_shared_intermediate_dir) \
130	$(LOCAL_PATH)/third_party/khronos \
131	$(LOCAL_PATH)/gpu \
132	$(LOCAL_PATH) \
133	$(LOCAL_PATH)/skia/config \
134	$(gyp_shared_intermediate_dir)/ui/gl \
135	$(LOCAL_PATH)/third_party/mesa/src/include \
136	$(gyp_shared_intermediate_dir)/media \
137	$(PWD)/frameworks/wilhelm/include \
138	$(PWD)/bionic \
139	$(PWD)/external/stlport/stlport
140
141
142# Flags passed to only C++ (and not C) files.
143LOCAL_CPPFLAGS_Debug := \
144	-fno-exceptions \
145	-fno-rtti \
146	-fno-threadsafe-statics \
147	-fvisibility-inlines-hidden \
148	-Wsign-compare \
149	-Wno-abi \
150	-std=gnu++11 \
151	-Wno-narrowing \
152	-Wno-literal-suffix \
153	-Wno-non-virtual-dtor \
154	-Wno-sign-promo
155
156
157# Flags passed to both C and C++ files.
158MY_CFLAGS_Release := \
159	-fstack-protector \
160	--param=ssp-buffer-size=4 \
161	-Werror \
162	-fno-strict-aliasing \
163	-Wall \
164	-Wno-unused-parameter \
165	-Wno-missing-field-initializers \
166	-fvisibility=hidden \
167	-pipe \
168	-fPIC \
169	-Wno-unused-local-typedefs \
170	-fno-tree-sra \
171	-fno-caller-saves \
172	-Wno-psabi \
173	-fno-partial-inlining \
174	-fno-early-inlining \
175	-fno-tree-copy-prop \
176	-fno-tree-loop-optimize \
177	-fno-move-loop-invariants \
178	-ffunction-sections \
179	-funwind-tables \
180	-g \
181	-fstack-protector \
182	-fno-short-enums \
183	-finline-limit=64 \
184	-Wa,--noexecstack \
185	-U_FORTIFY_SOURCE \
186	-Wno-extra \
187	-Wno-ignored-qualifiers \
188	-Wno-type-limits \
189	-Wno-unused-but-set-variable \
190	-Os \
191	-fno-ident \
192	-fdata-sections \
193	-ffunction-sections \
194	-fomit-frame-pointer \
195	-funwind-tables
196
197MY_DEFS_Release := \
198	'-DV8_DEPRECATION_WARNINGS' \
199	'-D_FILE_OFFSET_BITS=64' \
200	'-DNO_TCMALLOC' \
201	'-DDISABLE_NACL' \
202	'-DCHROMIUM_BUILD' \
203	'-DUSE_LIBJPEG_TURBO=1' \
204	'-DENABLE_WEBRTC=1' \
205	'-DUSE_PROPRIETARY_CODECS' \
206	'-DENABLE_BROWSER_CDMS' \
207	'-DENABLE_CONFIGURATION_POLICY' \
208	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
209	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
210	'-DENABLE_EGLIMAGE=1' \
211	'-DCLD_VERSION=1' \
212	'-DENABLE_PRINTING=1' \
213	'-DENABLE_MANAGED_USERS=1' \
214	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
215	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
216	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
217	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
218	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
219	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
220	'-DVIDEO_HOLE=1' \
221	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
222	'-DMEDIA_IMPLEMENTATION' \
223	'-DMESA_EGL_NO_X11_HEADERS' \
224	'-DUSE_OPENSSL=1' \
225	'-DUSE_OPENSSL_CERTS=1' \
226	'-D__STDC_CONSTANT_MACROS' \
227	'-D__STDC_FORMAT_MACROS' \
228	'-DANDROID' \
229	'-D__GNU_SOURCE=1' \
230	'-DUSE_STLPORT=1' \
231	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
232	'-DCHROME_BUILD_ID=""' \
233	'-DNDEBUG' \
234	'-DNVALGRIND' \
235	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
236	'-D_FORTIFY_SOURCE=2'
237
238
239# Include paths placed before CFLAGS/CPPFLAGS
240LOCAL_C_INCLUDES_Release := \
241	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
242	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
243	$(gyp_shared_intermediate_dir) \
244	$(LOCAL_PATH)/third_party/khronos \
245	$(LOCAL_PATH)/gpu \
246	$(LOCAL_PATH) \
247	$(LOCAL_PATH)/skia/config \
248	$(gyp_shared_intermediate_dir)/ui/gl \
249	$(LOCAL_PATH)/third_party/mesa/src/include \
250	$(gyp_shared_intermediate_dir)/media \
251	$(PWD)/frameworks/wilhelm/include \
252	$(PWD)/bionic \
253	$(PWD)/external/stlport/stlport
254
255
256# Flags passed to only C++ (and not C) files.
257LOCAL_CPPFLAGS_Release := \
258	-fno-exceptions \
259	-fno-rtti \
260	-fno-threadsafe-statics \
261	-fvisibility-inlines-hidden \
262	-Wsign-compare \
263	-Wno-abi \
264	-std=gnu++11 \
265	-Wno-narrowing \
266	-Wno-literal-suffix \
267	-Wno-non-virtual-dtor \
268	-Wno-sign-promo
269
270
271LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
272LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
273LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
274LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
275### Rules for final target.
276
277LOCAL_SHARED_LIBRARIES := \
278	libstlport \
279	libdl
280
281# Add target alias to "gyp_all_modules" target.
282.PHONY: gyp_all_modules
283gyp_all_modules: media_player_android_gyp
284
285# Alias gyp target name.
286.PHONY: player_android
287player_android: media_player_android_gyp
288
289include $(BUILD_STATIC_LIBRARY)
290