• 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 := third_party_webrtc_modules_webrtc_utility_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	third_party/webrtc/modules/utility/source/audio_frame_operations.cc \
28	third_party/webrtc/modules/utility/source/coder.cc \
29	third_party/webrtc/modules/utility/source/file_player_impl.cc \
30	third_party/webrtc/modules/utility/source/file_recorder_impl.cc \
31	third_party/webrtc/modules/utility/source/helpers_android.cc \
32	third_party/webrtc/modules/utility/source/process_thread_impl.cc \
33	third_party/webrtc/modules/utility/source/rtp_dump_impl.cc \
34	third_party/webrtc/modules/utility/source/frame_scaler.cc \
35	third_party/webrtc/modules/utility/source/video_coder.cc \
36	third_party/webrtc/modules/utility/source/video_frames_queue.cc
37
38
39# Flags passed to both C and C++ files.
40MY_CFLAGS_Debug := \
41	--param=ssp-buffer-size=4 \
42	-Werror \
43	-fno-exceptions \
44	-fno-strict-aliasing \
45	-Wall \
46	-Wno-unused-parameter \
47	-Wno-missing-field-initializers \
48	-fvisibility=hidden \
49	-pipe \
50	-fPIC \
51	-Wno-unused-local-typedefs \
52	-fno-builtin-cos \
53	-fno-builtin-sin \
54	-fno-builtin-cosf \
55	-fno-builtin-sinf \
56	-fno-builtin-cos \
57	-fno-builtin-sin \
58	-fno-builtin-cosf \
59	-fno-builtin-sinf \
60	-msse2 \
61	-mfpmath=sse \
62	-mmmx \
63	-m32 \
64	-ffunction-sections \
65	-funwind-tables \
66	-g \
67	-fno-short-enums \
68	-finline-limit=64 \
69	-Wa,--noexecstack \
70	-U_FORTIFY_SOURCE \
71	-Wno-extra \
72	-Wno-ignored-qualifiers \
73	-Wno-type-limits \
74	-Wno-unused-but-set-variable \
75	-fno-stack-protector \
76	-Os \
77	-g \
78	-fdata-sections \
79	-ffunction-sections \
80	-fomit-frame-pointer \
81	-funwind-tables
82
83MY_DEFS_Debug := \
84	'-DV8_DEPRECATION_WARNINGS' \
85	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
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="http://proxy-dev.googlezip.net:80/"' \
103	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
104	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
105	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
106	'-DVIDEO_HOLE=1' \
107	'-DWEBRTC_RESTRICT_LOGGING' \
108	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
109	'-DWEBRTC_CHROMIUM_BUILD' \
110	'-DLOGGING_INSIDE_WEBRTC' \
111	'-DWEBRTC_POSIX' \
112	'-DWEBRTC_LINUX' \
113	'-DWEBRTC_ANDROID' \
114	'-DWEBRTC_ANDROID_OPENSLES' \
115	'-DUSE_OPENSSL=1' \
116	'-DUSE_OPENSSL_CERTS=1' \
117	'-D__STDC_CONSTANT_MACROS' \
118	'-D__STDC_FORMAT_MACROS' \
119	'-DANDROID' \
120	'-D__GNU_SOURCE=1' \
121	'-DUSE_STLPORT=1' \
122	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
123	'-DCHROME_BUILD_ID=""' \
124	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
125	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
126	'-D_DEBUG'
127
128
129# Include paths placed before CFLAGS/CPPFLAGS
130LOCAL_C_INCLUDES_Debug := \
131	$(gyp_shared_intermediate_dir) \
132	$(LOCAL_PATH) \
133	$(LOCAL_PATH)/third_party/webrtc/overrides \
134	$(LOCAL_PATH)/third_party \
135	$(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/main/interface \
136	$(LOCAL_PATH)/third_party/webrtc/modules/interface \
137	$(LOCAL_PATH)/third_party/webrtc \
138	$(LOCAL_PATH)/third_party/webrtc/modules/media_file/interface \
139	$(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
140	$(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
141	$(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
142	$(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
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	-fno-builtin-cos \
174	-fno-builtin-sin \
175	-fno-builtin-cosf \
176	-fno-builtin-sinf \
177	-fno-builtin-cos \
178	-fno-builtin-sin \
179	-fno-builtin-cosf \
180	-fno-builtin-sinf \
181	-msse2 \
182	-mfpmath=sse \
183	-mmmx \
184	-m32 \
185	-ffunction-sections \
186	-funwind-tables \
187	-g \
188	-fno-short-enums \
189	-finline-limit=64 \
190	-Wa,--noexecstack \
191	-U_FORTIFY_SOURCE \
192	-Wno-extra \
193	-Wno-ignored-qualifiers \
194	-Wno-type-limits \
195	-Wno-unused-but-set-variable \
196	-fno-stack-protector \
197	-Os \
198	-fno-ident \
199	-fdata-sections \
200	-ffunction-sections \
201	-fomit-frame-pointer \
202	-funwind-tables
203
204MY_DEFS_Release := \
205	'-DV8_DEPRECATION_WARNINGS' \
206	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
207	'-D_FILE_OFFSET_BITS=64' \
208	'-DNO_TCMALLOC' \
209	'-DDISABLE_NACL' \
210	'-DCHROMIUM_BUILD' \
211	'-DUSE_LIBJPEG_TURBO=1' \
212	'-DENABLE_WEBRTC=1' \
213	'-DUSE_PROPRIETARY_CODECS' \
214	'-DENABLE_BROWSER_CDMS' \
215	'-DENABLE_CONFIGURATION_POLICY' \
216	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
217	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
218	'-DENABLE_EGLIMAGE=1' \
219	'-DCLD_VERSION=1' \
220	'-DENABLE_PRINTING=1' \
221	'-DENABLE_MANAGED_USERS=1' \
222	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
223	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
224	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
225	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
226	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
227	'-DVIDEO_HOLE=1' \
228	'-DWEBRTC_RESTRICT_LOGGING' \
229	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
230	'-DWEBRTC_CHROMIUM_BUILD' \
231	'-DLOGGING_INSIDE_WEBRTC' \
232	'-DWEBRTC_POSIX' \
233	'-DWEBRTC_LINUX' \
234	'-DWEBRTC_ANDROID' \
235	'-DWEBRTC_ANDROID_OPENSLES' \
236	'-DUSE_OPENSSL=1' \
237	'-DUSE_OPENSSL_CERTS=1' \
238	'-D__STDC_CONSTANT_MACROS' \
239	'-D__STDC_FORMAT_MACROS' \
240	'-DANDROID' \
241	'-D__GNU_SOURCE=1' \
242	'-DUSE_STLPORT=1' \
243	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
244	'-DCHROME_BUILD_ID=""' \
245	'-DNDEBUG' \
246	'-DNVALGRIND' \
247	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
248	'-D_FORTIFY_SOURCE=2'
249
250
251# Include paths placed before CFLAGS/CPPFLAGS
252LOCAL_C_INCLUDES_Release := \
253	$(gyp_shared_intermediate_dir) \
254	$(LOCAL_PATH) \
255	$(LOCAL_PATH)/third_party/webrtc/overrides \
256	$(LOCAL_PATH)/third_party \
257	$(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/main/interface \
258	$(LOCAL_PATH)/third_party/webrtc/modules/interface \
259	$(LOCAL_PATH)/third_party/webrtc \
260	$(LOCAL_PATH)/third_party/webrtc/modules/media_file/interface \
261	$(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
262	$(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
263	$(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
264	$(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
265	$(PWD)/frameworks/wilhelm/include \
266	$(PWD)/bionic \
267	$(PWD)/external/stlport/stlport
268
269
270# Flags passed to only C++ (and not C) files.
271LOCAL_CPPFLAGS_Release := \
272	-fno-rtti \
273	-fno-threadsafe-statics \
274	-fvisibility-inlines-hidden \
275	-Wsign-compare \
276	-Wno-non-virtual-dtor \
277	-Wno-sign-promo
278
279
280LOCAL_FDO_SUPPORT_Release := false
281
282LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
283LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
284LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
285LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
286LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
287### Rules for final target.
288
289LOCAL_LDFLAGS_Debug := \
290	-Wl,-z,now \
291	-Wl,-z,relro \
292	-Wl,--fatal-warnings \
293	-Wl,-z,noexecstack \
294	-fPIC \
295	-m32 \
296	-fuse-ld=gold \
297	-nostdlib \
298	-Wl,--no-undefined \
299	-Wl,--exclude-libs=ALL \
300	-Wl,--warn-shared-textrel \
301	-Wl,-O1 \
302	-Wl,--as-needed
303
304
305LOCAL_LDFLAGS_Release := \
306	-Wl,-z,now \
307	-Wl,-z,relro \
308	-Wl,--fatal-warnings \
309	-Wl,-z,noexecstack \
310	-fPIC \
311	-m32 \
312	-fuse-ld=gold \
313	-nostdlib \
314	-Wl,--no-undefined \
315	-Wl,--exclude-libs=ALL \
316	-Wl,-O1 \
317	-Wl,--as-needed \
318	-Wl,--gc-sections \
319	-Wl,--warn-shared-textrel
320
321
322LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
323
324LOCAL_STATIC_LIBRARIES :=
325
326# Enable grouping to fix circular references
327LOCAL_GROUP_STATIC_LIBRARIES := true
328
329LOCAL_SHARED_LIBRARIES := \
330	libstlport \
331	libdl
332
333# Add target alias to "gyp_all_modules" target.
334.PHONY: gyp_all_modules
335gyp_all_modules: third_party_webrtc_modules_webrtc_utility_gyp
336
337# Alias gyp target name.
338.PHONY: webrtc_utility
339webrtc_utility: third_party_webrtc_modules_webrtc_utility_gyp
340
341include $(BUILD_STATIC_LIBRARY)
342