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