blob: 08607a110182d0558f7992c2e1f86a9ec50931f6 [file] [log] [blame]
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +01001# 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.
Ben Murdocheb525c52013-07-10 11:40:50 +010045MY_CFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010046 -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 \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010059 -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-address \
71 -Wno-format-security \
72 -Wno-return-type \
73 -Wno-sequence-point \
74 -Os \
75 -g \
76 -fomit-frame-pointer \
77 -fdata-sections \
78 -ffunction-sections
79
Ben Murdocheb525c52013-07-10 11:40:50 +010080MY_DEFS_Debug := \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010081 '-DANGLE_DX11' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010082 '-D_FILE_OFFSET_BITS=64' \
83 '-DNO_TCMALLOC' \
84 '-DDISABLE_NACL' \
85 '-DCHROMIUM_BUILD' \
86 '-DUSE_LIBJPEG_TURBO=1' \
87 '-DUSE_PROPRIETARY_CODECS' \
88 '-DENABLE_GPU=1' \
89 '-DUSE_OPENSSL=1' \
90 '-DENABLE_EGLIMAGE=1' \
91 '-DENABLE_LANGUAGE_DETECTION=1' \
92 '-DANDROID' \
93 '-D__GNU_SOURCE=1' \
94 '-DUSE_STLPORT=1' \
95 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
96 '-DCHROME_BUILD_ID=""' \
97 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
98 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
99 '-D_DEBUG'
100
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100101
102# Include paths placed before CFLAGS/CPPFLAGS
Ben Murdocheb525c52013-07-10 11:40:50 +0100103LOCAL_C_INCLUDES_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100104 $(LOCAL_PATH)/third_party/libwebp \
105 $(PWD)/frameworks/wilhelm/include \
106 $(PWD)/bionic \
107 $(PWD)/external/stlport/stlport
108
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100109
110# Flags passed to only C++ (and not C) files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100111LOCAL_CPPFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100112 -fno-rtti \
113 -fno-threadsafe-statics \
114 -fvisibility-inlines-hidden \
115 -Wno-deprecated \
116 -Wno-uninitialized \
117 -Wno-error=c++0x-compat \
118 -Wno-non-virtual-dtor \
119 -Wno-sign-promo \
120 -Wno-non-virtual-dtor
121
Ben Murdocheb525c52013-07-10 11:40:50 +0100122
123# Flags passed to both C and C++ files.
124MY_CFLAGS_Release := \
125 -fstack-protector \
126 --param=ssp-buffer-size=4 \
127 \
128 -fno-exceptions \
129 -fno-strict-aliasing \
130 -Wno-unused-parameter \
131 -Wno-missing-field-initializers \
132 -fvisibility=hidden \
133 -pipe \
134 -fPIC \
135 -Wno-format \
136 -EL \
137 -mhard-float \
138 -ffunction-sections \
139 -funwind-tables \
140 -g \
141 -fstack-protector \
142 -fno-short-enums \
143 -finline-limit=64 \
144 -Wa,--noexecstack \
145 -U_FORTIFY_SOURCE \
146 -Wno-extra \
147 -Wno-ignored-qualifiers \
148 -Wno-type-limits \
149 -Wno-address \
150 -Wno-format-security \
151 -Wno-return-type \
152 -Wno-sequence-point \
153 -Os \
154 -fno-ident \
155 -fdata-sections \
156 -ffunction-sections \
157 -fomit-frame-pointer
158
159MY_DEFS_Release := \
160 '-DANGLE_DX11' \
161 '-D_FILE_OFFSET_BITS=64' \
162 '-DNO_TCMALLOC' \
163 '-DDISABLE_NACL' \
164 '-DCHROMIUM_BUILD' \
165 '-DUSE_LIBJPEG_TURBO=1' \
166 '-DUSE_PROPRIETARY_CODECS' \
167 '-DENABLE_GPU=1' \
168 '-DUSE_OPENSSL=1' \
169 '-DENABLE_EGLIMAGE=1' \
170 '-DENABLE_LANGUAGE_DETECTION=1' \
171 '-DANDROID' \
172 '-D__GNU_SOURCE=1' \
173 '-DUSE_STLPORT=1' \
174 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
175 '-DCHROME_BUILD_ID=""' \
176 '-DNDEBUG' \
177 '-DNVALGRIND' \
178 '-DDYNAMIC_ANNOTATIONS_ENABLED=0'
179
180
181# Include paths placed before CFLAGS/CPPFLAGS
182LOCAL_C_INCLUDES_Release := \
183 $(LOCAL_PATH)/third_party/libwebp \
184 $(PWD)/frameworks/wilhelm/include \
185 $(PWD)/bionic \
186 $(PWD)/external/stlport/stlport
187
188
189# Flags passed to only C++ (and not C) files.
190LOCAL_CPPFLAGS_Release := \
191 -fno-rtti \
192 -fno-threadsafe-statics \
193 -fvisibility-inlines-hidden \
194 -Wno-deprecated \
195 -Wno-uninitialized \
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))
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100205### Rules for final target.
206
Ben Murdocheb525c52013-07-10 11:40:50 +0100207LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100208 -Wl,-z,now \
209 -Wl,-z,relro \
210 -Wl,-z,noexecstack \
211 -fPIC \
212 -EL \
213 -Wl,--no-keep-memory \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100214 -nostdlib \
215 -Wl,--no-undefined \
216 -Wl,--exclude-libs=ALL \
217 -Wl,--gc-sections \
218 -Wl,-O1 \
219 -Wl,--as-needed
220
221
Ben Murdocheb525c52013-07-10 11:40:50 +0100222LOCAL_LDFLAGS_Release := \
223 -Wl,-z,now \
224 -Wl,-z,relro \
225 -Wl,-z,noexecstack \
226 -fPIC \
227 -EL \
228 -Wl,--no-keep-memory \
229 -nostdlib \
230 -Wl,--no-undefined \
231 -Wl,--exclude-libs=ALL \
232 -Wl,-O1 \
233 -Wl,--as-needed \
234 -Wl,--gc-sections
235
236
237LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
238
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100239LOCAL_STATIC_LIBRARIES :=
240
241# Enable grouping to fix circular references
242LOCAL_GROUP_STATIC_LIBRARIES := true
243
244LOCAL_SHARED_LIBRARIES := \
245 libstlport \
246 libdl
247
248# Add target alias to "gyp_all_modules" target.
249.PHONY: gyp_all_modules
250gyp_all_modules: third_party_libwebp_libwebp_enc_gyp
251
252# Alias gyp target name.
253.PHONY: libwebp_enc
254libwebp_enc: third_party_libwebp_libwebp_enc_gyp
255
256include $(BUILD_STATIC_LIBRARY)