harfbuzz-ng.target.linux-mips.mk revision a1401311d1ab56c4ed0a474bd38c108f75cb0cd9
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	-fstack-protector \
60	--param=ssp-buffer-size=4 \
61	 \
62	-fno-exceptions \
63	-fno-strict-aliasing \
64	-Wno-unused-parameter \
65	-Wno-missing-field-initializers \
66	-fvisibility=hidden \
67	-pipe \
68	-fPIC \
69	-Wno-format \
70	-EL \
71	-mhard-float \
72	-ffunction-sections \
73	-funwind-tables \
74	-g \
75	-fstack-protector \
76	-fno-short-enums \
77	-finline-limit=64 \
78	-Wa,--noexecstack \
79	-U_FORTIFY_SOURCE \
80	-Wno-extra \
81	-Wno-ignored-qualifiers \
82	-Wno-type-limits \
83	-Wno-unused-but-set-variable \
84	-Wno-address \
85	-Wno-format-security \
86	-Wno-return-type \
87	-Wno-sequence-point \
88	-Os \
89	-g \
90	-fomit-frame-pointer \
91	-fdata-sections \
92	-ffunction-sections \
93	-funwind-tables
94
95MY_DEFS_Debug := \
96	'-DV8_DEPRECATION_WARNINGS' \
97	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
98	'-D_FILE_OFFSET_BITS=64' \
99	'-DNO_TCMALLOC' \
100	'-DDISABLE_NACL' \
101	'-DCHROMIUM_BUILD' \
102	'-DUSE_LIBJPEG_TURBO=1' \
103	'-DUSE_PROPRIETARY_CODECS' \
104	'-DENABLE_CONFIGURATION_POLICY' \
105	'-DENABLE_NEW_GAMEPAD_API=1' \
106	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
107	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
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	'-DUSE_OPENSSL=1' \
117	'-DANDROID' \
118	'-D__GNU_SOURCE=1' \
119	'-DUSE_STLPORT=1' \
120	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
121	'-DCHROME_BUILD_ID=""' \
122	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
123	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
124	'-D_DEBUG'
125
126
127# Include paths placed before CFLAGS/CPPFLAGS
128LOCAL_C_INCLUDES_Debug := \
129	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
130	$(LOCAL_PATH)/third_party/harfbuzz-ng/src \
131	$(PWD)/external/icu4c/common \
132	$(PWD)/external/icu4c/i18n \
133	$(PWD)/frameworks/wilhelm/include \
134	$(PWD)/bionic \
135	$(PWD)/external/stlport/stlport
136
137
138# Flags passed to only C++ (and not C) files.
139LOCAL_CPPFLAGS_Debug := \
140	-fno-rtti \
141	-fno-threadsafe-statics \
142	-fvisibility-inlines-hidden \
143	-Wno-deprecated \
144	-Wno-uninitialized \
145	-Wno-non-virtual-dtor \
146	-Wno-sign-promo \
147	-Wno-non-virtual-dtor
148
149
150# Flags passed to both C and C++ files.
151MY_CFLAGS_Release := \
152	-fstack-protector \
153	--param=ssp-buffer-size=4 \
154	 \
155	-fno-exceptions \
156	-fno-strict-aliasing \
157	-Wno-unused-parameter \
158	-Wno-missing-field-initializers \
159	-fvisibility=hidden \
160	-pipe \
161	-fPIC \
162	-Wno-format \
163	-EL \
164	-mhard-float \
165	-ffunction-sections \
166	-funwind-tables \
167	-g \
168	-fstack-protector \
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	-Wno-unused-but-set-variable \
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	-funwind-tables
187
188MY_DEFS_Release := \
189	'-DV8_DEPRECATION_WARNINGS' \
190	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
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	'-DENABLE_NEW_GAMEPAD_API=1' \
199	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
200	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
201	'-DENABLE_EGLIMAGE=1' \
202	'-DCLD_VERSION=1' \
203	'-DENABLE_PRINTING=1' \
204	'-DENABLE_MANAGED_USERS=1' \
205	'-DHAVE_OT' \
206	'-DHAVE_ICU' \
207	'-DHB_NO_MT' \
208	'-DU_USING_ICU_NAMESPACE=0' \
209	'-DUSE_OPENSSL=1' \
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-uninitialized \
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))
246LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
247### Rules for final target.
248
249LOCAL_LDFLAGS_Debug := \
250	-Wl,--fatal-warnings \
251	-Wl,-z,now \
252	-Wl,-z,relro \
253	-Wl,-z,noexecstack \
254	-fPIC \
255	-EL \
256	-Wl,--no-keep-memory \
257	-nostdlib \
258	-Wl,--no-undefined \
259	-Wl,--exclude-libs=ALL \
260	-Wl,--gc-sections \
261	-Wl,--warn-shared-textrel \
262	-Wl,-O1 \
263	-Wl,--as-needed
264
265
266LOCAL_LDFLAGS_Release := \
267	-Wl,--fatal-warnings \
268	-Wl,-z,now \
269	-Wl,-z,relro \
270	-Wl,-z,noexecstack \
271	-fPIC \
272	-EL \
273	-Wl,--no-keep-memory \
274	-nostdlib \
275	-Wl,--no-undefined \
276	-Wl,--exclude-libs=ALL \
277	-Wl,-O1 \
278	-Wl,--as-needed \
279	-Wl,--gc-sections \
280	-Wl,--warn-shared-textrel
281
282
283LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
284
285LOCAL_STATIC_LIBRARIES :=
286
287# Enable grouping to fix circular references
288LOCAL_GROUP_STATIC_LIBRARIES := true
289
290LOCAL_SHARED_LIBRARIES := \
291	libstlport \
292	libdl
293
294# Add target alias to "gyp_all_modules" target.
295.PHONY: gyp_all_modules
296gyp_all_modules: third_party_harfbuzz_ng_harfbuzz_ng_gyp
297
298# Alias gyp target name.
299.PHONY: harfbuzz-ng
300harfbuzz-ng: third_party_harfbuzz_ng_harfbuzz_ng_gyp
301
302include $(BUILD_STATIC_LIBRARY)
303