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_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/harfbuzz-ng/src/hb-blob.cc \
28	third_party/harfbuzz-ng/src/hb-buffer.cc \
29	third_party/harfbuzz-ng/src/hb-buffer-serialize.cc \
30	third_party/harfbuzz-ng/src/hb-common.cc \
31	third_party/harfbuzz-ng/src/hb-face.cc \
32	third_party/harfbuzz-ng/src/hb-fallback-shape.cc \
33	third_party/harfbuzz-ng/src/hb-font.cc \
34	third_party/harfbuzz-ng/src/hb-icu.cc \
35	third_party/harfbuzz-ng/src/hb-ot-layout.cc \
36	third_party/harfbuzz-ng/src/hb-ot-map.cc \
37	third_party/harfbuzz-ng/src/hb-ot-shape.cc \
38	third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic.cc \
39	third_party/harfbuzz-ng/src/hb-ot-shape-complex-default.cc \
40	third_party/harfbuzz-ng/src/hb-ot-shape-complex-hangul.cc \
41	third_party/harfbuzz-ng/src/hb-ot-shape-complex-hebrew.cc \
42	third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc \
43	third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic-table.cc \
44	third_party/harfbuzz-ng/src/hb-ot-shape-complex-myanmar.cc \
45	third_party/harfbuzz-ng/src/hb-ot-shape-complex-sea.cc \
46	third_party/harfbuzz-ng/src/hb-ot-shape-complex-thai.cc \
47	third_party/harfbuzz-ng/src/hb-ot-shape-complex-tibetan.cc \
48	third_party/harfbuzz-ng/src/hb-ot-shape-fallback.cc \
49	third_party/harfbuzz-ng/src/hb-ot-shape-normalize.cc \
50	third_party/harfbuzz-ng/src/hb-ot-tag.cc \
51	third_party/harfbuzz-ng/src/hb-set.cc \
52	third_party/harfbuzz-ng/src/hb-shape.cc \
53	third_party/harfbuzz-ng/src/hb-shape-plan.cc \
54	third_party/harfbuzz-ng/src/hb-shaper.cc \
55	third_party/harfbuzz-ng/src/hb-unicode.cc \
56	third_party/harfbuzz-ng/src/hb-warning.cc
57
58
59# Flags passed to both C and C++ files.
60MY_CFLAGS_Debug := \
61	--param=ssp-buffer-size=4 \
62	-fno-strict-aliasing \
63	-Wno-unused-parameter \
64	-Wno-missing-field-initializers \
65	-fvisibility=hidden \
66	-pipe \
67	-fPIC \
68	-Wno-unused-local-typedefs \
69	-Wno-format \
70	-msse2 \
71	-mfpmath=sse \
72	-mmmx \
73	-m32 \
74	-ffunction-sections \
75	-funwind-tables \
76	-g \
77	-fno-short-enums \
78	-finline-limit=64 \
79	-Wa,--noexecstack \
80	-U_FORTIFY_SOURCE \
81	-Wno-extra \
82	-Wno-ignored-qualifiers \
83	-Wno-type-limits \
84	-Wno-unused-but-set-variable \
85	-fno-stack-protector \
86	-Wno-address \
87	-Wno-format-security \
88	-Wno-return-type \
89	-Wno-sequence-point \
90	-Os \
91	-g \
92	-gdwarf-4 \
93	-fdata-sections \
94	-ffunction-sections \
95	-fomit-frame-pointer \
96	-funwind-tables
97
98MY_DEFS_Debug := \
99	'-DV8_DEPRECATION_WARNINGS' \
100	'-D_FILE_OFFSET_BITS=64' \
101	'-DNO_TCMALLOC' \
102	'-DDISABLE_NACL' \
103	'-DCHROMIUM_BUILD' \
104	'-DUSE_LIBJPEG_TURBO=1' \
105	'-DENABLE_WEBRTC=1' \
106	'-DUSE_PROPRIETARY_CODECS' \
107	'-DENABLE_BROWSER_CDMS' \
108	'-DENABLE_CONFIGURATION_POLICY' \
109	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
110	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
111	'-DENABLE_EGLIMAGE=1' \
112	'-DCLD_VERSION=1' \
113	'-DENABLE_PRINTING=1' \
114	'-DENABLE_MANAGED_USERS=1' \
115	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
116	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
117	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
118	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
119	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
120	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
121	'-DVIDEO_HOLE=1' \
122	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
123	'-DHAVE_OT' \
124	'-DHAVE_ICU' \
125	'-DHAVE_ICU_BUILTIN' \
126	'-DHB_NO_MT' \
127	'-DU_USING_ICU_NAMESPACE=0' \
128	'-DU_ENABLE_DYLOAD=0' \
129	'-DUSE_OPENSSL=1' \
130	'-DUSE_OPENSSL_CERTS=1' \
131	'-DANDROID' \
132	'-D__GNU_SOURCE=1' \
133	'-DUSE_STLPORT=1' \
134	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
135	'-DCHROME_BUILD_ID=""' \
136	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
137	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
138	'-D_DEBUG'
139
140
141# Include paths placed before CFLAGS/CPPFLAGS
142LOCAL_C_INCLUDES_Debug := \
143	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
144	$(gyp_shared_intermediate_dir) \
145	$(LOCAL_PATH)/third_party/harfbuzz-ng/src \
146	$(PWD)/external/icu/icu4c/source/common \
147	$(PWD)/external/icu/icu4c/source/i18n \
148	$(PWD)/frameworks/wilhelm/include \
149	$(PWD)/bionic \
150	$(PWD)/external/stlport/stlport
151
152
153# Flags passed to only C++ (and not C) files.
154LOCAL_CPPFLAGS_Debug := \
155	-fno-exceptions \
156	-fno-rtti \
157	-fno-threadsafe-statics \
158	-fvisibility-inlines-hidden \
159	-Wno-deprecated \
160	-std=gnu++11 \
161	-Wno-narrowing \
162	-Wno-literal-suffix \
163	-Wno-non-virtual-dtor \
164	-Wno-sign-promo \
165	-Wno-non-virtual-dtor
166
167
168# Flags passed to both C and C++ files.
169MY_CFLAGS_Release := \
170	--param=ssp-buffer-size=4 \
171	-fno-strict-aliasing \
172	-Wno-unused-parameter \
173	-Wno-missing-field-initializers \
174	-fvisibility=hidden \
175	-pipe \
176	-fPIC \
177	-Wno-unused-local-typedefs \
178	-Wno-format \
179	-msse2 \
180	-mfpmath=sse \
181	-mmmx \
182	-m32 \
183	-ffunction-sections \
184	-funwind-tables \
185	-g \
186	-fno-short-enums \
187	-finline-limit=64 \
188	-Wa,--noexecstack \
189	-U_FORTIFY_SOURCE \
190	-Wno-extra \
191	-Wno-ignored-qualifiers \
192	-Wno-type-limits \
193	-Wno-unused-but-set-variable \
194	-fno-stack-protector \
195	-Wno-address \
196	-Wno-format-security \
197	-Wno-return-type \
198	-Wno-sequence-point \
199	-Os \
200	-fno-ident \
201	-fdata-sections \
202	-ffunction-sections \
203	-fomit-frame-pointer \
204	-funwind-tables
205
206MY_DEFS_Release := \
207	'-DV8_DEPRECATION_WARNINGS' \
208	'-D_FILE_OFFSET_BITS=64' \
209	'-DNO_TCMALLOC' \
210	'-DDISABLE_NACL' \
211	'-DCHROMIUM_BUILD' \
212	'-DUSE_LIBJPEG_TURBO=1' \
213	'-DENABLE_WEBRTC=1' \
214	'-DUSE_PROPRIETARY_CODECS' \
215	'-DENABLE_BROWSER_CDMS' \
216	'-DENABLE_CONFIGURATION_POLICY' \
217	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
218	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
219	'-DENABLE_EGLIMAGE=1' \
220	'-DCLD_VERSION=1' \
221	'-DENABLE_PRINTING=1' \
222	'-DENABLE_MANAGED_USERS=1' \
223	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
224	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
225	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
226	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
227	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
228	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
229	'-DVIDEO_HOLE=1' \
230	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
231	'-DHAVE_OT' \
232	'-DHAVE_ICU' \
233	'-DHAVE_ICU_BUILTIN' \
234	'-DHB_NO_MT' \
235	'-DU_USING_ICU_NAMESPACE=0' \
236	'-DU_ENABLE_DYLOAD=0' \
237	'-DUSE_OPENSSL=1' \
238	'-DUSE_OPENSSL_CERTS=1' \
239	'-DANDROID' \
240	'-D__GNU_SOURCE=1' \
241	'-DUSE_STLPORT=1' \
242	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
243	'-DCHROME_BUILD_ID=""' \
244	'-DNDEBUG' \
245	'-DNVALGRIND' \
246	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
247
248
249# Include paths placed before CFLAGS/CPPFLAGS
250LOCAL_C_INCLUDES_Release := \
251	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
252	$(gyp_shared_intermediate_dir) \
253	$(LOCAL_PATH)/third_party/harfbuzz-ng/src \
254	$(PWD)/external/icu/icu4c/source/common \
255	$(PWD)/external/icu/icu4c/source/i18n \
256	$(PWD)/frameworks/wilhelm/include \
257	$(PWD)/bionic \
258	$(PWD)/external/stlport/stlport
259
260
261# Flags passed to only C++ (and not C) files.
262LOCAL_CPPFLAGS_Release := \
263	-fno-exceptions \
264	-fno-rtti \
265	-fno-threadsafe-statics \
266	-fvisibility-inlines-hidden \
267	-Wno-deprecated \
268	-std=gnu++11 \
269	-Wno-narrowing \
270	-Wno-literal-suffix \
271	-Wno-non-virtual-dtor \
272	-Wno-sign-promo \
273	-Wno-non-virtual-dtor
274
275
276LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
277LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
278LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
279LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
280### Rules for final target.
281
282LOCAL_SHARED_LIBRARIES := \
283	libstlport \
284	libdl
285
286# Add target alias to "gyp_all_modules" target.
287.PHONY: gyp_all_modules
288gyp_all_modules: third_party_harfbuzz_ng_harfbuzz_ng_gyp
289
290# Alias gyp target name.
291.PHONY: harfbuzz-ng
292harfbuzz-ng: third_party_harfbuzz_ng_harfbuzz_ng_gyp
293
294include $(BUILD_STATIC_LIBRARY)
295