• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES :=
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/ots/src/cff.cc \
28	third_party/ots/src/cff_type2_charstring.cc \
29	third_party/ots/src/cmap.cc \
30	third_party/ots/src/cvt.cc \
31	third_party/ots/src/fpgm.cc \
32	third_party/ots/src/gasp.cc \
33	third_party/ots/src/gdef.cc \
34	third_party/ots/src/glyf.cc \
35	third_party/ots/src/gpos.cc \
36	third_party/ots/src/gsub.cc \
37	third_party/ots/src/hdmx.cc \
38	third_party/ots/src/head.cc \
39	third_party/ots/src/hhea.cc \
40	third_party/ots/src/hmtx.cc \
41	third_party/ots/src/kern.cc \
42	third_party/ots/src/layout.cc \
43	third_party/ots/src/loca.cc \
44	third_party/ots/src/ltsh.cc \
45	third_party/ots/src/maxp.cc \
46	third_party/ots/src/math.cc \
47	third_party/ots/src/metrics.cc \
48	third_party/ots/src/name.cc \
49	third_party/ots/src/os2.cc \
50	third_party/ots/src/ots.cc \
51	third_party/ots/src/post.cc \
52	third_party/ots/src/prep.cc \
53	third_party/ots/src/vdmx.cc \
54	third_party/ots/src/vhea.cc \
55	third_party/ots/src/vmtx.cc \
56	third_party/ots/src/vorg.cc \
57	third_party/ots/src/woff2.cc
58
59
60# Flags passed to both C and C++ files.
61MY_CFLAGS_Debug := \
62	-fstack-protector \
63	--param=ssp-buffer-size=4 \
64	 \
65	-fno-exceptions \
66	-fno-strict-aliasing \
67	-Wall \
68	-Wno-unused-parameter \
69	-Wno-missing-field-initializers \
70	-fvisibility=hidden \
71	-pipe \
72	-fPIC \
73	-Wno-unused-local-typedefs \
74	-EL \
75	-mhard-float \
76	-ffunction-sections \
77	-funwind-tables \
78	-g \
79	-fstack-protector \
80	-fno-short-enums \
81	-finline-limit=64 \
82	-Wa,--noexecstack \
83	-U_FORTIFY_SOURCE \
84	-Wno-extra \
85	-Wno-ignored-qualifiers \
86	-Wno-type-limits \
87	-Wno-unused-but-set-variable \
88	-Os \
89	-g \
90	-fdata-sections \
91	-ffunction-sections \
92	-fomit-frame-pointer \
93	-funwind-tables
94
95MY_DEFS_Debug := \
96	'-DV8_DEPRECATION_WARNINGS' \
97	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
98	'-D_FILE_OFFSET_BITS=64' \
99	'-DNO_TCMALLOC' \
100	'-DDISABLE_NACL' \
101	'-DCHROMIUM_BUILD' \
102	'-DUSE_LIBJPEG_TURBO=1' \
103	'-DENABLE_WEBRTC=1' \
104	'-DUSE_PROPRIETARY_CODECS' \
105	'-DENABLE_BROWSER_CDMS' \
106	'-DENABLE_CONFIGURATION_POLICY' \
107	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
108	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
109	'-DENABLE_EGLIMAGE=1' \
110	'-DCLD_VERSION=1' \
111	'-DENABLE_PRINTING=1' \
112	'-DENABLE_MANAGED_USERS=1' \
113	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
114	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
115	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
116	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
117	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
118	'-DVIDEO_HOLE=1' \
119	'-DUSE_OPENSSL=1' \
120	'-DUSE_OPENSSL_CERTS=1' \
121	'-D__STDC_CONSTANT_MACROS' \
122	'-D__STDC_FORMAT_MACROS' \
123	'-DANDROID' \
124	'-D__GNU_SOURCE=1' \
125	'-DUSE_STLPORT=1' \
126	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
127	'-DCHROME_BUILD_ID=""' \
128	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
129	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
130	'-D_DEBUG'
131
132
133# Include paths placed before CFLAGS/CPPFLAGS
134LOCAL_C_INCLUDES_Debug := \
135	$(gyp_shared_intermediate_dir) \
136	$(LOCAL_PATH) \
137	$(LOCAL_PATH)/third_party/ots/include \
138	$(LOCAL_PATH)/third_party/zlib \
139	$(PWD)/frameworks/wilhelm/include \
140	$(PWD)/bionic \
141	$(PWD)/external/stlport/stlport
142
143
144# Flags passed to only C++ (and not C) files.
145LOCAL_CPPFLAGS_Debug := \
146	-fno-rtti \
147	-fno-threadsafe-statics \
148	-fvisibility-inlines-hidden \
149	-Wsign-compare \
150	-Wno-uninitialized \
151	-Wno-non-virtual-dtor \
152	-Wno-sign-promo
153
154
155LOCAL_FDO_SUPPORT_Debug := false
156
157# Flags passed to both C and C++ files.
158MY_CFLAGS_Release := \
159	-fstack-protector \
160	--param=ssp-buffer-size=4 \
161	 \
162	-fno-exceptions \
163	-fno-strict-aliasing \
164	-Wall \
165	-Wno-unused-parameter \
166	-Wno-missing-field-initializers \
167	-fvisibility=hidden \
168	-pipe \
169	-fPIC \
170	-Wno-unused-local-typedefs \
171	-EL \
172	-mhard-float \
173	-ffunction-sections \
174	-funwind-tables \
175	-g \
176	-fstack-protector \
177	-fno-short-enums \
178	-finline-limit=64 \
179	-Wa,--noexecstack \
180	-U_FORTIFY_SOURCE \
181	-Wno-extra \
182	-Wno-ignored-qualifiers \
183	-Wno-type-limits \
184	-Wno-unused-but-set-variable \
185	-Os \
186	-fno-ident \
187	-fdata-sections \
188	-ffunction-sections \
189	-fomit-frame-pointer \
190	-funwind-tables
191
192MY_DEFS_Release := \
193	'-DV8_DEPRECATION_WARNINGS' \
194	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
195	'-D_FILE_OFFSET_BITS=64' \
196	'-DNO_TCMALLOC' \
197	'-DDISABLE_NACL' \
198	'-DCHROMIUM_BUILD' \
199	'-DUSE_LIBJPEG_TURBO=1' \
200	'-DENABLE_WEBRTC=1' \
201	'-DUSE_PROPRIETARY_CODECS' \
202	'-DENABLE_BROWSER_CDMS' \
203	'-DENABLE_CONFIGURATION_POLICY' \
204	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
205	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
206	'-DENABLE_EGLIMAGE=1' \
207	'-DCLD_VERSION=1' \
208	'-DENABLE_PRINTING=1' \
209	'-DENABLE_MANAGED_USERS=1' \
210	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
211	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
212	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
213	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
214	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
215	'-DVIDEO_HOLE=1' \
216	'-DUSE_OPENSSL=1' \
217	'-DUSE_OPENSSL_CERTS=1' \
218	'-D__STDC_CONSTANT_MACROS' \
219	'-D__STDC_FORMAT_MACROS' \
220	'-DANDROID' \
221	'-D__GNU_SOURCE=1' \
222	'-DUSE_STLPORT=1' \
223	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
224	'-DCHROME_BUILD_ID=""' \
225	'-DNDEBUG' \
226	'-DNVALGRIND' \
227	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
228	'-D_FORTIFY_SOURCE=2'
229
230
231# Include paths placed before CFLAGS/CPPFLAGS
232LOCAL_C_INCLUDES_Release := \
233	$(gyp_shared_intermediate_dir) \
234	$(LOCAL_PATH) \
235	$(LOCAL_PATH)/third_party/ots/include \
236	$(LOCAL_PATH)/third_party/zlib \
237	$(PWD)/frameworks/wilhelm/include \
238	$(PWD)/bionic \
239	$(PWD)/external/stlport/stlport
240
241
242# Flags passed to only C++ (and not C) files.
243LOCAL_CPPFLAGS_Release := \
244	-fno-rtti \
245	-fno-threadsafe-statics \
246	-fvisibility-inlines-hidden \
247	-Wsign-compare \
248	-Wno-uninitialized \
249	-Wno-non-virtual-dtor \
250	-Wno-sign-promo
251
252
253LOCAL_FDO_SUPPORT_Release := false
254
255LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
256LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
257LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
258LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
259LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
260### Rules for final target.
261
262LOCAL_LDFLAGS_Debug := \
263	-Wl,-z,now \
264	-Wl,-z,relro \
265	-Wl,--fatal-warnings \
266	-Wl,-z,noexecstack \
267	-fPIC \
268	-EL \
269	-Wl,--no-keep-memory \
270	-nostdlib \
271	-Wl,--no-undefined \
272	-Wl,--exclude-libs=ALL \
273	-Wl,--warn-shared-textrel \
274	-Wl,-O1 \
275	-Wl,--as-needed
276
277
278LOCAL_LDFLAGS_Release := \
279	-Wl,-z,now \
280	-Wl,-z,relro \
281	-Wl,--fatal-warnings \
282	-Wl,-z,noexecstack \
283	-fPIC \
284	-EL \
285	-Wl,--no-keep-memory \
286	-nostdlib \
287	-Wl,--no-undefined \
288	-Wl,--exclude-libs=ALL \
289	-Wl,-O1 \
290	-Wl,--as-needed \
291	-Wl,--gc-sections \
292	-Wl,--warn-shared-textrel
293
294
295LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
296
297LOCAL_STATIC_LIBRARIES :=
298
299# Enable grouping to fix circular references
300LOCAL_GROUP_STATIC_LIBRARIES := true
301
302LOCAL_SHARED_LIBRARIES := \
303	libstlport \
304	libdl
305
306# Add target alias to "gyp_all_modules" target.
307.PHONY: gyp_all_modules
308gyp_all_modules: third_party_ots_ots_gyp
309
310# Alias gyp target name.
311.PHONY: ots
312ots: third_party_ots_ots_gyp
313
314include $(BUILD_STATIC_LIBRARY)
315