blob: df90e0be82cfec2b077118c2fb6e92f555a39cdb [file] [log] [blame]
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +01001# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_ots_ots_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_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26 third_party/ots/src/cff.cc \
27 third_party/ots/src/cff_type2_charstring.cc \
28 third_party/ots/src/cmap.cc \
29 third_party/ots/src/cvt.cc \
30 third_party/ots/src/fpgm.cc \
31 third_party/ots/src/gasp.cc \
32 third_party/ots/src/gdef.cc \
33 third_party/ots/src/glyf.cc \
34 third_party/ots/src/gpos.cc \
35 third_party/ots/src/gsub.cc \
36 third_party/ots/src/hdmx.cc \
37 third_party/ots/src/head.cc \
38 third_party/ots/src/hhea.cc \
39 third_party/ots/src/hmtx.cc \
40 third_party/ots/src/kern.cc \
41 third_party/ots/src/layout.cc \
42 third_party/ots/src/loca.cc \
43 third_party/ots/src/ltsh.cc \
44 third_party/ots/src/maxp.cc \
45 third_party/ots/src/metrics.cc \
46 third_party/ots/src/name.cc \
47 third_party/ots/src/os2.cc \
48 third_party/ots/src/ots.cc \
49 third_party/ots/src/post.cc \
50 third_party/ots/src/prep.cc \
51 third_party/ots/src/vdmx.cc \
52 third_party/ots/src/vhea.cc \
53 third_party/ots/src/vmtx.cc \
Android Chromium Automerger9e3e93e2013-06-03 09:56:15 +000054 third_party/ots/src/vorg.cc \
55 third_party/ots/src/woff2.cc
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +010056
57
58# Flags passed to both C and C++ files.
Android Chromium Automerger696bda82013-06-27 23:19:44 +000059MY_CFLAGS_Debug := \
Torne (Richard Coles)887a0b42012-11-21 16:04:45 +000060 -fstack-protector \
61 --param=ssp-buffer-size=4 \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +010062 -Werror \
63 -fno-exceptions \
64 -fno-strict-aliasing \
65 -Wall \
66 -Wno-unused-parameter \
67 -Wno-missing-field-initializers \
68 -fvisibility=hidden \
69 -pipe \
70 -fPIC \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +010071 -fno-tree-sra \
72 -fuse-ld=gold \
73 -Wno-psabi \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +010074 -ffunction-sections \
75 -funwind-tables \
76 -g \
77 -fstack-protector \
78 -fno-short-enums \
79 -finline-limit=64 \
80 -Wa,--noexecstack \
Torne (Richard Coles)887a0b42012-11-21 16:04:45 +000081 -U_FORTIFY_SOURCE \
Android Chromium Automerger4780df42013-01-04 19:20:26 +000082 -Wno-extra \
83 -Wno-ignored-qualifiers \
84 -Wno-type-limits \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +010085 -Os \
86 -g \
87 -fomit-frame-pointer \
88 -fdata-sections \
89 -ffunction-sections
90
Android Chromium Automerger696bda82013-06-27 23:19:44 +000091MY_DEFS_Debug := \
Android Chromium Automerger9b3efda2013-06-24 10:47:54 +000092 '-DANGLE_DX11' \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +010093 '-D_FILE_OFFSET_BITS=64' \
Android Chromium Automergeraeb72ea2013-01-23 01:09:30 +000094 '-DUSE_LINUX_BREAKPAD' \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +010095 '-DNO_TCMALLOC' \
96 '-DDISABLE_NACL' \
97 '-DCHROMIUM_BUILD' \
98 '-DUSE_LIBJPEG_TURBO=1' \
99 '-DUSE_PROPRIETARY_CODECS' \
100 '-DENABLE_GPU=1' \
101 '-DUSE_OPENSSL=1' \
102 '-DENABLE_EGLIMAGE=1' \
Android Chromium Automerger13bc8322013-02-20 15:11:03 +0000103 '-DENABLE_LANGUAGE_DETECTION=1' \
Torne (Richard Coles)aae1b352012-11-12 14:58:24 +0000104 '-D__STDC_CONSTANT_MACROS' \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100105 '-D__STDC_FORMAT_MACROS' \
106 '-DANDROID' \
107 '-D__GNU_SOURCE=1' \
108 '-DUSE_STLPORT=1' \
109 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
Torne (Richard Coles)a509ddc2012-12-11 12:57:47 +0000110 '-DCHROME_BUILD_ID=""' \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100111 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
112 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
113 '-D_DEBUG'
114
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100115
116# Include paths placed before CFLAGS/CPPFLAGS
Android Chromium Automerger696bda82013-06-27 23:19:44 +0000117LOCAL_C_INCLUDES_Debug := \
Android Chromium Automerger9e3e93e2013-06-03 09:56:15 +0000118 $(LOCAL_PATH) \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100119 $(LOCAL_PATH)/third_party/ots/include \
Android Chromium Automerger9e3e93e2013-06-03 09:56:15 +0000120 $(LOCAL_PATH)/third_party/lzma_sdk \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100121 $(LOCAL_PATH)/third_party/zlib \
Android Chromium Automergerf3622fb2013-05-28 11:16:39 +0000122 $(PWD)/frameworks/wilhelm/include \
123 $(PWD)/bionic \
124 $(PWD)/external/stlport/stlport
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100125
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100126
127# Flags passed to only C++ (and not C) files.
Android Chromium Automerger696bda82013-06-27 23:19:44 +0000128LOCAL_CPPFLAGS_Debug := \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100129 -fno-rtti \
130 -fno-threadsafe-statics \
131 -fvisibility-inlines-hidden \
132 -Wsign-compare \
133 -Wno-abi \
Android Chromium Automerger4f740712013-03-11 14:10:24 +0000134 -Wno-error=c++0x-compat \
135 -Wno-non-virtual-dtor \
136 -Wno-sign-promo
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100137
Android Chromium Automerger696bda82013-06-27 23:19:44 +0000138
139# Flags passed to both C and C++ files.
140MY_CFLAGS_Release := \
141 -fstack-protector \
142 --param=ssp-buffer-size=4 \
143 -Werror \
144 -fno-exceptions \
145 -fno-strict-aliasing \
146 -Wall \
147 -Wno-unused-parameter \
148 -Wno-missing-field-initializers \
149 -fvisibility=hidden \
150 -pipe \
151 -fPIC \
152 -fno-tree-sra \
153 -fuse-ld=gold \
154 -Wno-psabi \
155 -ffunction-sections \
156 -funwind-tables \
157 -g \
158 -fstack-protector \
159 -fno-short-enums \
160 -finline-limit=64 \
161 -Wa,--noexecstack \
162 -U_FORTIFY_SOURCE \
163 -Wno-extra \
164 -Wno-ignored-qualifiers \
165 -Wno-type-limits \
166 -Os \
167 -fno-ident \
168 -fdata-sections \
169 -ffunction-sections \
170 -fomit-frame-pointer
171
172MY_DEFS_Release := \
173 '-DANGLE_DX11' \
174 '-D_FILE_OFFSET_BITS=64' \
175 '-DUSE_LINUX_BREAKPAD' \
176 '-DNO_TCMALLOC' \
177 '-DDISABLE_NACL' \
178 '-DCHROMIUM_BUILD' \
179 '-DUSE_LIBJPEG_TURBO=1' \
180 '-DUSE_PROPRIETARY_CODECS' \
181 '-DENABLE_GPU=1' \
182 '-DUSE_OPENSSL=1' \
183 '-DENABLE_EGLIMAGE=1' \
184 '-DENABLE_LANGUAGE_DETECTION=1' \
185 '-D__STDC_CONSTANT_MACROS' \
186 '-D__STDC_FORMAT_MACROS' \
187 '-DANDROID' \
188 '-D__GNU_SOURCE=1' \
189 '-DUSE_STLPORT=1' \
190 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
191 '-DCHROME_BUILD_ID=""' \
192 '-DNDEBUG' \
193 '-DNVALGRIND' \
194 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
195 '-D_FORTIFY_SOURCE=2'
196
197
198# Include paths placed before CFLAGS/CPPFLAGS
199LOCAL_C_INCLUDES_Release := \
200 $(LOCAL_PATH) \
201 $(LOCAL_PATH)/third_party/ots/include \
202 $(LOCAL_PATH)/third_party/lzma_sdk \
203 $(LOCAL_PATH)/third_party/zlib \
204 $(PWD)/frameworks/wilhelm/include \
205 $(PWD)/bionic \
206 $(PWD)/external/stlport/stlport
207
208
209# Flags passed to only C++ (and not C) files.
210LOCAL_CPPFLAGS_Release := \
211 -fno-rtti \
212 -fno-threadsafe-statics \
213 -fvisibility-inlines-hidden \
214 -Wsign-compare \
215 -Wno-abi \
216 -Wno-error=c++0x-compat \
217 -Wno-non-virtual-dtor \
218 -Wno-sign-promo
219
220
221LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
222LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
223LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100224### Rules for final target.
225
Android Chromium Automerger696bda82013-06-27 23:19:44 +0000226LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)887a0b42012-11-21 16:04:45 +0000227 -Wl,-z,now \
228 -Wl,-z,relro \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100229 -Wl,-z,noexecstack \
230 -fPIC \
231 -Wl,-z,relro \
232 -Wl,-z,now \
233 -fuse-ld=gold \
234 -nostdlib \
235 -Wl,--no-undefined \
236 -Wl,--exclude-libs=ALL \
237 -Wl,--icf=safe \
Torne (Richard Coles)32f98852013-04-16 14:06:31 +0100238 -Wl,--gc-sections \
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100239 -Wl,-O1 \
Torne (Richard Coles)32f98852013-04-16 14:06:31 +0100240 -Wl,--as-needed
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100241
242
Android Chromium Automerger696bda82013-06-27 23:19:44 +0000243LOCAL_LDFLAGS_Release := \
244 -Wl,-z,now \
245 -Wl,-z,relro \
246 -Wl,-z,noexecstack \
247 -fPIC \
248 -Wl,-z,relro \
249 -Wl,-z,now \
250 -fuse-ld=gold \
251 -nostdlib \
252 -Wl,--no-undefined \
253 -Wl,--exclude-libs=ALL \
254 -Wl,--icf=safe \
255 -Wl,-O1 \
256 -Wl,--as-needed \
257 -Wl,--gc-sections
258
259
260LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
261
Torne (Richard Coles)226a2d12012-10-09 14:16:37 +0100262LOCAL_STATIC_LIBRARIES :=
263
264# Enable grouping to fix circular references
265LOCAL_GROUP_STATIC_LIBRARIES := true
266
267LOCAL_SHARED_LIBRARIES := \
268 libstlport \
269 libdl
270
271# Add target alias to "gyp_all_modules" target.
272.PHONY: gyp_all_modules
273gyp_all_modules: third_party_ots_ots_gyp
274
275# Alias gyp target name.
276.PHONY: ots
277ots: third_party_ots_ots_gyp
278
279include $(BUILD_STATIC_LIBRARY)