• 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_zlib_zlib_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
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/zlib/adler32.c \
26	third_party/zlib/compress.c \
27	third_party/zlib/crc32.c \
28	third_party/zlib/deflate.c \
29	third_party/zlib/gzclose.c \
30	third_party/zlib/gzlib.c \
31	third_party/zlib/gzread.c \
32	third_party/zlib/gzwrite.c \
33	third_party/zlib/infback.c \
34	third_party/zlib/inffast.c \
35	third_party/zlib/inflate.c \
36	third_party/zlib/inftrees.c \
37	third_party/zlib/trees.c \
38	third_party/zlib/uncompr.c \
39	third_party/zlib/zutil.c
40
41
42# Flags passed to both C and C++ files.
43MY_CFLAGS_Debug := \
44	--param=ssp-buffer-size=4 \
45	-fno-exceptions \
46	-fno-strict-aliasing \
47	-Wno-unused-parameter \
48	-Wno-missing-field-initializers \
49	-fvisibility=hidden \
50	-pipe \
51	-fPIC \
52	-Wno-format \
53	-m32 \
54	-mmmx \
55	-march=pentium4 \
56	-msse2 \
57	-mfpmath=sse \
58	-fuse-ld=gold \
59	-ffunction-sections \
60	-funwind-tables \
61	-g \
62	-fno-short-enums \
63	-finline-limit=64 \
64	-Wa,--noexecstack \
65	-U_FORTIFY_SOURCE \
66	-Wno-extra \
67	-Wno-ignored-qualifiers \
68	-Wno-type-limits \
69	-fno-stack-protector \
70	-Wno-address \
71	-Wno-format-security \
72	-Wno-return-type \
73	-Wno-sequence-point \
74	-Os \
75	-g \
76	-fomit-frame-pointer \
77	-fdata-sections \
78	-ffunction-sections
79
80MY_DEFS_Debug := \
81	'-DV8_DEPRECATION_WARNINGS' \
82	'-D_FILE_OFFSET_BITS=64' \
83	'-DNO_TCMALLOC' \
84	'-DDISABLE_NACL' \
85	'-DCHROMIUM_BUILD' \
86	'-DUSE_LIBJPEG_TURBO=1' \
87	'-DUSE_PROPRIETARY_CODECS' \
88	'-DENABLE_CONFIGURATION_POLICY' \
89	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
90	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
91	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
92	'-DUSE_OPENSSL=1' \
93	'-DENABLE_EGLIMAGE=1' \
94	'-DCLD_VERSION=1' \
95	'-DENABLE_PRINTING=1' \
96	'-DENABLE_MANAGED_USERS=1' \
97	'-DANDROID' \
98	'-D__GNU_SOURCE=1' \
99	'-DUSE_STLPORT=1' \
100	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
101	'-DCHROME_BUILD_ID=""' \
102	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
103	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
104	'-D_DEBUG'
105
106
107# Include paths placed before CFLAGS/CPPFLAGS
108LOCAL_C_INCLUDES_Debug := \
109	$(LOCAL_PATH)/third_party/zlib \
110	$(PWD)/frameworks/wilhelm/include \
111	$(PWD)/bionic \
112	$(PWD)/external/stlport/stlport
113
114
115# Flags passed to only C++ (and not C) files.
116LOCAL_CPPFLAGS_Debug := \
117	-fno-rtti \
118	-fno-threadsafe-statics \
119	-fvisibility-inlines-hidden \
120	-Wno-deprecated \
121	-Wno-error=c++0x-compat \
122	-Wno-non-virtual-dtor \
123	-Wno-sign-promo \
124	-Wno-non-virtual-dtor
125
126
127# Flags passed to both C and C++ files.
128MY_CFLAGS_Release := \
129	--param=ssp-buffer-size=4 \
130	-fno-exceptions \
131	-fno-strict-aliasing \
132	-Wno-unused-parameter \
133	-Wno-missing-field-initializers \
134	-fvisibility=hidden \
135	-pipe \
136	-fPIC \
137	-Wno-format \
138	-m32 \
139	-mmmx \
140	-march=pentium4 \
141	-msse2 \
142	-mfpmath=sse \
143	-fuse-ld=gold \
144	-ffunction-sections \
145	-funwind-tables \
146	-g \
147	-fno-short-enums \
148	-finline-limit=64 \
149	-Wa,--noexecstack \
150	-U_FORTIFY_SOURCE \
151	-Wno-extra \
152	-Wno-ignored-qualifiers \
153	-Wno-type-limits \
154	-fno-stack-protector \
155	-Wno-address \
156	-Wno-format-security \
157	-Wno-return-type \
158	-Wno-sequence-point \
159	-Os \
160	-fno-ident \
161	-fdata-sections \
162	-ffunction-sections \
163	-fomit-frame-pointer \
164	-fno-unwind-tables \
165	-fno-asynchronous-unwind-tables
166
167MY_DEFS_Release := \
168	'-DV8_DEPRECATION_WARNINGS' \
169	'-D_FILE_OFFSET_BITS=64' \
170	'-DNO_TCMALLOC' \
171	'-DDISABLE_NACL' \
172	'-DCHROMIUM_BUILD' \
173	'-DUSE_LIBJPEG_TURBO=1' \
174	'-DUSE_PROPRIETARY_CODECS' \
175	'-DENABLE_CONFIGURATION_POLICY' \
176	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
177	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
178	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
179	'-DUSE_OPENSSL=1' \
180	'-DENABLE_EGLIMAGE=1' \
181	'-DCLD_VERSION=1' \
182	'-DENABLE_PRINTING=1' \
183	'-DENABLE_MANAGED_USERS=1' \
184	'-DANDROID' \
185	'-D__GNU_SOURCE=1' \
186	'-DUSE_STLPORT=1' \
187	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
188	'-DCHROME_BUILD_ID=""' \
189	'-DNDEBUG' \
190	'-DNVALGRIND' \
191	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
192
193
194# Include paths placed before CFLAGS/CPPFLAGS
195LOCAL_C_INCLUDES_Release := \
196	$(LOCAL_PATH)/third_party/zlib \
197	$(PWD)/frameworks/wilhelm/include \
198	$(PWD)/bionic \
199	$(PWD)/external/stlport/stlport
200
201
202# Flags passed to only C++ (and not C) files.
203LOCAL_CPPFLAGS_Release := \
204	-fno-rtti \
205	-fno-threadsafe-statics \
206	-fvisibility-inlines-hidden \
207	-Wno-deprecated \
208	-Wno-error=c++0x-compat \
209	-Wno-non-virtual-dtor \
210	-Wno-sign-promo \
211	-Wno-non-virtual-dtor
212
213
214LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
215LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
216LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
217### Rules for final target.
218
219LOCAL_LDFLAGS_Debug := \
220	-Wl,-z,now \
221	-Wl,-z,relro \
222	-Wl,-z,noexecstack \
223	-fPIC \
224	-m32 \
225	-fuse-ld=gold \
226	-nostdlib \
227	-Wl,--no-undefined \
228	-Wl,--exclude-libs=ALL \
229	-Wl,--fatal-warnings \
230	-Wl,--gc-sections \
231	-Wl,--warn-shared-textrel \
232	-Wl,-O1 \
233	-Wl,--as-needed
234
235
236LOCAL_LDFLAGS_Release := \
237	-Wl,-z,now \
238	-Wl,-z,relro \
239	-Wl,-z,noexecstack \
240	-fPIC \
241	-m32 \
242	-fuse-ld=gold \
243	-nostdlib \
244	-Wl,--no-undefined \
245	-Wl,--exclude-libs=ALL \
246	-Wl,-O1 \
247	-Wl,--as-needed \
248	-Wl,--gc-sections \
249	-Wl,--fatal-warnings \
250	-Wl,--warn-shared-textrel
251
252
253LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
254
255LOCAL_STATIC_LIBRARIES :=
256
257# Enable grouping to fix circular references
258LOCAL_GROUP_STATIC_LIBRARIES := true
259
260LOCAL_SHARED_LIBRARIES := \
261	libstlport \
262	libdl
263
264# Add target alias to "gyp_all_modules" target.
265.PHONY: gyp_all_modules
266gyp_all_modules: third_party_zlib_zlib_gyp
267
268# Alias gyp target name.
269.PHONY: zlib
270zlib: third_party_zlib_zlib_gyp
271
272include $(BUILD_STATIC_LIBRARY)
273