1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_expat_expat_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES :=
14
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/expat/files/lib/xmlparse.c \
26	third_party/expat/files/lib/xmlrole.c \
27	third_party/expat/files/lib/xmltok.c
28
29
30# Flags passed to both C and C++ files.
31MY_CFLAGS_Debug := \
32	-fstack-protector \
33	--param=ssp-buffer-size=4 \
34	-fno-strict-aliasing \
35	-Wno-unused-parameter \
36	-Wno-missing-field-initializers \
37	-fvisibility=hidden \
38	-pipe \
39	-fPIC \
40	-Wno-unused-local-typedefs \
41	-Wno-format \
42	-fno-tree-sra \
43	-fno-caller-saves \
44	-Wno-psabi \
45	-fno-partial-inlining \
46	-fno-early-inlining \
47	-fno-tree-copy-prop \
48	-fno-tree-loop-optimize \
49	-fno-move-loop-invariants \
50	-ffunction-sections \
51	-funwind-tables \
52	-g \
53	-fstack-protector \
54	-fno-short-enums \
55	-finline-limit=64 \
56	-Wa,--noexecstack \
57	-U_FORTIFY_SOURCE \
58	-Wno-extra \
59	-Wno-ignored-qualifiers \
60	-Wno-type-limits \
61	-Wno-unused-but-set-variable \
62	-Wno-address \
63	-Wno-format-security \
64	-Wno-return-type \
65	-Wno-sequence-point \
66	-Os \
67	-g \
68	-gdwarf-4 \
69	-fdata-sections \
70	-ffunction-sections \
71	-fomit-frame-pointer \
72	-funwind-tables
73
74MY_DEFS_Debug := \
75	'-D_LIB' \
76	'-DXML_STATIC' \
77	'-DV8_DEPRECATION_WARNINGS' \
78	'-D_FILE_OFFSET_BITS=64' \
79	'-DNO_TCMALLOC' \
80	'-DDISABLE_NACL' \
81	'-DCHROMIUM_BUILD' \
82	'-DUSE_LIBJPEG_TURBO=1' \
83	'-DENABLE_WEBRTC=1' \
84	'-DUSE_PROPRIETARY_CODECS' \
85	'-DENABLE_BROWSER_CDMS' \
86	'-DENABLE_CONFIGURATION_POLICY' \
87	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
88	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
89	'-DENABLE_EGLIMAGE=1' \
90	'-DCLD_VERSION=1' \
91	'-DENABLE_PRINTING=1' \
92	'-DENABLE_MANAGED_USERS=1' \
93	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
94	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
95	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
96	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
97	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
98	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
99	'-DVIDEO_HOLE=1' \
100	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
101	'-DHAVE_EXPAT_CONFIG_H' \
102	'-DUSE_OPENSSL=1' \
103	'-DUSE_OPENSSL_CERTS=1' \
104	'-DANDROID' \
105	'-D__GNU_SOURCE=1' \
106	'-DUSE_STLPORT=1' \
107	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
108	'-DCHROME_BUILD_ID=""' \
109	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
110	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
111	'-D_DEBUG'
112
113
114# Include paths placed before CFLAGS/CPPFLAGS
115LOCAL_C_INCLUDES_Debug := \
116	$(LOCAL_PATH)/third_party/expat/files/lib \
117	$(gyp_shared_intermediate_dir) \
118	$(PWD)/frameworks/wilhelm/include \
119	$(PWD)/bionic \
120	$(PWD)/external/stlport/stlport
121
122
123# Flags passed to only C++ (and not C) files.
124LOCAL_CPPFLAGS_Debug := \
125	-fno-exceptions \
126	-fno-rtti \
127	-fno-threadsafe-statics \
128	-fvisibility-inlines-hidden \
129	-Wno-deprecated \
130	-Wno-abi \
131	-std=gnu++11 \
132	-Wno-narrowing \
133	-Wno-literal-suffix \
134	-Wno-non-virtual-dtor \
135	-Wno-sign-promo \
136	-Wno-non-virtual-dtor
137
138
139# Flags passed to both C and C++ files.
140MY_CFLAGS_Release := \
141	-fstack-protector \
142	--param=ssp-buffer-size=4 \
143	-fno-strict-aliasing \
144	-Wno-unused-parameter \
145	-Wno-missing-field-initializers \
146	-fvisibility=hidden \
147	-pipe \
148	-fPIC \
149	-Wno-unused-local-typedefs \
150	-Wno-format \
151	-fno-tree-sra \
152	-fno-caller-saves \
153	-Wno-psabi \
154	-fno-partial-inlining \
155	-fno-early-inlining \
156	-fno-tree-copy-prop \
157	-fno-tree-loop-optimize \
158	-fno-move-loop-invariants \
159	-ffunction-sections \
160	-funwind-tables \
161	-g \
162	-fstack-protector \
163	-fno-short-enums \
164	-finline-limit=64 \
165	-Wa,--noexecstack \
166	-U_FORTIFY_SOURCE \
167	-Wno-extra \
168	-Wno-ignored-qualifiers \
169	-Wno-type-limits \
170	-Wno-unused-but-set-variable \
171	-Wno-address \
172	-Wno-format-security \
173	-Wno-return-type \
174	-Wno-sequence-point \
175	-Os \
176	-fno-ident \
177	-fdata-sections \
178	-ffunction-sections \
179	-fomit-frame-pointer \
180	-funwind-tables
181
182MY_DEFS_Release := \
183	'-D_LIB' \
184	'-DXML_STATIC' \
185	'-DV8_DEPRECATION_WARNINGS' \
186	'-D_FILE_OFFSET_BITS=64' \
187	'-DNO_TCMALLOC' \
188	'-DDISABLE_NACL' \
189	'-DCHROMIUM_BUILD' \
190	'-DUSE_LIBJPEG_TURBO=1' \
191	'-DENABLE_WEBRTC=1' \
192	'-DUSE_PROPRIETARY_CODECS' \
193	'-DENABLE_BROWSER_CDMS' \
194	'-DENABLE_CONFIGURATION_POLICY' \
195	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
196	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
197	'-DENABLE_EGLIMAGE=1' \
198	'-DCLD_VERSION=1' \
199	'-DENABLE_PRINTING=1' \
200	'-DENABLE_MANAGED_USERS=1' \
201	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
202	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
203	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
204	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
205	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
206	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
207	'-DVIDEO_HOLE=1' \
208	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
209	'-DHAVE_EXPAT_CONFIG_H' \
210	'-DUSE_OPENSSL=1' \
211	'-DUSE_OPENSSL_CERTS=1' \
212	'-DANDROID' \
213	'-D__GNU_SOURCE=1' \
214	'-DUSE_STLPORT=1' \
215	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
216	'-DCHROME_BUILD_ID=""' \
217	'-DNDEBUG' \
218	'-DNVALGRIND' \
219	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
220
221
222# Include paths placed before CFLAGS/CPPFLAGS
223LOCAL_C_INCLUDES_Release := \
224	$(LOCAL_PATH)/third_party/expat/files/lib \
225	$(gyp_shared_intermediate_dir) \
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-exceptions \
234	-fno-rtti \
235	-fno-threadsafe-statics \
236	-fvisibility-inlines-hidden \
237	-Wno-deprecated \
238	-Wno-abi \
239	-std=gnu++11 \
240	-Wno-narrowing \
241	-Wno-literal-suffix \
242	-Wno-non-virtual-dtor \
243	-Wno-sign-promo \
244	-Wno-non-virtual-dtor
245
246
247LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
248LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
249LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
250LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
251### Rules for final target.
252
253LOCAL_SHARED_LIBRARIES := \
254	libstlport \
255	libdl
256
257# Add target alias to "gyp_all_modules" target.
258.PHONY: gyp_all_modules
259gyp_all_modules: third_party_expat_expat_gyp
260
261# Alias gyp target name.
262.PHONY: expat
263expat: third_party_expat_expat_gyp
264
265include $(BUILD_STATIC_LIBRARY)
266