libwebp_dsp.target.linux-mips.mk revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
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_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/cpu.c \
26	third_party/libwebp/dsp/dec.c \
27	third_party/libwebp/dsp/dec_sse2.c \
28	third_party/libwebp/dsp/enc.c \
29	third_party/libwebp/dsp/enc_sse2.c \
30	third_party/libwebp/dsp/lossless.c \
31	third_party/libwebp/dsp/upsampling.c \
32	third_party/libwebp/dsp/upsampling_sse2.c \
33	third_party/libwebp/dsp/yuv.c
34
35
36# Flags passed to both C and C++ files.
37MY_CFLAGS_Debug := \
38	-fstack-protector \
39	--param=ssp-buffer-size=4 \
40	 \
41	-fno-exceptions \
42	-fno-strict-aliasing \
43	-Wno-unused-parameter \
44	-Wno-missing-field-initializers \
45	-fvisibility=hidden \
46	-pipe \
47	-fPIC \
48	-Wno-format \
49	-EL \
50	-mhard-float \
51	-ffunction-sections \
52	-funwind-tables \
53	-g \
54	-fstack-protector \
55	-fno-short-enums \
56	-finline-limit=64 \
57	-Wa,--noexecstack \
58	-U_FORTIFY_SOURCE \
59	-Wno-extra \
60	-Wno-ignored-qualifiers \
61	-Wno-type-limits \
62	-Wno-address \
63	-Wno-format-security \
64	-Wno-return-type \
65	-Wno-sequence-point \
66	-Os \
67	-g \
68	-fomit-frame-pointer \
69	-fdata-sections \
70	-ffunction-sections
71
72MY_DEFS_Debug := \
73	'-DANGLE_DX11' \
74	'-D_FILE_OFFSET_BITS=64' \
75	'-DNO_TCMALLOC' \
76	'-DDISABLE_NACL' \
77	'-DCHROMIUM_BUILD' \
78	'-DUSE_LIBJPEG_TURBO=1' \
79	'-DUSE_PROPRIETARY_CODECS' \
80	'-DENABLE_GPU=1' \
81	'-DUSE_OPENSSL=1' \
82	'-DENABLE_EGLIMAGE=1' \
83	'-DENABLE_LANGUAGE_DETECTION=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-uninitialized \
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	 \
120	-fno-exceptions \
121	-fno-strict-aliasing \
122	-Wno-unused-parameter \
123	-Wno-missing-field-initializers \
124	-fvisibility=hidden \
125	-pipe \
126	-fPIC \
127	-Wno-format \
128	-EL \
129	-mhard-float \
130	-ffunction-sections \
131	-funwind-tables \
132	-g \
133	-fstack-protector \
134	-fno-short-enums \
135	-finline-limit=64 \
136	-Wa,--noexecstack \
137	-U_FORTIFY_SOURCE \
138	-Wno-extra \
139	-Wno-ignored-qualifiers \
140	-Wno-type-limits \
141	-Wno-address \
142	-Wno-format-security \
143	-Wno-return-type \
144	-Wno-sequence-point \
145	-Os \
146	-fno-ident \
147	-fdata-sections \
148	-ffunction-sections \
149	-fomit-frame-pointer
150
151MY_DEFS_Release := \
152	'-DANGLE_DX11' \
153	'-D_FILE_OFFSET_BITS=64' \
154	'-DNO_TCMALLOC' \
155	'-DDISABLE_NACL' \
156	'-DCHROMIUM_BUILD' \
157	'-DUSE_LIBJPEG_TURBO=1' \
158	'-DUSE_PROPRIETARY_CODECS' \
159	'-DENABLE_GPU=1' \
160	'-DUSE_OPENSSL=1' \
161	'-DENABLE_EGLIMAGE=1' \
162	'-DENABLE_LANGUAGE_DETECTION=1' \
163	'-DANDROID' \
164	'-D__GNU_SOURCE=1' \
165	'-DUSE_STLPORT=1' \
166	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
167	'-DCHROME_BUILD_ID=""' \
168	'-DNDEBUG' \
169	'-DNVALGRIND' \
170	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
171
172
173# Include paths placed before CFLAGS/CPPFLAGS
174LOCAL_C_INCLUDES_Release := \
175	$(LOCAL_PATH)/third_party/libwebp \
176	$(PWD)/frameworks/wilhelm/include \
177	$(PWD)/bionic \
178	$(PWD)/external/stlport/stlport
179
180
181# Flags passed to only C++ (and not C) files.
182LOCAL_CPPFLAGS_Release := \
183	-fno-rtti \
184	-fno-threadsafe-statics \
185	-fvisibility-inlines-hidden \
186	-Wno-deprecated \
187	-Wno-uninitialized \
188	-Wno-error=c++0x-compat \
189	-Wno-non-virtual-dtor \
190	-Wno-sign-promo \
191	-Wno-non-virtual-dtor
192
193
194LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
195LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
196LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
197### Rules for final target.
198
199LOCAL_LDFLAGS_Debug := \
200	-Wl,-z,now \
201	-Wl,-z,relro \
202	-Wl,-z,noexecstack \
203	-fPIC \
204	-EL \
205	-Wl,--no-keep-memory \
206	-nostdlib \
207	-Wl,--no-undefined \
208	-Wl,--exclude-libs=ALL \
209	-Wl,--gc-sections \
210	-Wl,-O1 \
211	-Wl,--as-needed
212
213
214LOCAL_LDFLAGS_Release := \
215	-Wl,-z,now \
216	-Wl,-z,relro \
217	-Wl,-z,noexecstack \
218	-fPIC \
219	-EL \
220	-Wl,--no-keep-memory \
221	-nostdlib \
222	-Wl,--no-undefined \
223	-Wl,--exclude-libs=ALL \
224	-Wl,-O1 \
225	-Wl,--as-needed \
226	-Wl,--gc-sections
227
228
229LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
230
231LOCAL_STATIC_LIBRARIES := \
232	cpufeatures
233
234# Enable grouping to fix circular references
235LOCAL_GROUP_STATIC_LIBRARIES := true
236
237LOCAL_SHARED_LIBRARIES := \
238	libstlport \
239	libdl
240
241# Add target alias to "gyp_all_modules" target.
242.PHONY: gyp_all_modules
243gyp_all_modules: third_party_libwebp_libwebp_dsp_gyp
244
245# Alias gyp target name.
246.PHONY: libwebp_dsp
247libwebp_dsp: third_party_libwebp_libwebp_dsp_gyp
248
249include $(BUILD_STATIC_LIBRARY)
250