• 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	--param=ssp-buffer-size=4 \
63	-Werror \
64	-fno-exceptions \
65	-fno-strict-aliasing \
66	-Wall \
67	-Wno-unused-parameter \
68	-Wno-missing-field-initializers \
69	-fvisibility=hidden \
70	-pipe \
71	-fPIC \
72	-Wno-unused-local-typedefs \
73	-ffunction-sections \
74	-funwind-tables \
75	-g \
76	-fno-short-enums \
77	-finline-limit=64 \
78	-Wa,--noexecstack \
79	-U_FORTIFY_SOURCE \
80	-Wno-extra \
81	-Wno-ignored-qualifiers \
82	-Wno-type-limits \
83	-Wno-unused-but-set-variable \
84	-Os \
85	-g \
86	-fdata-sections \
87	-ffunction-sections \
88	-funwind-tables
89
90MY_DEFS_Debug := \
91	'-DV8_DEPRECATION_WARNINGS' \
92	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
93	'-D_FILE_OFFSET_BITS=64' \
94	'-DNO_TCMALLOC' \
95	'-DDISABLE_NACL' \
96	'-DCHROMIUM_BUILD' \
97	'-DUSE_LIBJPEG_TURBO=1' \
98	'-DENABLE_WEBRTC=1' \
99	'-DUSE_PROPRIETARY_CODECS' \
100	'-DENABLE_BROWSER_CDMS' \
101	'-DENABLE_CONFIGURATION_POLICY' \
102	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
103	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
104	'-DENABLE_EGLIMAGE=1' \
105	'-DCLD_VERSION=1' \
106	'-DENABLE_PRINTING=1' \
107	'-DENABLE_MANAGED_USERS=1' \
108	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
109	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
110	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
111	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
112	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
113	'-DVIDEO_HOLE=1' \
114	'-DUSE_OPENSSL=1' \
115	'-DUSE_OPENSSL_CERTS=1' \
116	'-D__STDC_CONSTANT_MACROS' \
117	'-D__STDC_FORMAT_MACROS' \
118	'-DANDROID' \
119	'-D__GNU_SOURCE=1' \
120	'-DUSE_STLPORT=1' \
121	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
122	'-DCHROME_BUILD_ID=""' \
123	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
124	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
125	'-D_DEBUG'
126
127
128# Include paths placed before CFLAGS/CPPFLAGS
129LOCAL_C_INCLUDES_Debug := \
130	$(gyp_shared_intermediate_dir) \
131	$(LOCAL_PATH) \
132	$(LOCAL_PATH)/third_party/ots/include \
133	$(LOCAL_PATH)/third_party/zlib \
134	$(PWD)/frameworks/wilhelm/include \
135	$(PWD)/bionic \
136	$(PWD)/external/stlport/stlport
137
138
139# Flags passed to only C++ (and not C) files.
140LOCAL_CPPFLAGS_Debug := \
141	-fno-rtti \
142	-fno-threadsafe-statics \
143	-fvisibility-inlines-hidden \
144	-Wsign-compare \
145	-Wno-non-virtual-dtor \
146	-Wno-sign-promo
147
148
149LOCAL_FDO_SUPPORT_Debug := false
150
151# Flags passed to both C and C++ files.
152MY_CFLAGS_Release := \
153	--param=ssp-buffer-size=4 \
154	-Werror \
155	-fno-exceptions \
156	-fno-strict-aliasing \
157	-Wall \
158	-Wno-unused-parameter \
159	-Wno-missing-field-initializers \
160	-fvisibility=hidden \
161	-pipe \
162	-fPIC \
163	-Wno-unused-local-typedefs \
164	-ffunction-sections \
165	-funwind-tables \
166	-g \
167	-fno-short-enums \
168	-finline-limit=64 \
169	-Wa,--noexecstack \
170	-U_FORTIFY_SOURCE \
171	-Wno-extra \
172	-Wno-ignored-qualifiers \
173	-Wno-type-limits \
174	-Wno-unused-but-set-variable \
175	-Os \
176	-fno-ident \
177	-fdata-sections \
178	-ffunction-sections \
179	-funwind-tables
180
181MY_DEFS_Release := \
182	'-DV8_DEPRECATION_WARNINGS' \
183	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
184	'-D_FILE_OFFSET_BITS=64' \
185	'-DNO_TCMALLOC' \
186	'-DDISABLE_NACL' \
187	'-DCHROMIUM_BUILD' \
188	'-DUSE_LIBJPEG_TURBO=1' \
189	'-DENABLE_WEBRTC=1' \
190	'-DUSE_PROPRIETARY_CODECS' \
191	'-DENABLE_BROWSER_CDMS' \
192	'-DENABLE_CONFIGURATION_POLICY' \
193	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
194	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
195	'-DENABLE_EGLIMAGE=1' \
196	'-DCLD_VERSION=1' \
197	'-DENABLE_PRINTING=1' \
198	'-DENABLE_MANAGED_USERS=1' \
199	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
200	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
201	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
202	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
203	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
204	'-DVIDEO_HOLE=1' \
205	'-DUSE_OPENSSL=1' \
206	'-DUSE_OPENSSL_CERTS=1' \
207	'-D__STDC_CONSTANT_MACROS' \
208	'-D__STDC_FORMAT_MACROS' \
209	'-DANDROID' \
210	'-D__GNU_SOURCE=1' \
211	'-DUSE_STLPORT=1' \
212	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
213	'-DCHROME_BUILD_ID=""' \
214	'-DNDEBUG' \
215	'-DNVALGRIND' \
216	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
217	'-D_FORTIFY_SOURCE=2'
218
219
220# Include paths placed before CFLAGS/CPPFLAGS
221LOCAL_C_INCLUDES_Release := \
222	$(gyp_shared_intermediate_dir) \
223	$(LOCAL_PATH) \
224	$(LOCAL_PATH)/third_party/ots/include \
225	$(LOCAL_PATH)/third_party/zlib \
226	$(PWD)/frameworks/wilhelm/include \
227	$(PWD)/bionic \
228	$(PWD)/external/stlport/stlport
229
230
231# Flags passed to only C++ (and not C) files.
232LOCAL_CPPFLAGS_Release := \
233	-fno-rtti \
234	-fno-threadsafe-statics \
235	-fvisibility-inlines-hidden \
236	-Wsign-compare \
237	-Wno-non-virtual-dtor \
238	-Wno-sign-promo
239
240
241LOCAL_FDO_SUPPORT_Release := false
242
243LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
244LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
245LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
246LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
247LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
248### Rules for final target.
249
250LOCAL_LDFLAGS_Debug := \
251	-Wl,-z,now \
252	-Wl,-z,relro \
253	-Wl,--fatal-warnings \
254	-Wl,-z,noexecstack \
255	-fPIC \
256	-nostdlib \
257	-Wl,--no-undefined \
258	-Wl,--exclude-libs=ALL \
259	-Wl,--warn-shared-textrel \
260	-Wl,-O1 \
261	-Wl,--as-needed
262
263
264LOCAL_LDFLAGS_Release := \
265	-Wl,-z,now \
266	-Wl,-z,relro \
267	-Wl,--fatal-warnings \
268	-Wl,-z,noexecstack \
269	-fPIC \
270	-nostdlib \
271	-Wl,--no-undefined \
272	-Wl,--exclude-libs=ALL \
273	-Wl,-O1 \
274	-Wl,--as-needed \
275	-Wl,--gc-sections \
276	-Wl,--warn-shared-textrel
277
278
279LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
280
281LOCAL_STATIC_LIBRARIES :=
282
283# Enable grouping to fix circular references
284LOCAL_GROUP_STATIC_LIBRARIES := true
285
286LOCAL_SHARED_LIBRARIES := \
287	libstlport \
288	libdl
289
290# Add target alias to "gyp_all_modules" target.
291.PHONY: gyp_all_modules
292gyp_all_modules: third_party_ots_ots_gyp
293
294# Alias gyp target name.
295.PHONY: ots
296ots: third_party_ots_ots_gyp
297
298include $(BUILD_STATIC_LIBRARY)
299