1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_harfbuzz_ng_harfbuzz_ng_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/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/harfbuzz-ng/src/hb-blob.cc \
28	third_party/harfbuzz-ng/src/hb-buffer-serialize.cc \
29	third_party/harfbuzz-ng/src/hb-buffer.cc \
30	third_party/harfbuzz-ng/src/hb-common.cc \
31	third_party/harfbuzz-ng/src/hb-fallback-shape.cc \
32	third_party/harfbuzz-ng/src/hb-font.cc \
33	third_party/harfbuzz-ng/src/hb-icu.cc \
34	third_party/harfbuzz-ng/src/hb-ot-layout.cc \
35	third_party/harfbuzz-ng/src/hb-ot-map.cc \
36	third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic.cc \
37	third_party/harfbuzz-ng/src/hb-ot-shape-complex-default.cc \
38	third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic-table.cc \
39	third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc \
40	third_party/harfbuzz-ng/src/hb-ot-shape-complex-myanmar.cc \
41	third_party/harfbuzz-ng/src/hb-ot-shape-complex-sea.cc \
42	third_party/harfbuzz-ng/src/hb-ot-shape-complex-thai.cc \
43	third_party/harfbuzz-ng/src/hb-ot-shape-fallback.cc \
44	third_party/harfbuzz-ng/src/hb-ot-shape-normalize.cc \
45	third_party/harfbuzz-ng/src/hb-ot-shape.cc \
46	third_party/harfbuzz-ng/src/hb-ot-tag.cc \
47	third_party/harfbuzz-ng/src/hb-set.cc \
48	third_party/harfbuzz-ng/src/hb-shape-plan.cc \
49	third_party/harfbuzz-ng/src/hb-shape.cc \
50	third_party/harfbuzz-ng/src/hb-shaper.cc \
51	third_party/harfbuzz-ng/src/hb-tt-font.cc \
52	third_party/harfbuzz-ng/src/hb-unicode.cc \
53	third_party/harfbuzz-ng/src/hb-warning.cc
54
55
56# Flags passed to both C and C++ files.
57MY_CFLAGS_Debug := \
58	-fstack-protector \
59	--param=ssp-buffer-size=4 \
60	-fno-exceptions \
61	-fno-strict-aliasing \
62	-Wno-unused-parameter \
63	-Wno-missing-field-initializers \
64	-fvisibility=hidden \
65	-pipe \
66	-fPIC \
67	-Wno-format \
68	-fno-tree-sra \
69	-fuse-ld=gold \
70	-Wno-psabi \
71	-ffunction-sections \
72	-funwind-tables \
73	-g \
74	-fstack-protector \
75	-fno-short-enums \
76	-finline-limit=64 \
77	-Wa,--noexecstack \
78	-U_FORTIFY_SOURCE \
79	-Wno-extra \
80	-Wno-ignored-qualifiers \
81	-Wno-type-limits \
82	-Wno-address \
83	-Wno-format-security \
84	-Wno-return-type \
85	-Wno-sequence-point \
86	-Os \
87	-g \
88	-fomit-frame-pointer \
89	-fdata-sections \
90	-ffunction-sections
91
92MY_DEFS_Debug := \
93	'-DANGLE_DX11' \
94	'-D_FILE_OFFSET_BITS=64' \
95	'-DNO_TCMALLOC' \
96	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
97	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
98	'-DDISABLE_NACL' \
99	'-DCHROMIUM_BUILD' \
100	'-DUSE_LIBJPEG_TURBO=1' \
101	'-DUSE_PROPRIETARY_CODECS' \
102	'-DENABLE_CONFIGURATION_POLICY' \
103	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
104	'-DTRACING_IS_OFFICIAL_BUILD=1' \
105	'-DENABLE_GPU=1' \
106	'-DUSE_OPENSSL=1' \
107	'-DENABLE_EGLIMAGE=1' \
108	'-DENABLE_PRINTING=1' \
109	'-DHAVE_OT' \
110	'-DHAVE_ICU' \
111	'-DHB_NO_MT' \
112	'-DU_USING_ICU_NAMESPACE=0' \
113	'-DANDROID' \
114	'-D__GNU_SOURCE=1' \
115	'-DUSE_STLPORT=1' \
116	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
117	'-DCHROME_BUILD_ID=""' \
118	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
119	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
120	'-D_DEBUG'
121
122
123# Include paths placed before CFLAGS/CPPFLAGS
124LOCAL_C_INCLUDES_Debug := \
125	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
126	$(LOCAL_PATH)/third_party/harfbuzz-ng/src \
127	$(PWD)/external/icu4c/common \
128	$(PWD)/external/icu4c/i18n \
129	$(PWD)/frameworks/wilhelm/include \
130	$(PWD)/bionic \
131	$(PWD)/external/stlport/stlport
132
133
134# Flags passed to only C++ (and not C) files.
135LOCAL_CPPFLAGS_Debug := \
136	-fno-rtti \
137	-fno-threadsafe-statics \
138	-fvisibility-inlines-hidden \
139	-Wno-deprecated \
140	-Wno-abi \
141	-Wno-error=c++0x-compat \
142	-Wno-non-virtual-dtor \
143	-Wno-sign-promo \
144	-Wno-non-virtual-dtor
145
146
147# Flags passed to both C and C++ files.
148MY_CFLAGS_Release := \
149	-fstack-protector \
150	--param=ssp-buffer-size=4 \
151	-fno-exceptions \
152	-fno-strict-aliasing \
153	-Wno-unused-parameter \
154	-Wno-missing-field-initializers \
155	-fvisibility=hidden \
156	-pipe \
157	-fPIC \
158	-Wno-format \
159	-fno-tree-sra \
160	-fuse-ld=gold \
161	-Wno-psabi \
162	-ffunction-sections \
163	-funwind-tables \
164	-g \
165	-fstack-protector \
166	-fno-short-enums \
167	-finline-limit=64 \
168	-Wa,--noexecstack \
169	-U_FORTIFY_SOURCE \
170	-Wno-extra \
171	-Wno-ignored-qualifiers \
172	-Wno-type-limits \
173	-Wno-address \
174	-Wno-format-security \
175	-Wno-return-type \
176	-Wno-sequence-point \
177	-Os \
178	-fno-ident \
179	-fdata-sections \
180	-ffunction-sections \
181	-fomit-frame-pointer
182
183MY_DEFS_Release := \
184	'-DANGLE_DX11' \
185	'-D_FILE_OFFSET_BITS=64' \
186	'-DNO_TCMALLOC' \
187	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
188	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
189	'-DDISABLE_NACL' \
190	'-DCHROMIUM_BUILD' \
191	'-DUSE_LIBJPEG_TURBO=1' \
192	'-DUSE_PROPRIETARY_CODECS' \
193	'-DENABLE_CONFIGURATION_POLICY' \
194	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
195	'-DTRACING_IS_OFFICIAL_BUILD=1' \
196	'-DENABLE_GPU=1' \
197	'-DUSE_OPENSSL=1' \
198	'-DENABLE_EGLIMAGE=1' \
199	'-DENABLE_PRINTING=1' \
200	'-DHAVE_OT' \
201	'-DHAVE_ICU' \
202	'-DHB_NO_MT' \
203	'-DU_USING_ICU_NAMESPACE=0' \
204	'-DANDROID' \
205	'-D__GNU_SOURCE=1' \
206	'-DUSE_STLPORT=1' \
207	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
208	'-DCHROME_BUILD_ID=""' \
209	'-DNDEBUG' \
210	'-DNVALGRIND' \
211	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
212
213
214# Include paths placed before CFLAGS/CPPFLAGS
215LOCAL_C_INCLUDES_Release := \
216	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
217	$(LOCAL_PATH)/third_party/harfbuzz-ng/src \
218	$(PWD)/external/icu4c/common \
219	$(PWD)/external/icu4c/i18n \
220	$(PWD)/frameworks/wilhelm/include \
221	$(PWD)/bionic \
222	$(PWD)/external/stlport/stlport
223
224
225# Flags passed to only C++ (and not C) files.
226LOCAL_CPPFLAGS_Release := \
227	-fno-rtti \
228	-fno-threadsafe-statics \
229	-fvisibility-inlines-hidden \
230	-Wno-deprecated \
231	-Wno-abi \
232	-Wno-error=c++0x-compat \
233	-Wno-non-virtual-dtor \
234	-Wno-sign-promo \
235	-Wno-non-virtual-dtor
236
237
238LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
239LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
240LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
241### Rules for final target.
242
243LOCAL_LDFLAGS_Debug := \
244	-Wl,-z,now \
245	-Wl,-z,relro \
246	-Wl,-z,noexecstack \
247	-fPIC \
248	-Wl,-z,relro \
249	-Wl,-z,now \
250	-fuse-ld=gold \
251	-nostdlib \
252	-Wl,--no-undefined \
253	-Wl,--exclude-libs=ALL \
254	-Wl,--icf=safe \
255	-Wl,--fatal-warnings \
256	-Wl,--gc-sections \
257	-Wl,--warn-shared-textrel \
258	-Wl,-O1 \
259	-Wl,--as-needed
260
261
262LOCAL_LDFLAGS_Release := \
263	-Wl,-z,now \
264	-Wl,-z,relro \
265	-Wl,-z,noexecstack \
266	-fPIC \
267	-Wl,-z,relro \
268	-Wl,-z,now \
269	-fuse-ld=gold \
270	-nostdlib \
271	-Wl,--no-undefined \
272	-Wl,--exclude-libs=ALL \
273	-Wl,--icf=safe \
274	-Wl,-O1 \
275	-Wl,--as-needed \
276	-Wl,--gc-sections \
277	-Wl,--fatal-warnings \
278	-Wl,--warn-shared-textrel
279
280
281LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
282
283LOCAL_STATIC_LIBRARIES :=
284
285# Enable grouping to fix circular references
286LOCAL_GROUP_STATIC_LIBRARIES := true
287
288LOCAL_SHARED_LIBRARIES := \
289	libstlport \
290	libdl
291
292# Add target alias to "gyp_all_modules" target.
293.PHONY: gyp_all_modules
294gyp_all_modules: third_party_harfbuzz_ng_harfbuzz_ng_gyp
295
296# Alias gyp target name.
297.PHONY: harfbuzz-ng
298harfbuzz-ng: third_party_harfbuzz_ng_harfbuzz_ng_gyp
299
300include $(BUILD_STATIC_LIBRARY)
301