libwebp_enc.target.darwin-mips.mk revision effb81e5f8246d0db0270817048dc992db66e9fb
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	-fstack-protector \
47	--param=ssp-buffer-size=4 \
48	 \
49	-fno-exceptions \
50	-fno-strict-aliasing \
51	-Wno-unused-parameter \
52	-Wno-missing-field-initializers \
53	-fvisibility=hidden \
54	-pipe \
55	-fPIC \
56	-Wno-format \
57	-EL \
58	-mhard-float \
59	-ffunction-sections \
60	-funwind-tables \
61	-g \
62	-fstack-protector \
63	-fno-short-enums \
64	-finline-limit=64 \
65	-Wa,--noexecstack \
66	-U_FORTIFY_SOURCE \
67	-Wno-extra \
68	-Wno-ignored-qualifiers \
69	-Wno-type-limits \
70	-Wno-unused-but-set-variable \
71	-Wno-address \
72	-Wno-format-security \
73	-Wno-return-type \
74	-Wno-sequence-point \
75	-Os \
76	-g \
77	-fomit-frame-pointer \
78	-fdata-sections \
79	-ffunction-sections \
80	-funwind-tables
81
82MY_DEFS_Debug := \
83	'-DV8_DEPRECATION_WARNINGS' \
84	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
85	'-D_FILE_OFFSET_BITS=64' \
86	'-DNO_TCMALLOC' \
87	'-DDISABLE_NACL' \
88	'-DCHROMIUM_BUILD' \
89	'-DUSE_LIBJPEG_TURBO=1' \
90	'-DUSE_PROPRIETARY_CODECS' \
91	'-DENABLE_CONFIGURATION_POLICY' \
92	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
93	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
94	'-DENABLE_EGLIMAGE=1' \
95	'-DCLD_VERSION=1' \
96	'-DENABLE_PRINTING=1' \
97	'-DENABLE_MANAGED_USERS=1' \
98	'-DUSE_OPENSSL=1' \
99	'-DUSE_OPENSSL_CERTS=1' \
100	'-DANDROID' \
101	'-D__GNU_SOURCE=1' \
102	'-DUSE_STLPORT=1' \
103	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
104	'-DCHROME_BUILD_ID=""' \
105	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
106	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
107	'-D_DEBUG'
108
109
110# Include paths placed before CFLAGS/CPPFLAGS
111LOCAL_C_INCLUDES_Debug := \
112	$(LOCAL_PATH)/third_party/libwebp \
113	$(PWD)/frameworks/wilhelm/include \
114	$(PWD)/bionic \
115	$(PWD)/external/stlport/stlport
116
117
118# Flags passed to only C++ (and not C) files.
119LOCAL_CPPFLAGS_Debug := \
120	-fno-rtti \
121	-fno-threadsafe-statics \
122	-fvisibility-inlines-hidden \
123	-Wno-deprecated \
124	-Wno-uninitialized \
125	-Wno-non-virtual-dtor \
126	-Wno-sign-promo \
127	-Wno-non-virtual-dtor
128
129
130# Flags passed to both C and C++ files.
131MY_CFLAGS_Release := \
132	-fstack-protector \
133	--param=ssp-buffer-size=4 \
134	 \
135	-fno-exceptions \
136	-fno-strict-aliasing \
137	-Wno-unused-parameter \
138	-Wno-missing-field-initializers \
139	-fvisibility=hidden \
140	-pipe \
141	-fPIC \
142	-Wno-format \
143	-EL \
144	-mhard-float \
145	-ffunction-sections \
146	-funwind-tables \
147	-g \
148	-fstack-protector \
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-unused-but-set-variable \
157	-Wno-address \
158	-Wno-format-security \
159	-Wno-return-type \
160	-Wno-sequence-point \
161	-Os \
162	-fno-ident \
163	-fdata-sections \
164	-ffunction-sections \
165	-fomit-frame-pointer \
166	-funwind-tables
167
168MY_DEFS_Release := \
169	'-DV8_DEPRECATION_WARNINGS' \
170	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
171	'-D_FILE_OFFSET_BITS=64' \
172	'-DNO_TCMALLOC' \
173	'-DDISABLE_NACL' \
174	'-DCHROMIUM_BUILD' \
175	'-DUSE_LIBJPEG_TURBO=1' \
176	'-DUSE_PROPRIETARY_CODECS' \
177	'-DENABLE_CONFIGURATION_POLICY' \
178	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
179	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
180	'-DENABLE_EGLIMAGE=1' \
181	'-DCLD_VERSION=1' \
182	'-DENABLE_PRINTING=1' \
183	'-DENABLE_MANAGED_USERS=1' \
184	'-DUSE_OPENSSL=1' \
185	'-DUSE_OPENSSL_CERTS=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-uninitialized \
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))
219LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
220### Rules for final target.
221
222LOCAL_LDFLAGS_Debug := \
223	-Wl,--fatal-warnings \
224	-Wl,-z,now \
225	-Wl,-z,relro \
226	-Wl,-z,noexecstack \
227	-fPIC \
228	-EL \
229	-Wl,--no-keep-memory \
230	-nostdlib \
231	-Wl,--no-undefined \
232	-Wl,--exclude-libs=ALL \
233	-Wl,--gc-sections \
234	-Wl,--warn-shared-textrel \
235	-Wl,-O1 \
236	-Wl,--as-needed
237
238
239LOCAL_LDFLAGS_Release := \
240	-Wl,--fatal-warnings \
241	-Wl,-z,now \
242	-Wl,-z,relro \
243	-Wl,-z,noexecstack \
244	-fPIC \
245	-EL \
246	-Wl,--no-keep-memory \
247	-nostdlib \
248	-Wl,--no-undefined \
249	-Wl,--exclude-libs=ALL \
250	-Wl,-O1 \
251	-Wl,--as-needed \
252	-Wl,--gc-sections \
253	-Wl,--warn-shared-textrel
254
255
256LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
257
258LOCAL_STATIC_LIBRARIES :=
259
260# Enable grouping to fix circular references
261LOCAL_GROUP_STATIC_LIBRARIES := true
262
263LOCAL_SHARED_LIBRARIES := \
264	libstlport \
265	libdl
266
267# Add target alias to "gyp_all_modules" target.
268.PHONY: gyp_all_modules
269gyp_all_modules: third_party_libwebp_libwebp_enc_gyp
270
271# Alias gyp target name.
272.PHONY: libwebp_enc
273libwebp_enc: third_party_libwebp_libwebp_enc_gyp
274
275include $(BUILD_STATIC_LIBRARY)
276