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