• 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_sfntly_sfntly_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp
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/sfntly/cpp/src/sfntly/data/byte_array.cc \
28	third_party/sfntly/cpp/src/sfntly/data/font_data.cc \
29	third_party/sfntly/cpp/src/sfntly/data/font_input_stream.cc \
30	third_party/sfntly/cpp/src/sfntly/data/font_output_stream.cc \
31	third_party/sfntly/cpp/src/sfntly/data/growable_memory_byte_array.cc \
32	third_party/sfntly/cpp/src/sfntly/data/memory_byte_array.cc \
33	third_party/sfntly/cpp/src/sfntly/data/readable_font_data.cc \
34	third_party/sfntly/cpp/src/sfntly/data/writable_font_data.cc \
35	third_party/sfntly/cpp/src/sfntly/font.cc \
36	third_party/sfntly/cpp/src/sfntly/font_factory.cc \
37	third_party/sfntly/cpp/src/sfntly/port/file_input_stream.cc \
38	third_party/sfntly/cpp/src/sfntly/port/lock.cc \
39	third_party/sfntly/cpp/src/sfntly/port/memory_input_stream.cc \
40	third_party/sfntly/cpp/src/sfntly/port/memory_output_stream.cc \
41	third_party/sfntly/cpp/src/sfntly/table/bitmap/big_glyph_metrics.cc \
42	third_party/sfntly/cpp/src/sfntly/table/bitmap/bitmap_glyph.cc \
43	third_party/sfntly/cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc \
44	third_party/sfntly/cpp/src/sfntly/table/bitmap/bitmap_size_table.cc \
45	third_party/sfntly/cpp/src/sfntly/table/bitmap/composite_bitmap_glyph.cc \
46	third_party/sfntly/cpp/src/sfntly/table/bitmap/ebdt_table.cc \
47	third_party/sfntly/cpp/src/sfntly/table/bitmap/eblc_table.cc \
48	third_party/sfntly/cpp/src/sfntly/table/bitmap/ebsc_table.cc \
49	third_party/sfntly/cpp/src/sfntly/table/bitmap/glyph_metrics.cc \
50	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table.cc \
51	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format1.cc \
52	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format2.cc \
53	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format3.cc \
54	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format4.cc \
55	third_party/sfntly/cpp/src/sfntly/table/bitmap/index_sub_table_format5.cc \
56	third_party/sfntly/cpp/src/sfntly/table/bitmap/simple_bitmap_glyph.cc \
57	third_party/sfntly/cpp/src/sfntly/table/bitmap/small_glyph_metrics.cc \
58	third_party/sfntly/cpp/src/sfntly/table/byte_array_table_builder.cc \
59	third_party/sfntly/cpp/src/sfntly/table/core/cmap_table.cc \
60	third_party/sfntly/cpp/src/sfntly/table/core/font_header_table.cc \
61	third_party/sfntly/cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc \
62	third_party/sfntly/cpp/src/sfntly/table/core/horizontal_header_table.cc \
63	third_party/sfntly/cpp/src/sfntly/table/core/horizontal_metrics_table.cc \
64	third_party/sfntly/cpp/src/sfntly/table/core/maximum_profile_table.cc \
65	third_party/sfntly/cpp/src/sfntly/table/core/name_table.cc \
66	third_party/sfntly/cpp/src/sfntly/table/core/os2_table.cc \
67	third_party/sfntly/cpp/src/sfntly/table/font_data_table.cc \
68	third_party/sfntly/cpp/src/sfntly/table/generic_table_builder.cc \
69	third_party/sfntly/cpp/src/sfntly/table/header.cc \
70	third_party/sfntly/cpp/src/sfntly/table/subtable.cc \
71	third_party/sfntly/cpp/src/sfntly/table/table.cc \
72	third_party/sfntly/cpp/src/sfntly/table/table_based_table_builder.cc \
73	third_party/sfntly/cpp/src/sfntly/table/truetype/glyph_table.cc \
74	third_party/sfntly/cpp/src/sfntly/table/truetype/loca_table.cc \
75	third_party/sfntly/cpp/src/sfntly/tag.cc \
76	third_party/sfntly/cpp/src/sample/chromium/font_subsetter.cc \
77	third_party/sfntly/cpp/src/sample/chromium/subsetter_impl.cc
78
79
80# Flags passed to both C and C++ files.
81MY_CFLAGS_Debug := \
82	-fstack-protector \
83	--param=ssp-buffer-size=4 \
84	-Werror \
85	-fno-strict-aliasing \
86	-Wall \
87	-Wno-unused-parameter \
88	-Wno-missing-field-initializers \
89	-fvisibility=hidden \
90	-pipe \
91	-fPIC \
92	-Wno-unused-local-typedefs \
93	-m64 \
94	-march=x86-64 \
95	-ffunction-sections \
96	-funwind-tables \
97	-g \
98	-fstack-protector \
99	-fno-short-enums \
100	-finline-limit=64 \
101	-Wa,--noexecstack \
102	-U_FORTIFY_SOURCE \
103	-Wno-extra \
104	-Wno-ignored-qualifiers \
105	-Wno-type-limits \
106	-Wno-unused-but-set-variable \
107	-Os \
108	-g \
109	-gdwarf-4 \
110	-fdata-sections \
111	-ffunction-sections \
112	-fomit-frame-pointer \
113	-funwind-tables
114
115MY_DEFS_Debug := \
116	'-DV8_DEPRECATION_WARNINGS' \
117	'-D_FILE_OFFSET_BITS=64' \
118	'-DNO_TCMALLOC' \
119	'-DDISABLE_NACL' \
120	'-DCHROMIUM_BUILD' \
121	'-DUSE_LIBJPEG_TURBO=1' \
122	'-DENABLE_WEBRTC=1' \
123	'-DUSE_PROPRIETARY_CODECS' \
124	'-DENABLE_BROWSER_CDMS' \
125	'-DENABLE_CONFIGURATION_POLICY' \
126	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
127	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
128	'-DENABLE_EGLIMAGE=1' \
129	'-DCLD_VERSION=1' \
130	'-DENABLE_PRINTING=1' \
131	'-DENABLE_MANAGED_USERS=1' \
132	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
133	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
134	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
135	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
136	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
137	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
138	'-DVIDEO_HOLE=1' \
139	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
140	'-DSFNTLY_NO_EXCEPTION' \
141	'-DU_USING_ICU_NAMESPACE=0' \
142	'-DU_ENABLE_DYLOAD=0' \
143	'-DUSE_OPENSSL=1' \
144	'-DUSE_OPENSSL_CERTS=1' \
145	'-D__STDC_CONSTANT_MACROS' \
146	'-D__STDC_FORMAT_MACROS' \
147	'-DANDROID' \
148	'-D__GNU_SOURCE=1' \
149	'-DUSE_STLPORT=1' \
150	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
151	'-DCHROME_BUILD_ID=""' \
152	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
153	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
154	'-D_DEBUG'
155
156
157# Include paths placed before CFLAGS/CPPFLAGS
158LOCAL_C_INCLUDES_Debug := \
159	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
160	$(gyp_shared_intermediate_dir) \
161	$(LOCAL_PATH)/third_party/sfntly/cpp/src \
162	$(LOCAL_PATH) \
163	$(PWD)/external/icu/icu4c/source/common \
164	$(PWD)/external/icu/icu4c/source/i18n \
165	$(PWD)/frameworks/wilhelm/include \
166	$(PWD)/bionic \
167	$(PWD)/external/stlport/stlport
168
169
170# Flags passed to only C++ (and not C) files.
171LOCAL_CPPFLAGS_Debug := \
172	-fno-exceptions \
173	-fno-rtti \
174	-fno-threadsafe-statics \
175	-fvisibility-inlines-hidden \
176	-Wsign-compare \
177	-std=gnu++11 \
178	-Wno-narrowing \
179	-Wno-literal-suffix \
180	-Wno-non-virtual-dtor \
181	-Wno-sign-promo
182
183
184# Flags passed to both C and C++ files.
185MY_CFLAGS_Release := \
186	-fstack-protector \
187	--param=ssp-buffer-size=4 \
188	-Werror \
189	-fno-strict-aliasing \
190	-Wall \
191	-Wno-unused-parameter \
192	-Wno-missing-field-initializers \
193	-fvisibility=hidden \
194	-pipe \
195	-fPIC \
196	-Wno-unused-local-typedefs \
197	-m64 \
198	-march=x86-64 \
199	-ffunction-sections \
200	-funwind-tables \
201	-g \
202	-fstack-protector \
203	-fno-short-enums \
204	-finline-limit=64 \
205	-Wa,--noexecstack \
206	-U_FORTIFY_SOURCE \
207	-Wno-extra \
208	-Wno-ignored-qualifiers \
209	-Wno-type-limits \
210	-Wno-unused-but-set-variable \
211	-Os \
212	-fno-ident \
213	-fdata-sections \
214	-ffunction-sections \
215	-fomit-frame-pointer \
216	-funwind-tables
217
218MY_DEFS_Release := \
219	'-DV8_DEPRECATION_WARNINGS' \
220	'-D_FILE_OFFSET_BITS=64' \
221	'-DNO_TCMALLOC' \
222	'-DDISABLE_NACL' \
223	'-DCHROMIUM_BUILD' \
224	'-DUSE_LIBJPEG_TURBO=1' \
225	'-DENABLE_WEBRTC=1' \
226	'-DUSE_PROPRIETARY_CODECS' \
227	'-DENABLE_BROWSER_CDMS' \
228	'-DENABLE_CONFIGURATION_POLICY' \
229	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
230	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
231	'-DENABLE_EGLIMAGE=1' \
232	'-DCLD_VERSION=1' \
233	'-DENABLE_PRINTING=1' \
234	'-DENABLE_MANAGED_USERS=1' \
235	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
236	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
237	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
238	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
239	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
240	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
241	'-DVIDEO_HOLE=1' \
242	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
243	'-DSFNTLY_NO_EXCEPTION' \
244	'-DU_USING_ICU_NAMESPACE=0' \
245	'-DU_ENABLE_DYLOAD=0' \
246	'-DUSE_OPENSSL=1' \
247	'-DUSE_OPENSSL_CERTS=1' \
248	'-D__STDC_CONSTANT_MACROS' \
249	'-D__STDC_FORMAT_MACROS' \
250	'-DANDROID' \
251	'-D__GNU_SOURCE=1' \
252	'-DUSE_STLPORT=1' \
253	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
254	'-DCHROME_BUILD_ID=""' \
255	'-DNDEBUG' \
256	'-DNVALGRIND' \
257	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
258	'-D_FORTIFY_SOURCE=2'
259
260
261# Include paths placed before CFLAGS/CPPFLAGS
262LOCAL_C_INCLUDES_Release := \
263	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
264	$(gyp_shared_intermediate_dir) \
265	$(LOCAL_PATH)/third_party/sfntly/cpp/src \
266	$(LOCAL_PATH) \
267	$(PWD)/external/icu/icu4c/source/common \
268	$(PWD)/external/icu/icu4c/source/i18n \
269	$(PWD)/frameworks/wilhelm/include \
270	$(PWD)/bionic \
271	$(PWD)/external/stlport/stlport
272
273
274# Flags passed to only C++ (and not C) files.
275LOCAL_CPPFLAGS_Release := \
276	-fno-exceptions \
277	-fno-rtti \
278	-fno-threadsafe-statics \
279	-fvisibility-inlines-hidden \
280	-Wsign-compare \
281	-std=gnu++11 \
282	-Wno-narrowing \
283	-Wno-literal-suffix \
284	-Wno-non-virtual-dtor \
285	-Wno-sign-promo
286
287
288LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
289LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
290LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
291LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
292### Rules for final target.
293
294LOCAL_SHARED_LIBRARIES := \
295	libstlport \
296	libdl
297
298# Add target alias to "gyp_all_modules" target.
299.PHONY: gyp_all_modules
300gyp_all_modules: third_party_sfntly_sfntly_gyp
301
302# Alias gyp target name.
303.PHONY: sfntly
304sfntly: third_party_sfntly_sfntly_gyp
305
306include $(BUILD_STATIC_LIBRARY)
307