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