• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \
15	$(call intermediates-dir-for,GYP,media_media_android_jni_headers_gyp)/media_android_jni_headers.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	media/base/android/audio_decoder_job.cc \
29	media/base/android/media_codec_bridge.cc \
30	media/base/android/media_decoder_job.cc \
31	media/base/android/media_drm_bridge.cc \
32	media/base/android/media_jni_registrar.cc \
33	media/base/android/media_player_android.cc \
34	media/base/android/media_player_bridge.cc \
35	media/base/android/media_player_listener.cc \
36	media/base/android/media_source_player.cc \
37	media/base/android/video_decoder_job.cc \
38	media/base/android/webaudio_media_codec_bridge.cc
39
40
41# Flags passed to both C and C++ files.
42MY_CFLAGS_Debug := \
43	--param=ssp-buffer-size=4 \
44	-Werror \
45	-fno-exceptions \
46	-fno-strict-aliasing \
47	-Wall \
48	-Wno-unused-parameter \
49	-Wno-missing-field-initializers \
50	-fvisibility=hidden \
51	-pipe \
52	-fPIC \
53	-Wno-unknown-pragmas \
54	-m32 \
55	-mmmx \
56	-march=pentium4 \
57	-msse2 \
58	-mfpmath=sse \
59	-fuse-ld=gold \
60	-ffunction-sections \
61	-funwind-tables \
62	-g \
63	-fno-short-enums \
64	-finline-limit=64 \
65	-Wa,--noexecstack \
66	-U_FORTIFY_SOURCE \
67	-Wno-extra \
68	-Wno-ignored-qualifiers \
69	-Wno-type-limits \
70	-fno-stack-protector \
71	-Os \
72	-g \
73	-fomit-frame-pointer \
74	-fdata-sections \
75	-ffunction-sections
76
77MY_DEFS_Debug := \
78	'-DV8_DEPRECATION_WARNINGS' \
79	'-D_FILE_OFFSET_BITS=64' \
80	'-DNO_TCMALLOC' \
81	'-DDISABLE_NACL' \
82	'-DCHROMIUM_BUILD' \
83	'-DUSE_LIBJPEG_TURBO=1' \
84	'-DUSE_PROPRIETARY_CODECS' \
85	'-DENABLE_CONFIGURATION_POLICY' \
86	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
87	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
88	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
89	'-DUSE_OPENSSL=1' \
90	'-DENABLE_EGLIMAGE=1' \
91	'-DCLD_VERSION=1' \
92	'-DENABLE_PRINTING=1' \
93	'-DENABLE_MANAGED_USERS=1' \
94	'-DMEDIA_IMPLEMENTATION' \
95	'-DMESA_EGL_NO_X11_HEADERS' \
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/skia_library/target \
113	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
114	$(gyp_shared_intermediate_dir)/media \
115	$(LOCAL_PATH)/third_party/khronos \
116	$(LOCAL_PATH)/gpu \
117	$(LOCAL_PATH) \
118	$(LOCAL_PATH)/skia/config \
119	$(gyp_shared_intermediate_dir)/ui/gl \
120	$(LOCAL_PATH)/third_party/mesa/src/include \
121	$(PWD)/frameworks/wilhelm/include \
122	$(PWD)/bionic \
123	$(PWD)/external/stlport/stlport
124
125
126# Flags passed to only C++ (and not C) files.
127LOCAL_CPPFLAGS_Debug := \
128	-fno-rtti \
129	-fno-threadsafe-statics \
130	-fvisibility-inlines-hidden \
131	-Wsign-compare \
132	-Wno-error=c++0x-compat \
133	-Wno-non-virtual-dtor \
134	-Wno-sign-promo
135
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-unknown-pragmas \
150	-m32 \
151	-mmmx \
152	-march=pentium4 \
153	-msse2 \
154	-mfpmath=sse \
155	-fuse-ld=gold \
156	-ffunction-sections \
157	-funwind-tables \
158	-g \
159	-fno-short-enums \
160	-finline-limit=64 \
161	-Wa,--noexecstack \
162	-U_FORTIFY_SOURCE \
163	-Wno-extra \
164	-Wno-ignored-qualifiers \
165	-Wno-type-limits \
166	-fno-stack-protector \
167	-Os \
168	-fno-ident \
169	-fdata-sections \
170	-ffunction-sections \
171	-fomit-frame-pointer \
172	-fno-unwind-tables \
173	-fno-asynchronous-unwind-tables
174
175MY_DEFS_Release := \
176	'-DV8_DEPRECATION_WARNINGS' \
177	'-D_FILE_OFFSET_BITS=64' \
178	'-DNO_TCMALLOC' \
179	'-DDISABLE_NACL' \
180	'-DCHROMIUM_BUILD' \
181	'-DUSE_LIBJPEG_TURBO=1' \
182	'-DUSE_PROPRIETARY_CODECS' \
183	'-DENABLE_CONFIGURATION_POLICY' \
184	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
185	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
186	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
187	'-DUSE_OPENSSL=1' \
188	'-DENABLE_EGLIMAGE=1' \
189	'-DCLD_VERSION=1' \
190	'-DENABLE_PRINTING=1' \
191	'-DENABLE_MANAGED_USERS=1' \
192	'-DMEDIA_IMPLEMENTATION' \
193	'-DMESA_EGL_NO_X11_HEADERS' \
194	'-D__STDC_CONSTANT_MACROS' \
195	'-D__STDC_FORMAT_MACROS' \
196	'-DANDROID' \
197	'-D__GNU_SOURCE=1' \
198	'-DUSE_STLPORT=1' \
199	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
200	'-DCHROME_BUILD_ID=""' \
201	'-DNDEBUG' \
202	'-DNVALGRIND' \
203	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
204	'-D_FORTIFY_SOURCE=2'
205
206
207# Include paths placed before CFLAGS/CPPFLAGS
208LOCAL_C_INCLUDES_Release := \
209	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
210	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
211	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
212	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
213	$(gyp_shared_intermediate_dir)/media \
214	$(LOCAL_PATH)/third_party/khronos \
215	$(LOCAL_PATH)/gpu \
216	$(LOCAL_PATH) \
217	$(LOCAL_PATH)/skia/config \
218	$(gyp_shared_intermediate_dir)/ui/gl \
219	$(LOCAL_PATH)/third_party/mesa/src/include \
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-error=c++0x-compat \
232	-Wno-non-virtual-dtor \
233	-Wno-sign-promo
234
235
236LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
237LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
238LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
239### Rules for final target.
240
241LOCAL_LDFLAGS_Debug := \
242	-Wl,-z,now \
243	-Wl,-z,relro \
244	-Wl,-z,noexecstack \
245	-fPIC \
246	-m32 \
247	-fuse-ld=gold \
248	-nostdlib \
249	-Wl,--no-undefined \
250	-Wl,--exclude-libs=ALL \
251	-Wl,--fatal-warnings \
252	-Wl,--gc-sections \
253	-Wl,--warn-shared-textrel \
254	-Wl,-O1 \
255	-Wl,--as-needed
256
257
258LOCAL_LDFLAGS_Release := \
259	-Wl,-z,now \
260	-Wl,-z,relro \
261	-Wl,-z,noexecstack \
262	-fPIC \
263	-m32 \
264	-fuse-ld=gold \
265	-nostdlib \
266	-Wl,--no-undefined \
267	-Wl,--exclude-libs=ALL \
268	-Wl,-O1 \
269	-Wl,--as-needed \
270	-Wl,--gc-sections \
271	-Wl,--fatal-warnings \
272	-Wl,--warn-shared-textrel
273
274
275LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
276
277LOCAL_STATIC_LIBRARIES := \
278	ui_gl_gl_gyp
279
280# Enable grouping to fix circular references
281LOCAL_GROUP_STATIC_LIBRARIES := true
282
283LOCAL_SHARED_LIBRARIES := \
284	libstlport \
285	libdl
286
287# Add target alias to "gyp_all_modules" target.
288.PHONY: gyp_all_modules
289gyp_all_modules: media_player_android_gyp
290
291# Alias gyp target name.
292.PHONY: player_android
293player_android: media_player_android_gyp
294
295include $(BUILD_STATIC_LIBRARY)
296