• 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	 \
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	-ffunction-sections \
94	-funwind-tables \
95	-g \
96	-fstack-protector \
97	-fno-short-enums \
98	-finline-limit=64 \
99	-Wa,--noexecstack \
100	-U_FORTIFY_SOURCE \
101	-Wno-extra \
102	-Wno-ignored-qualifiers \
103	-Wno-type-limits \
104	-Wno-unused-but-set-variable \
105	-Os \
106	-g \
107	-gdwarf-4 \
108	-fdata-sections \
109	-ffunction-sections \
110	-fomit-frame-pointer \
111	-funwind-tables
112
113MY_DEFS_Debug := \
114	'-DV8_DEPRECATION_WARNINGS' \
115	'-D_FILE_OFFSET_BITS=64' \
116	'-DNO_TCMALLOC' \
117	'-DDISABLE_NACL' \
118	'-DCHROMIUM_BUILD' \
119	'-DUSE_LIBJPEG_TURBO=1' \
120	'-DENABLE_WEBRTC=1' \
121	'-DUSE_PROPRIETARY_CODECS' \
122	'-DENABLE_BROWSER_CDMS' \
123	'-DENABLE_CONFIGURATION_POLICY' \
124	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
125	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
126	'-DENABLE_EGLIMAGE=1' \
127	'-DCLD_VERSION=1' \
128	'-DENABLE_PRINTING=1' \
129	'-DENABLE_MANAGED_USERS=1' \
130	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
131	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
132	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
133	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
134	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
135	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
136	'-DVIDEO_HOLE=1' \
137	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
138	'-DSFNTLY_NO_EXCEPTION' \
139	'-DU_USING_ICU_NAMESPACE=0' \
140	'-DU_ENABLE_DYLOAD=0' \
141	'-DUSE_OPENSSL=1' \
142	'-DUSE_OPENSSL_CERTS=1' \
143	'-D__STDC_CONSTANT_MACROS' \
144	'-D__STDC_FORMAT_MACROS' \
145	'-DANDROID' \
146	'-D__GNU_SOURCE=1' \
147	'-DUSE_STLPORT=1' \
148	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
149	'-DCHROME_BUILD_ID=""' \
150	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
151	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
152	'-D_DEBUG'
153
154
155# Include paths placed before CFLAGS/CPPFLAGS
156LOCAL_C_INCLUDES_Debug := \
157	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
158	$(gyp_shared_intermediate_dir) \
159	$(LOCAL_PATH)/third_party/sfntly/cpp/src \
160	$(LOCAL_PATH) \
161	$(PWD)/external/icu/icu4c/source/common \
162	$(PWD)/external/icu/icu4c/source/i18n \
163	$(PWD)/frameworks/wilhelm/include \
164	$(PWD)/bionic \
165	$(PWD)/external/stlport/stlport
166
167
168# Flags passed to only C++ (and not C) files.
169LOCAL_CPPFLAGS_Debug := \
170	-fno-exceptions \
171	-fno-rtti \
172	-fno-threadsafe-statics \
173	-fvisibility-inlines-hidden \
174	-Wsign-compare \
175	-Wno-uninitialized \
176	-std=gnu++11 \
177	-Wno-narrowing \
178	-Wno-literal-suffix \
179	-Wno-non-virtual-dtor \
180	-Wno-sign-promo
181
182
183# Flags passed to both C and C++ files.
184MY_CFLAGS_Release := \
185	-fstack-protector \
186	--param=ssp-buffer-size=4 \
187	 \
188	-fno-strict-aliasing \
189	-Wall \
190	-Wno-unused-parameter \
191	-Wno-missing-field-initializers \
192	-fvisibility=hidden \
193	-pipe \
194	-fPIC \
195	-Wno-unused-local-typedefs \
196	-ffunction-sections \
197	-funwind-tables \
198	-g \
199	-fstack-protector \
200	-fno-short-enums \
201	-finline-limit=64 \
202	-Wa,--noexecstack \
203	-U_FORTIFY_SOURCE \
204	-Wno-extra \
205	-Wno-ignored-qualifiers \
206	-Wno-type-limits \
207	-Wno-unused-but-set-variable \
208	-Os \
209	-fno-ident \
210	-fdata-sections \
211	-ffunction-sections \
212	-fomit-frame-pointer \
213	-funwind-tables
214
215MY_DEFS_Release := \
216	'-DV8_DEPRECATION_WARNINGS' \
217	'-D_FILE_OFFSET_BITS=64' \
218	'-DNO_TCMALLOC' \
219	'-DDISABLE_NACL' \
220	'-DCHROMIUM_BUILD' \
221	'-DUSE_LIBJPEG_TURBO=1' \
222	'-DENABLE_WEBRTC=1' \
223	'-DUSE_PROPRIETARY_CODECS' \
224	'-DENABLE_BROWSER_CDMS' \
225	'-DENABLE_CONFIGURATION_POLICY' \
226	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
227	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
228	'-DENABLE_EGLIMAGE=1' \
229	'-DCLD_VERSION=1' \
230	'-DENABLE_PRINTING=1' \
231	'-DENABLE_MANAGED_USERS=1' \
232	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
233	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
234	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
235	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
236	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
237	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
238	'-DVIDEO_HOLE=1' \
239	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
240	'-DSFNTLY_NO_EXCEPTION' \
241	'-DU_USING_ICU_NAMESPACE=0' \
242	'-DU_ENABLE_DYLOAD=0' \
243	'-DUSE_OPENSSL=1' \
244	'-DUSE_OPENSSL_CERTS=1' \
245	'-D__STDC_CONSTANT_MACROS' \
246	'-D__STDC_FORMAT_MACROS' \
247	'-DANDROID' \
248	'-D__GNU_SOURCE=1' \
249	'-DUSE_STLPORT=1' \
250	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
251	'-DCHROME_BUILD_ID=""' \
252	'-DNDEBUG' \
253	'-DNVALGRIND' \
254	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
255	'-D_FORTIFY_SOURCE=2'
256
257
258# Include paths placed before CFLAGS/CPPFLAGS
259LOCAL_C_INCLUDES_Release := \
260	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
261	$(gyp_shared_intermediate_dir) \
262	$(LOCAL_PATH)/third_party/sfntly/cpp/src \
263	$(LOCAL_PATH) \
264	$(PWD)/external/icu/icu4c/source/common \
265	$(PWD)/external/icu/icu4c/source/i18n \
266	$(PWD)/frameworks/wilhelm/include \
267	$(PWD)/bionic \
268	$(PWD)/external/stlport/stlport
269
270
271# Flags passed to only C++ (and not C) files.
272LOCAL_CPPFLAGS_Release := \
273	-fno-exceptions \
274	-fno-rtti \
275	-fno-threadsafe-statics \
276	-fvisibility-inlines-hidden \
277	-Wsign-compare \
278	-Wno-uninitialized \
279	-std=gnu++11 \
280	-Wno-narrowing \
281	-Wno-literal-suffix \
282	-Wno-non-virtual-dtor \
283	-Wno-sign-promo
284
285
286LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
287LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
288LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
289LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
290### Rules for final target.
291
292LOCAL_SHARED_LIBRARIES := \
293	libstlport \
294	libdl
295
296# Add target alias to "gyp_all_modules" target.
297.PHONY: gyp_all_modules
298gyp_all_modules: third_party_sfntly_sfntly_gyp
299
300# Alias gyp target name.
301.PHONY: sfntly
302sfntly: third_party_sfntly_sfntly_gyp
303
304include $(BUILD_STATIC_LIBRARY)
305