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