1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libwebp_libwebp_dsp_neon_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
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_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/libwebp/dsp/dec_neon.c \
26	third_party/libwebp/dsp/enc_neon.c \
27	third_party/libwebp/dsp/upsampling_neon.c
28
29
30# Flags passed to both C and C++ files.
31MY_CFLAGS_Debug := \
32	-fstack-protector \
33	--param=ssp-buffer-size=4 \
34	-fno-exceptions \
35	-fno-strict-aliasing \
36	-Wno-unused-parameter \
37	-Wno-missing-field-initializers \
38	-fvisibility=hidden \
39	-pipe \
40	-fPIC \
41	-mfpu=neon \
42	-Wno-format \
43	-fno-tree-sra \
44	-fuse-ld=gold \
45	-Wno-psabi \
46	-ffunction-sections \
47	-funwind-tables \
48	-g \
49	-fstack-protector \
50	-fno-short-enums \
51	-finline-limit=64 \
52	-Wa,--noexecstack \
53	-U_FORTIFY_SOURCE \
54	-Wno-extra \
55	-Wno-ignored-qualifiers \
56	-Wno-type-limits \
57	-Wno-address \
58	-Wno-format-security \
59	-Wno-return-type \
60	-Wno-sequence-point \
61	-Os \
62	-g \
63	-fomit-frame-pointer \
64	-fdata-sections \
65	-ffunction-sections
66
67MY_DEFS_Debug := \
68	'-DANGLE_DX11' \
69	'-D_FILE_OFFSET_BITS=64' \
70	'-DNO_TCMALLOC' \
71	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
72	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
73	'-DDISABLE_NACL' \
74	'-DCHROMIUM_BUILD' \
75	'-DUSE_LIBJPEG_TURBO=1' \
76	'-DUSE_PROPRIETARY_CODECS' \
77	'-DENABLE_CONFIGURATION_POLICY' \
78	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
79	'-DTRACING_IS_OFFICIAL_BUILD=1' \
80	'-DENABLE_GPU=1' \
81	'-DUSE_OPENSSL=1' \
82	'-DENABLE_EGLIMAGE=1' \
83	'-DENABLE_PRINTING=1' \
84	'-DANDROID' \
85	'-D__GNU_SOURCE=1' \
86	'-DUSE_STLPORT=1' \
87	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
88	'-DCHROME_BUILD_ID=""' \
89	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
90	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
91	'-D_DEBUG'
92
93
94# Include paths placed before CFLAGS/CPPFLAGS
95LOCAL_C_INCLUDES_Debug := \
96	$(LOCAL_PATH)/third_party/libwebp \
97	$(PWD)/frameworks/wilhelm/include \
98	$(PWD)/bionic \
99	$(PWD)/external/stlport/stlport
100
101
102# Flags passed to only C++ (and not C) files.
103LOCAL_CPPFLAGS_Debug := \
104	-fno-rtti \
105	-fno-threadsafe-statics \
106	-fvisibility-inlines-hidden \
107	-Wno-deprecated \
108	-Wno-abi \
109	-Wno-error=c++0x-compat \
110	-Wno-non-virtual-dtor \
111	-Wno-sign-promo \
112	-Wno-non-virtual-dtor
113
114
115# Flags passed to both C and C++ files.
116MY_CFLAGS_Release := \
117	-fstack-protector \
118	--param=ssp-buffer-size=4 \
119	-fno-exceptions \
120	-fno-strict-aliasing \
121	-Wno-unused-parameter \
122	-Wno-missing-field-initializers \
123	-fvisibility=hidden \
124	-pipe \
125	-fPIC \
126	-mfpu=neon \
127	-Wno-format \
128	-fno-tree-sra \
129	-fuse-ld=gold \
130	-Wno-psabi \
131	-ffunction-sections \
132	-funwind-tables \
133	-g \
134	-fstack-protector \
135	-fno-short-enums \
136	-finline-limit=64 \
137	-Wa,--noexecstack \
138	-U_FORTIFY_SOURCE \
139	-Wno-extra \
140	-Wno-ignored-qualifiers \
141	-Wno-type-limits \
142	-Wno-address \
143	-Wno-format-security \
144	-Wno-return-type \
145	-Wno-sequence-point \
146	-Os \
147	-fno-ident \
148	-fdata-sections \
149	-ffunction-sections \
150	-fomit-frame-pointer
151
152MY_DEFS_Release := \
153	'-DANGLE_DX11' \
154	'-D_FILE_OFFSET_BITS=64' \
155	'-DNO_TCMALLOC' \
156	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
157	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
158	'-DDISABLE_NACL' \
159	'-DCHROMIUM_BUILD' \
160	'-DUSE_LIBJPEG_TURBO=1' \
161	'-DUSE_PROPRIETARY_CODECS' \
162	'-DENABLE_CONFIGURATION_POLICY' \
163	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
164	'-DTRACING_IS_OFFICIAL_BUILD=1' \
165	'-DENABLE_GPU=1' \
166	'-DUSE_OPENSSL=1' \
167	'-DENABLE_EGLIMAGE=1' \
168	'-DENABLE_PRINTING=1' \
169	'-DANDROID' \
170	'-D__GNU_SOURCE=1' \
171	'-DUSE_STLPORT=1' \
172	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
173	'-DCHROME_BUILD_ID=""' \
174	'-DNDEBUG' \
175	'-DNVALGRIND' \
176	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
177
178
179# Include paths placed before CFLAGS/CPPFLAGS
180LOCAL_C_INCLUDES_Release := \
181	$(LOCAL_PATH)/third_party/libwebp \
182	$(PWD)/frameworks/wilhelm/include \
183	$(PWD)/bionic \
184	$(PWD)/external/stlport/stlport
185
186
187# Flags passed to only C++ (and not C) files.
188LOCAL_CPPFLAGS_Release := \
189	-fno-rtti \
190	-fno-threadsafe-statics \
191	-fvisibility-inlines-hidden \
192	-Wno-deprecated \
193	-Wno-abi \
194	-Wno-error=c++0x-compat \
195	-Wno-non-virtual-dtor \
196	-Wno-sign-promo \
197	-Wno-non-virtual-dtor
198
199
200LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
201LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
202LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
203### Rules for final target.
204
205LOCAL_LDFLAGS_Debug := \
206	-Wl,-z,now \
207	-Wl,-z,relro \
208	-Wl,-z,noexecstack \
209	-fPIC \
210	-Wl,-z,relro \
211	-Wl,-z,now \
212	-fuse-ld=gold \
213	-nostdlib \
214	-Wl,--no-undefined \
215	-Wl,--exclude-libs=ALL \
216	-Wl,--icf=safe \
217	-Wl,--fatal-warnings \
218	-Wl,--gc-sections \
219	-Wl,--warn-shared-textrel \
220	-Wl,-O1 \
221	-Wl,--as-needed
222
223
224LOCAL_LDFLAGS_Release := \
225	-Wl,-z,now \
226	-Wl,-z,relro \
227	-Wl,-z,noexecstack \
228	-fPIC \
229	-Wl,-z,relro \
230	-Wl,-z,now \
231	-fuse-ld=gold \
232	-nostdlib \
233	-Wl,--no-undefined \
234	-Wl,--exclude-libs=ALL \
235	-Wl,--icf=safe \
236	-Wl,-O1 \
237	-Wl,--as-needed \
238	-Wl,--gc-sections \
239	-Wl,--fatal-warnings \
240	-Wl,--warn-shared-textrel
241
242
243LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
244
245LOCAL_STATIC_LIBRARIES :=
246
247# Enable grouping to fix circular references
248LOCAL_GROUP_STATIC_LIBRARIES := true
249
250LOCAL_SHARED_LIBRARIES := \
251	libstlport \
252	libdl
253
254# Add target alias to "gyp_all_modules" target.
255.PHONY: gyp_all_modules
256gyp_all_modules: third_party_libwebp_libwebp_dsp_neon_gyp
257
258# Alias gyp target name.
259.PHONY: libwebp_dsp_neon
260libwebp_dsp_neon: third_party_libwebp_libwebp_dsp_neon_gyp
261
262include $(BUILD_STATIC_LIBRARY)
263