1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libyuv_libyuv_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
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	third_party/libyuv/source/compare.cc \
27	third_party/libyuv/source/compare_common.cc \
28	third_party/libyuv/source/compare_posix.cc \
29	third_party/libyuv/source/compare_win.cc \
30	third_party/libyuv/source/convert.cc \
31	third_party/libyuv/source/convert_argb.cc \
32	third_party/libyuv/source/convert_from.cc \
33	third_party/libyuv/source/convert_from_argb.cc \
34	third_party/libyuv/source/convert_jpeg.cc \
35	third_party/libyuv/source/convert_to_argb.cc \
36	third_party/libyuv/source/convert_to_i420.cc \
37	third_party/libyuv/source/cpu_id.cc \
38	third_party/libyuv/source/format_conversion.cc \
39	third_party/libyuv/source/mjpeg_decoder.cc \
40	third_party/libyuv/source/mjpeg_validate.cc \
41	third_party/libyuv/source/planar_functions.cc \
42	third_party/libyuv/source/rotate.cc \
43	third_party/libyuv/source/rotate_argb.cc \
44	third_party/libyuv/source/rotate_mips.cc \
45	third_party/libyuv/source/row_any.cc \
46	third_party/libyuv/source/row_common.cc \
47	third_party/libyuv/source/row_mips.cc \
48	third_party/libyuv/source/row_posix.cc \
49	third_party/libyuv/source/row_win.cc \
50	third_party/libyuv/source/scale.cc \
51	third_party/libyuv/source/scale_argb.cc \
52	third_party/libyuv/source/scale_common.cc \
53	third_party/libyuv/source/scale_mips.cc \
54	third_party/libyuv/source/scale_posix.cc \
55	third_party/libyuv/source/scale_win.cc \
56	third_party/libyuv/source/video_common.cc
57
58
59# Flags passed to both C and C++ files.
60MY_CFLAGS_Debug := \
61	-fstack-protector \
62	--param=ssp-buffer-size=4 \
63	-fno-strict-aliasing \
64	-Wno-unused-parameter \
65	-Wno-missing-field-initializers \
66	-fvisibility=hidden \
67	-pipe \
68	-fPIC \
69	-Wno-unused-local-typedefs \
70	-Wno-format \
71	-fno-tree-sra \
72	-fno-caller-saves \
73	-Wno-psabi \
74	-fno-partial-inlining \
75	-fno-early-inlining \
76	-fno-tree-copy-prop \
77	-fno-tree-loop-optimize \
78	-fno-move-loop-invariants \
79	-ffunction-sections \
80	-funwind-tables \
81	-g \
82	-fstack-protector \
83	-fno-short-enums \
84	-finline-limit=64 \
85	-Wa,--noexecstack \
86	-U_FORTIFY_SOURCE \
87	-Wno-extra \
88	-Wno-ignored-qualifiers \
89	-Wno-type-limits \
90	-Wno-unused-but-set-variable \
91	-Wno-address \
92	-Wno-format-security \
93	-Wno-return-type \
94	-Wno-sequence-point \
95	-Os \
96	-g \
97	-gdwarf-4 \
98	-fdata-sections \
99	-ffunction-sections \
100	-fomit-frame-pointer \
101	-funwind-tables
102
103MY_DEFS_Debug := \
104	'-DV8_DEPRECATION_WARNINGS' \
105	'-D_FILE_OFFSET_BITS=64' \
106	'-DNO_TCMALLOC' \
107	'-DDISABLE_NACL' \
108	'-DCHROMIUM_BUILD' \
109	'-DUSE_LIBJPEG_TURBO=1' \
110	'-DENABLE_WEBRTC=1' \
111	'-DUSE_PROPRIETARY_CODECS' \
112	'-DENABLE_BROWSER_CDMS' \
113	'-DENABLE_CONFIGURATION_POLICY' \
114	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
115	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
116	'-DENABLE_EGLIMAGE=1' \
117	'-DCLD_VERSION=1' \
118	'-DENABLE_PRINTING=1' \
119	'-DENABLE_MANAGED_USERS=1' \
120	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
121	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
122	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
123	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
124	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
125	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
126	'-DVIDEO_HOLE=1' \
127	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
128	'-DHAVE_JPEG' \
129	'-DLIBYUV_NEON' \
130	'-DUSE_OPENSSL=1' \
131	'-DUSE_OPENSSL_CERTS=1' \
132	'-DANDROID' \
133	'-D__GNU_SOURCE=1' \
134	'-DUSE_STLPORT=1' \
135	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
136	'-DCHROME_BUILD_ID=""' \
137	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
138	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
139	'-D_DEBUG'
140
141
142# Include paths placed before CFLAGS/CPPFLAGS
143LOCAL_C_INCLUDES_Debug := \
144	$(gyp_shared_intermediate_dir) \
145	$(LOCAL_PATH)/third_party/libyuv/include \
146	$(LOCAL_PATH)/third_party/libyuv \
147	$(LOCAL_PATH)/third_party/libjpeg_turbo \
148	$(PWD)/frameworks/wilhelm/include \
149	$(PWD)/bionic \
150	$(PWD)/external/stlport/stlport
151
152
153# Flags passed to only C++ (and not C) files.
154LOCAL_CPPFLAGS_Debug := \
155	-fno-exceptions \
156	-fno-rtti \
157	-fno-threadsafe-statics \
158	-fvisibility-inlines-hidden \
159	-Wno-deprecated \
160	-Wno-abi \
161	-std=gnu++11 \
162	-Wno-narrowing \
163	-Wno-literal-suffix \
164	-Wno-non-virtual-dtor \
165	-Wno-sign-promo \
166	-Wno-non-virtual-dtor
167
168
169# Flags passed to both C and C++ files.
170MY_CFLAGS_Release := \
171	-fstack-protector \
172	--param=ssp-buffer-size=4 \
173	-fno-strict-aliasing \
174	-Wno-unused-parameter \
175	-Wno-missing-field-initializers \
176	-fvisibility=hidden \
177	-pipe \
178	-fPIC \
179	-Wno-unused-local-typedefs \
180	-Wno-format \
181	-fno-tree-sra \
182	-fno-caller-saves \
183	-Wno-psabi \
184	-fno-partial-inlining \
185	-fno-early-inlining \
186	-fno-tree-copy-prop \
187	-fno-tree-loop-optimize \
188	-fno-move-loop-invariants \
189	-ffunction-sections \
190	-funwind-tables \
191	-g \
192	-fstack-protector \
193	-fno-short-enums \
194	-finline-limit=64 \
195	-Wa,--noexecstack \
196	-U_FORTIFY_SOURCE \
197	-Wno-extra \
198	-Wno-ignored-qualifiers \
199	-Wno-type-limits \
200	-Wno-unused-but-set-variable \
201	-Wno-address \
202	-Wno-format-security \
203	-Wno-return-type \
204	-Wno-sequence-point \
205	-Os \
206	-fno-ident \
207	-fdata-sections \
208	-ffunction-sections \
209	-fomit-frame-pointer \
210	-funwind-tables
211
212MY_DEFS_Release := \
213	'-DV8_DEPRECATION_WARNINGS' \
214	'-D_FILE_OFFSET_BITS=64' \
215	'-DNO_TCMALLOC' \
216	'-DDISABLE_NACL' \
217	'-DCHROMIUM_BUILD' \
218	'-DUSE_LIBJPEG_TURBO=1' \
219	'-DENABLE_WEBRTC=1' \
220	'-DUSE_PROPRIETARY_CODECS' \
221	'-DENABLE_BROWSER_CDMS' \
222	'-DENABLE_CONFIGURATION_POLICY' \
223	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
224	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
225	'-DENABLE_EGLIMAGE=1' \
226	'-DCLD_VERSION=1' \
227	'-DENABLE_PRINTING=1' \
228	'-DENABLE_MANAGED_USERS=1' \
229	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
230	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
231	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
232	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
233	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
234	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
235	'-DVIDEO_HOLE=1' \
236	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
237	'-DHAVE_JPEG' \
238	'-DLIBYUV_NEON' \
239	'-DUSE_OPENSSL=1' \
240	'-DUSE_OPENSSL_CERTS=1' \
241	'-DANDROID' \
242	'-D__GNU_SOURCE=1' \
243	'-DUSE_STLPORT=1' \
244	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
245	'-DCHROME_BUILD_ID=""' \
246	'-DNDEBUG' \
247	'-DNVALGRIND' \
248	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
249
250
251# Include paths placed before CFLAGS/CPPFLAGS
252LOCAL_C_INCLUDES_Release := \
253	$(gyp_shared_intermediate_dir) \
254	$(LOCAL_PATH)/third_party/libyuv/include \
255	$(LOCAL_PATH)/third_party/libyuv \
256	$(LOCAL_PATH)/third_party/libjpeg_turbo \
257	$(PWD)/frameworks/wilhelm/include \
258	$(PWD)/bionic \
259	$(PWD)/external/stlport/stlport
260
261
262# Flags passed to only C++ (and not C) files.
263LOCAL_CPPFLAGS_Release := \
264	-fno-exceptions \
265	-fno-rtti \
266	-fno-threadsafe-statics \
267	-fvisibility-inlines-hidden \
268	-Wno-deprecated \
269	-Wno-abi \
270	-std=gnu++11 \
271	-Wno-narrowing \
272	-Wno-literal-suffix \
273	-Wno-non-virtual-dtor \
274	-Wno-sign-promo \
275	-Wno-non-virtual-dtor
276
277
278LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
279LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
280LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
281LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
282### Rules for final target.
283
284LOCAL_SHARED_LIBRARIES := \
285	libstlport \
286	libdl
287
288# Add target alias to "gyp_all_modules" target.
289.PHONY: gyp_all_modules
290gyp_all_modules: third_party_libyuv_libyuv_gyp
291
292# Alias gyp target name.
293.PHONY: libyuv
294libyuv: third_party_libyuv_libyuv_gyp
295
296include $(BUILD_STATIC_LIBRARY)
297