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