harfbuzz-ng.target.linux-mips.mk revision 5e3f23d412006dc4db4e659864679f29341e113f
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-fallback-shape.cc \
32	third_party/harfbuzz-ng/src/hb-font.cc \
33	third_party/harfbuzz-ng/src/hb-icu.cc \
34	third_party/harfbuzz-ng/src/hb-ot-layout.cc \
35	third_party/harfbuzz-ng/src/hb-ot-map.cc \
36	third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic.cc \
37	third_party/harfbuzz-ng/src/hb-ot-shape-complex-default.cc \
38	third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic-table.cc \
39	third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc \
40	third_party/harfbuzz-ng/src/hb-ot-shape-complex-myanmar.cc \
41	third_party/harfbuzz-ng/src/hb-ot-shape-complex-sea.cc \
42	third_party/harfbuzz-ng/src/hb-ot-shape-complex-thai.cc \
43	third_party/harfbuzz-ng/src/hb-ot-shape-fallback.cc \
44	third_party/harfbuzz-ng/src/hb-ot-shape-normalize.cc \
45	third_party/harfbuzz-ng/src/hb-ot-shape.cc \
46	third_party/harfbuzz-ng/src/hb-ot-tag.cc \
47	third_party/harfbuzz-ng/src/hb-set.cc \
48	third_party/harfbuzz-ng/src/hb-shape-plan.cc \
49	third_party/harfbuzz-ng/src/hb-shape.cc \
50	third_party/harfbuzz-ng/src/hb-shaper.cc \
51	third_party/harfbuzz-ng/src/hb-tt-font.cc \
52	third_party/harfbuzz-ng/src/hb-unicode.cc \
53	third_party/harfbuzz-ng/src/hb-warning.cc
54
55
56# Flags passed to both C and C++ files.
57MY_CFLAGS := \
58	-fstack-protector \
59	--param=ssp-buffer-size=4 \
60	 \
61	-fno-exceptions \
62	-fno-strict-aliasing \
63	-Wno-unused-parameter \
64	-Wno-missing-field-initializers \
65	-fvisibility=hidden \
66	-pipe \
67	-fPIC \
68	-Wno-format \
69	-EL \
70	-mhard-float \
71	-mips32r2 \
72	-Wa,-mips32r2 \
73	--sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
74	-ffunction-sections \
75	-funwind-tables \
76	-g \
77	-fstack-protector \
78	-fno-short-enums \
79	-finline-limit=64 \
80	-Wa,--noexecstack \
81	-U_FORTIFY_SOURCE \
82	-Wno-extra \
83	-Wno-ignored-qualifiers \
84	-Wno-type-limits \
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_CFLAGS_C :=
96
97MY_DEFS := \
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_GPU=1' \
105	'-DUSE_OPENSSL=1' \
106	'-DENABLE_EGLIMAGE=1' \
107	'-DENABLE_LANGUAGE_DETECTION=1' \
108	'-DHAVE_OT' \
109	'-DHAVE_ICU' \
110	'-DHB_NO_MT' \
111	'-DU_USING_ICU_NAMESPACE=0' \
112	'-DANDROID' \
113	'-D__GNU_SOURCE=1' \
114	'-DUSE_STLPORT=1' \
115	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
116	'-DCHROME_BUILD_ID=""' \
117	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
118	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
119	'-D_DEBUG'
120
121LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
122
123# Include paths placed before CFLAGS/CPPFLAGS
124LOCAL_C_INCLUDES := \
125	$(LOCAL_PATH)/third_party/harfbuzz-ng/src \
126	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
127	$(PWD)/external/icu4c/common \
128	$(PWD)/external/icu4c/i18n \
129	$(PWD)/frameworks/wilhelm/include \
130	$(PWD)/bionic \
131	$(PWD)/external/stlport/stlport
132
133LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
134
135# Flags passed to only C++ (and not C) files.
136LOCAL_CPPFLAGS := \
137	-fno-rtti \
138	-fno-threadsafe-statics \
139	-fvisibility-inlines-hidden \
140	-Wno-deprecated \
141	-Wno-uninitialized \
142	-Wno-error=c++0x-compat \
143	-Wno-non-virtual-dtor \
144	-Wno-sign-promo \
145	-Wno-non-virtual-dtor
146
147### Rules for final target.
148
149LOCAL_LDFLAGS := \
150	-Wl,-z,now \
151	-Wl,-z,relro \
152	-Wl,-z,noexecstack \
153	-fPIC \
154	-EL \
155	-Wl,--no-keep-memory \
156	--sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
157	 \
158	-nostdlib \
159	-Wl,--no-undefined \
160	-Wl,--exclude-libs=ALL \
161	-Wl,--gc-sections \
162	-Wl,-O1 \
163	-Wl,--as-needed
164
165
166LOCAL_STATIC_LIBRARIES :=
167
168# Enable grouping to fix circular references
169LOCAL_GROUP_STATIC_LIBRARIES := true
170
171LOCAL_SHARED_LIBRARIES := \
172	libstlport \
173	libdl
174
175# Add target alias to "gyp_all_modules" target.
176.PHONY: gyp_all_modules
177gyp_all_modules: third_party_harfbuzz_ng_harfbuzz_ng_gyp
178
179# Alias gyp target name.
180.PHONY: harfbuzz-ng
181harfbuzz-ng: third_party_harfbuzz_ng_harfbuzz_ng_gyp
182
183include $(BUILD_STATIC_LIBRARY)
184