libwebp_utils.target.linux-x86.mk revision 4e180b6a0b4720a9b8e9e959a882386f690f08ff
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_utils_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/utils/bit_reader.c \
26	third_party/libwebp/utils/bit_writer.c \
27	third_party/libwebp/utils/color_cache.c \
28	third_party/libwebp/utils/filters.c \
29	third_party/libwebp/utils/huffman.c \
30	third_party/libwebp/utils/huffman_encode.c \
31	third_party/libwebp/utils/quant_levels.c \
32	third_party/libwebp/utils/quant_levels_dec.c \
33	third_party/libwebp/utils/rescaler.c \
34	third_party/libwebp/utils/thread.c \
35	third_party/libwebp/utils/utils.c
36
37
38# Flags passed to both C and C++ files.
39MY_CFLAGS_Debug := \
40	--param=ssp-buffer-size=4 \
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	-m32 \
50	-mmmx \
51	-march=pentium4 \
52	-msse2 \
53	-mfpmath=sse \
54	-fuse-ld=gold \
55	-ffunction-sections \
56	-funwind-tables \
57	-g \
58	-fno-short-enums \
59	-finline-limit=64 \
60	-Wa,--noexecstack \
61	-U_FORTIFY_SOURCE \
62	-Wno-extra \
63	-Wno-ignored-qualifiers \
64	-Wno-type-limits \
65	-Wno-address \
66	-Wno-format-security \
67	-Wno-return-type \
68	-Wno-sequence-point \
69	-fno-stack-protector \
70	-Os \
71	-g \
72	-fomit-frame-pointer \
73	-fdata-sections \
74	-ffunction-sections
75
76MY_DEFS_Debug := \
77	'-DANGLE_DX11' \
78	'-D_FILE_OFFSET_BITS=64' \
79	'-DNO_TCMALLOC' \
80	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
81	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
82	'-DDISABLE_NACL' \
83	'-DCHROMIUM_BUILD' \
84	'-DUSE_LIBJPEG_TURBO=1' \
85	'-DUSE_PROPRIETARY_CODECS' \
86	'-DENABLE_CONFIGURATION_POLICY' \
87	'-DUSE_OPENSSL=1' \
88	'-DENABLE_EGLIMAGE=1' \
89	'-DCLD_VERSION=1' \
90	'-DANDROID' \
91	'-D__GNU_SOURCE=1' \
92	'-DUSE_STLPORT=1' \
93	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
94	'-DCHROME_BUILD_ID=""' \
95	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
96	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
97	'-D_DEBUG'
98
99
100# Include paths placed before CFLAGS/CPPFLAGS
101LOCAL_C_INCLUDES_Debug := \
102	$(LOCAL_PATH)/third_party/libwebp \
103	$(PWD)/frameworks/wilhelm/include \
104	$(PWD)/bionic \
105	$(PWD)/external/stlport/stlport
106
107
108# Flags passed to only C++ (and not C) files.
109LOCAL_CPPFLAGS_Debug := \
110	-fno-rtti \
111	-fno-threadsafe-statics \
112	-fvisibility-inlines-hidden \
113	-Wno-deprecated \
114	-Wno-error=c++0x-compat \
115	-Wno-non-virtual-dtor \
116	-Wno-sign-promo \
117	-Wno-non-virtual-dtor
118
119
120# Flags passed to both C and C++ files.
121MY_CFLAGS_Release := \
122	--param=ssp-buffer-size=4 \
123	-fno-exceptions \
124	-fno-strict-aliasing \
125	-Wno-unused-parameter \
126	-Wno-missing-field-initializers \
127	-fvisibility=hidden \
128	-pipe \
129	-fPIC \
130	-Wno-format \
131	-m32 \
132	-mmmx \
133	-march=pentium4 \
134	-msse2 \
135	-mfpmath=sse \
136	-fuse-ld=gold \
137	-ffunction-sections \
138	-funwind-tables \
139	-g \
140	-fno-short-enums \
141	-finline-limit=64 \
142	-Wa,--noexecstack \
143	-U_FORTIFY_SOURCE \
144	-Wno-extra \
145	-Wno-ignored-qualifiers \
146	-Wno-type-limits \
147	-Wno-address \
148	-Wno-format-security \
149	-Wno-return-type \
150	-Wno-sequence-point \
151	-fno-stack-protector \
152	-Os \
153	-fno-ident \
154	-fdata-sections \
155	-ffunction-sections \
156	-fomit-frame-pointer \
157	-fno-unwind-tables \
158	-fno-asynchronous-unwind-tables
159
160MY_DEFS_Release := \
161	'-DANGLE_DX11' \
162	'-D_FILE_OFFSET_BITS=64' \
163	'-DNO_TCMALLOC' \
164	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
165	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
166	'-DDISABLE_NACL' \
167	'-DCHROMIUM_BUILD' \
168	'-DUSE_LIBJPEG_TURBO=1' \
169	'-DUSE_PROPRIETARY_CODECS' \
170	'-DENABLE_CONFIGURATION_POLICY' \
171	'-DUSE_OPENSSL=1' \
172	'-DENABLE_EGLIMAGE=1' \
173	'-DCLD_VERSION=1' \
174	'-DANDROID' \
175	'-D__GNU_SOURCE=1' \
176	'-DUSE_STLPORT=1' \
177	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
178	'-DCHROME_BUILD_ID=""' \
179	'-DNDEBUG' \
180	'-DNVALGRIND' \
181	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
182
183
184# Include paths placed before CFLAGS/CPPFLAGS
185LOCAL_C_INCLUDES_Release := \
186	$(LOCAL_PATH)/third_party/libwebp \
187	$(PWD)/frameworks/wilhelm/include \
188	$(PWD)/bionic \
189	$(PWD)/external/stlport/stlport
190
191
192# Flags passed to only C++ (and not C) files.
193LOCAL_CPPFLAGS_Release := \
194	-fno-rtti \
195	-fno-threadsafe-statics \
196	-fvisibility-inlines-hidden \
197	-Wno-deprecated \
198	-Wno-error=c++0x-compat \
199	-Wno-non-virtual-dtor \
200	-Wno-sign-promo \
201	-Wno-non-virtual-dtor
202
203
204LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
205LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
206LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
207### Rules for final target.
208
209LOCAL_LDFLAGS_Debug := \
210	-Wl,-z,now \
211	-Wl,-z,relro \
212	-Wl,-z,noexecstack \
213	-fPIC \
214	-m32 \
215	-fuse-ld=gold \
216	-nostdlib \
217	-Wl,--no-undefined \
218	-Wl,--exclude-libs=ALL \
219	-Wl,--fatal-warnings \
220	-Wl,--gc-sections \
221	-Wl,--warn-shared-textrel \
222	-Wl,-O1 \
223	-Wl,--as-needed
224
225
226LOCAL_LDFLAGS_Release := \
227	-Wl,-z,now \
228	-Wl,-z,relro \
229	-Wl,-z,noexecstack \
230	-fPIC \
231	-m32 \
232	-fuse-ld=gold \
233	-nostdlib \
234	-Wl,--no-undefined \
235	-Wl,--exclude-libs=ALL \
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_utils_gyp
257
258# Alias gyp target name.
259.PHONY: libwebp_utils
260libwebp_utils: third_party_libwebp_libwebp_utils_gyp
261
262include $(BUILD_STATIC_LIBRARY)
263