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