zlib.target.darwin-arm.mk revision f1ee9c14ae164ee884cd0272f4c806b60a0575e2
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	-fstack-protector \
45	--param=ssp-buffer-size=4 \
46	-fno-exceptions \
47	-fno-strict-aliasing \
48	-Wno-unused-parameter \
49	-Wno-missing-field-initializers \
50	-fvisibility=hidden \
51	-pipe \
52	-fPIC \
53	-Wno-format \
54	-fno-tree-sra \
55	-fuse-ld=gold \
56	-Wno-psabi \
57	-ffunction-sections \
58	-funwind-tables \
59	-g \
60	-fstack-protector \
61	-fno-short-enums \
62	-finline-limit=64 \
63	-Wa,--noexecstack \
64	-U_FORTIFY_SOURCE \
65	-Wno-extra \
66	-Wno-ignored-qualifiers \
67	-Wno-type-limits \
68	-Wno-address \
69	-Wno-format-security \
70	-Wno-return-type \
71	-Wno-sequence-point \
72	-Os \
73	-g \
74	-fomit-frame-pointer \
75	-fdata-sections \
76	-ffunction-sections
77
78MY_DEFS_Debug := \
79	'-DV8_DEPRECATION_WARNINGS' \
80	'-D_FILE_OFFSET_BITS=64' \
81	'-DNO_TCMALLOC' \
82	'-DDISABLE_NACL' \
83	'-DCHROMIUM_BUILD' \
84	'-DUSE_LIBJPEG_TURBO=1' \
85	'-DUSE_PROPRIETARY_CODECS' \
86	'-DENABLE_CONFIGURATION_POLICY' \
87	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
88	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
89	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
90	'-DUSE_OPENSSL=1' \
91	'-DENABLE_EGLIMAGE=1' \
92	'-DCLD_VERSION=1' \
93	'-DENABLE_PRINTING=1' \
94	'-DENABLE_MANAGED_USERS=1' \
95	'-DANDROID' \
96	'-D__GNU_SOURCE=1' \
97	'-DUSE_STLPORT=1' \
98	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
99	'-DCHROME_BUILD_ID=""' \
100	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
101	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
102	'-D_DEBUG'
103
104
105# Include paths placed before CFLAGS/CPPFLAGS
106LOCAL_C_INCLUDES_Debug := \
107	$(LOCAL_PATH)/third_party/zlib \
108	$(PWD)/frameworks/wilhelm/include \
109	$(PWD)/bionic \
110	$(PWD)/external/stlport/stlport
111
112
113# Flags passed to only C++ (and not C) files.
114LOCAL_CPPFLAGS_Debug := \
115	-fno-rtti \
116	-fno-threadsafe-statics \
117	-fvisibility-inlines-hidden \
118	-Wno-deprecated \
119	-Wno-abi \
120	-Wno-error=c++0x-compat \
121	-Wno-non-virtual-dtor \
122	-Wno-sign-promo \
123	-Wno-non-virtual-dtor
124
125
126# Flags passed to both C and C++ files.
127MY_CFLAGS_Release := \
128	-fstack-protector \
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	-fno-tree-sra \
139	-fuse-ld=gold \
140	-Wno-psabi \
141	-ffunction-sections \
142	-funwind-tables \
143	-g \
144	-fstack-protector \
145	-fno-short-enums \
146	-finline-limit=64 \
147	-Wa,--noexecstack \
148	-U_FORTIFY_SOURCE \
149	-Wno-extra \
150	-Wno-ignored-qualifiers \
151	-Wno-type-limits \
152	-Wno-address \
153	-Wno-format-security \
154	-Wno-return-type \
155	-Wno-sequence-point \
156	-Os \
157	-fno-ident \
158	-fdata-sections \
159	-ffunction-sections \
160	-fomit-frame-pointer
161
162MY_DEFS_Release := \
163	'-DV8_DEPRECATION_WARNINGS' \
164	'-D_FILE_OFFSET_BITS=64' \
165	'-DNO_TCMALLOC' \
166	'-DDISABLE_NACL' \
167	'-DCHROMIUM_BUILD' \
168	'-DUSE_LIBJPEG_TURBO=1' \
169	'-DUSE_PROPRIETARY_CODECS' \
170	'-DENABLE_CONFIGURATION_POLICY' \
171	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
172	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
173	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
174	'-DUSE_OPENSSL=1' \
175	'-DENABLE_EGLIMAGE=1' \
176	'-DCLD_VERSION=1' \
177	'-DENABLE_PRINTING=1' \
178	'-DENABLE_MANAGED_USERS=1' \
179	'-DANDROID' \
180	'-D__GNU_SOURCE=1' \
181	'-DUSE_STLPORT=1' \
182	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
183	'-DCHROME_BUILD_ID=""' \
184	'-DNDEBUG' \
185	'-DNVALGRIND' \
186	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
187
188
189# Include paths placed before CFLAGS/CPPFLAGS
190LOCAL_C_INCLUDES_Release := \
191	$(LOCAL_PATH)/third_party/zlib \
192	$(PWD)/frameworks/wilhelm/include \
193	$(PWD)/bionic \
194	$(PWD)/external/stlport/stlport
195
196
197# Flags passed to only C++ (and not C) files.
198LOCAL_CPPFLAGS_Release := \
199	-fno-rtti \
200	-fno-threadsafe-statics \
201	-fvisibility-inlines-hidden \
202	-Wno-deprecated \
203	-Wno-abi \
204	-Wno-error=c++0x-compat \
205	-Wno-non-virtual-dtor \
206	-Wno-sign-promo \
207	-Wno-non-virtual-dtor
208
209
210LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
211LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
212LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
213### Rules for final target.
214
215LOCAL_LDFLAGS_Debug := \
216	-Wl,-z,now \
217	-Wl,-z,relro \
218	-Wl,-z,noexecstack \
219	-fPIC \
220	-Wl,-z,relro \
221	-Wl,-z,now \
222	-fuse-ld=gold \
223	-nostdlib \
224	-Wl,--no-undefined \
225	-Wl,--exclude-libs=ALL \
226	-Wl,--icf=safe \
227	-Wl,--fatal-warnings \
228	-Wl,--gc-sections \
229	-Wl,--warn-shared-textrel \
230	-Wl,-O1 \
231	-Wl,--as-needed
232
233
234LOCAL_LDFLAGS_Release := \
235	-Wl,-z,now \
236	-Wl,-z,relro \
237	-Wl,-z,noexecstack \
238	-fPIC \
239	-Wl,-z,relro \
240	-Wl,-z,now \
241	-fuse-ld=gold \
242	-nostdlib \
243	-Wl,--no-undefined \
244	-Wl,--exclude-libs=ALL \
245	-Wl,--icf=safe \
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