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