• 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	-fstack-protector \
63	--param=ssp-buffer-size=4 \
64	-fno-exceptions \
65	-fno-strict-aliasing \
66	-Wno-unused-parameter \
67	-Wno-missing-field-initializers \
68	-fvisibility=hidden \
69	-pipe \
70	-fPIC \
71	-Wno-unused-local-typedefs \
72	-Wno-format \
73	-fno-tree-sra \
74	-fno-partial-inlining \
75	-fno-early-inlining \
76	-fno-tree-copy-prop \
77	-fno-tree-loop-optimize \
78	-fno-move-loop-invariants \
79	-fno-caller-saves \
80	-Wno-psabi \
81	-ffunction-sections \
82	-funwind-tables \
83	-g \
84	-fstack-protector \
85	-fno-short-enums \
86	-finline-limit=64 \
87	-Wa,--noexecstack \
88	-U_FORTIFY_SOURCE \
89	-Wno-extra \
90	-Wno-ignored-qualifiers \
91	-Wno-type-limits \
92	-Wno-unused-but-set-variable \
93	-Wno-address \
94	-Wno-format-security \
95	-Wno-return-type \
96	-Wno-sequence-point \
97	-Os \
98	-g \
99	-fdata-sections \
100	-ffunction-sections \
101	-fomit-frame-pointer \
102	-funwind-tables
103
104MY_DEFS_Debug := \
105	'-DV8_DEPRECATION_WARNINGS' \
106	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
107	'-D_FILE_OFFSET_BITS=64' \
108	'-DNO_TCMALLOC' \
109	'-DDISABLE_NACL' \
110	'-DCHROMIUM_BUILD' \
111	'-DUSE_LIBJPEG_TURBO=1' \
112	'-DENABLE_WEBRTC=1' \
113	'-DUSE_PROPRIETARY_CODECS' \
114	'-DENABLE_BROWSER_CDMS' \
115	'-DENABLE_CONFIGURATION_POLICY' \
116	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
117	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
118	'-DENABLE_EGLIMAGE=1' \
119	'-DCLD_VERSION=1' \
120	'-DENABLE_PRINTING=1' \
121	'-DENABLE_MANAGED_USERS=1' \
122	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
123	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
124	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
125	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
126	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
127	'-DVIDEO_HOLE=1' \
128	'-DHAVE_OT' \
129	'-DHAVE_ICU' \
130	'-DHAVE_ICU_BUILTIN' \
131	'-DHB_NO_MT' \
132	'-DU_USING_ICU_NAMESPACE=0' \
133	'-DUSE_OPENSSL=1' \
134	'-DUSE_OPENSSL_CERTS=1' \
135	'-DANDROID' \
136	'-D__GNU_SOURCE=1' \
137	'-DUSE_STLPORT=1' \
138	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
139	'-DCHROME_BUILD_ID=""' \
140	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
141	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
142	'-D_DEBUG'
143
144
145# Include paths placed before CFLAGS/CPPFLAGS
146LOCAL_C_INCLUDES_Debug := \
147	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
148	$(gyp_shared_intermediate_dir) \
149	$(LOCAL_PATH)/third_party/harfbuzz-ng/src \
150	$(PWD)/external/icu/icu4c/source/common \
151	$(PWD)/external/icu/icu4c/source/i18n \
152	$(PWD)/frameworks/wilhelm/include \
153	$(PWD)/bionic \
154	$(PWD)/external/stlport/stlport
155
156
157# Flags passed to only C++ (and not C) files.
158LOCAL_CPPFLAGS_Debug := \
159	-fno-rtti \
160	-fno-threadsafe-statics \
161	-fvisibility-inlines-hidden \
162	-Wno-deprecated \
163	-Wno-abi \
164	-Wno-non-virtual-dtor \
165	-Wno-sign-promo \
166	-Wno-non-virtual-dtor
167
168
169LOCAL_FDO_SUPPORT_Debug := false
170
171# Flags passed to both C and C++ files.
172MY_CFLAGS_Release := \
173	-fstack-protector \
174	--param=ssp-buffer-size=4 \
175	-fno-exceptions \
176	-fno-strict-aliasing \
177	-Wno-unused-parameter \
178	-Wno-missing-field-initializers \
179	-fvisibility=hidden \
180	-pipe \
181	-fPIC \
182	-Wno-unused-local-typedefs \
183	-Wno-format \
184	-fno-tree-sra \
185	-fno-partial-inlining \
186	-fno-early-inlining \
187	-fno-tree-copy-prop \
188	-fno-tree-loop-optimize \
189	-fno-move-loop-invariants \
190	-fno-caller-saves \
191	-Wno-psabi \
192	-ffunction-sections \
193	-funwind-tables \
194	-g \
195	-fstack-protector \
196	-fno-short-enums \
197	-finline-limit=64 \
198	-Wa,--noexecstack \
199	-U_FORTIFY_SOURCE \
200	-Wno-extra \
201	-Wno-ignored-qualifiers \
202	-Wno-type-limits \
203	-Wno-unused-but-set-variable \
204	-Wno-address \
205	-Wno-format-security \
206	-Wno-return-type \
207	-Wno-sequence-point \
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	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
218	'-D_FILE_OFFSET_BITS=64' \
219	'-DNO_TCMALLOC' \
220	'-DDISABLE_NACL' \
221	'-DCHROMIUM_BUILD' \
222	'-DUSE_LIBJPEG_TURBO=1' \
223	'-DENABLE_WEBRTC=1' \
224	'-DUSE_PROPRIETARY_CODECS' \
225	'-DENABLE_BROWSER_CDMS' \
226	'-DENABLE_CONFIGURATION_POLICY' \
227	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
228	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
229	'-DENABLE_EGLIMAGE=1' \
230	'-DCLD_VERSION=1' \
231	'-DENABLE_PRINTING=1' \
232	'-DENABLE_MANAGED_USERS=1' \
233	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
234	'-DDATA_REDUCTION_DEV_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	'-DHAVE_OT' \
240	'-DHAVE_ICU' \
241	'-DHAVE_ICU_BUILTIN' \
242	'-DHB_NO_MT' \
243	'-DU_USING_ICU_NAMESPACE=0' \
244	'-DUSE_OPENSSL=1' \
245	'-DUSE_OPENSSL_CERTS=1' \
246	'-DANDROID' \
247	'-D__GNU_SOURCE=1' \
248	'-DUSE_STLPORT=1' \
249	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
250	'-DCHROME_BUILD_ID=""' \
251	'-DNDEBUG' \
252	'-DNVALGRIND' \
253	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
254
255
256# Include paths placed before CFLAGS/CPPFLAGS
257LOCAL_C_INCLUDES_Release := \
258	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
259	$(gyp_shared_intermediate_dir) \
260	$(LOCAL_PATH)/third_party/harfbuzz-ng/src \
261	$(PWD)/external/icu/icu4c/source/common \
262	$(PWD)/external/icu/icu4c/source/i18n \
263	$(PWD)/frameworks/wilhelm/include \
264	$(PWD)/bionic \
265	$(PWD)/external/stlport/stlport
266
267
268# Flags passed to only C++ (and not C) files.
269LOCAL_CPPFLAGS_Release := \
270	-fno-rtti \
271	-fno-threadsafe-statics \
272	-fvisibility-inlines-hidden \
273	-Wno-deprecated \
274	-Wno-abi \
275	-Wno-non-virtual-dtor \
276	-Wno-sign-promo \
277	-Wno-non-virtual-dtor
278
279
280LOCAL_FDO_SUPPORT_Release := false
281
282LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
283LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
284LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
285LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
286LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
287### Rules for final target.
288
289LOCAL_LDFLAGS_Debug := \
290	-Wl,-z,now \
291	-Wl,-z,relro \
292	-Wl,--fatal-warnings \
293	-Wl,-z,noexecstack \
294	-fPIC \
295	-Wl,-z,relro \
296	-Wl,-z,now \
297	-fuse-ld=gold \
298	-nostdlib \
299	-Wl,--no-undefined \
300	-Wl,--exclude-libs=ALL \
301	-Wl,--icf=safe \
302	-Wl,--warn-shared-textrel \
303	-Wl,-O1 \
304	-Wl,--as-needed
305
306
307LOCAL_LDFLAGS_Release := \
308	-Wl,-z,now \
309	-Wl,-z,relro \
310	-Wl,--fatal-warnings \
311	-Wl,-z,noexecstack \
312	-fPIC \
313	-Wl,-z,relro \
314	-Wl,-z,now \
315	-fuse-ld=gold \
316	-nostdlib \
317	-Wl,--no-undefined \
318	-Wl,--exclude-libs=ALL \
319	-Wl,--icf=safe \
320	-Wl,-O1 \
321	-Wl,--as-needed \
322	-Wl,--gc-sections \
323	-Wl,--warn-shared-textrel
324
325
326LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
327
328LOCAL_STATIC_LIBRARIES :=
329
330# Enable grouping to fix circular references
331LOCAL_GROUP_STATIC_LIBRARIES := true
332
333LOCAL_SHARED_LIBRARIES := \
334	libstlport \
335	libdl
336
337# Add target alias to "gyp_all_modules" target.
338.PHONY: gyp_all_modules
339gyp_all_modules: third_party_harfbuzz_ng_harfbuzz_ng_gyp
340
341# Alias gyp target name.
342.PHONY: harfbuzz-ng
343harfbuzz-ng: third_party_harfbuzz_ng_harfbuzz_ng_gyp
344
345include $(BUILD_STATIC_LIBRARY)
346