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