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