zlib.target.darwin-arm.mk revision a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7
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	'-DANGLE_DX11' \
80	'-DV8_DEPRECATION_WARNINGS' \
81	'-D_FILE_OFFSET_BITS=64' \
82	'-DNO_TCMALLOC' \
83	'-DDISABLE_NACL' \
84	'-DCHROMIUM_BUILD' \
85	'-DUSE_LIBJPEG_TURBO=1' \
86	'-DUSE_PROPRIETARY_CODECS' \
87	'-DENABLE_CONFIGURATION_POLICY' \
88	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
89	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
90	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
91	'-DUSE_OPENSSL=1' \
92	'-DENABLE_EGLIMAGE=1' \
93	'-DCLD_VERSION=1' \
94	'-DENABLE_PRINTING=1' \
95	'-DENABLE_MANAGED_USERS=1' \
96	'-DANDROID' \
97	'-D__GNU_SOURCE=1' \
98	'-DUSE_STLPORT=1' \
99	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
100	'-DCHROME_BUILD_ID=""' \
101	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
102	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
103	'-D_DEBUG'
104
105
106# Include paths placed before CFLAGS/CPPFLAGS
107LOCAL_C_INCLUDES_Debug := \
108	$(LOCAL_PATH)/third_party/zlib \
109	$(PWD)/frameworks/wilhelm/include \
110	$(PWD)/bionic \
111	$(PWD)/external/stlport/stlport
112
113
114# Flags passed to only C++ (and not C) files.
115LOCAL_CPPFLAGS_Debug := \
116	-fno-rtti \
117	-fno-threadsafe-statics \
118	-fvisibility-inlines-hidden \
119	-Wno-deprecated \
120	-Wno-abi \
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	-fstack-protector \
130	--param=ssp-buffer-size=4 \
131	-fno-exceptions \
132	-fno-strict-aliasing \
133	-Wno-unused-parameter \
134	-Wno-missing-field-initializers \
135	-fvisibility=hidden \
136	-pipe \
137	-fPIC \
138	-Wno-format \
139	-fno-tree-sra \
140	-fuse-ld=gold \
141	-Wno-psabi \
142	-ffunction-sections \
143	-funwind-tables \
144	-g \
145	-fstack-protector \
146	-fno-short-enums \
147	-finline-limit=64 \
148	-Wa,--noexecstack \
149	-U_FORTIFY_SOURCE \
150	-Wno-extra \
151	-Wno-ignored-qualifiers \
152	-Wno-type-limits \
153	-Wno-address \
154	-Wno-format-security \
155	-Wno-return-type \
156	-Wno-sequence-point \
157	-Os \
158	-fno-ident \
159	-fdata-sections \
160	-ffunction-sections \
161	-fomit-frame-pointer
162
163MY_DEFS_Release := \
164	'-DANGLE_DX11' \
165	'-DV8_DEPRECATION_WARNINGS' \
166	'-D_FILE_OFFSET_BITS=64' \
167	'-DNO_TCMALLOC' \
168	'-DDISABLE_NACL' \
169	'-DCHROMIUM_BUILD' \
170	'-DUSE_LIBJPEG_TURBO=1' \
171	'-DUSE_PROPRIETARY_CODECS' \
172	'-DENABLE_CONFIGURATION_POLICY' \
173	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
174	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
175	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
176	'-DUSE_OPENSSL=1' \
177	'-DENABLE_EGLIMAGE=1' \
178	'-DCLD_VERSION=1' \
179	'-DENABLE_PRINTING=1' \
180	'-DENABLE_MANAGED_USERS=1' \
181	'-DANDROID' \
182	'-D__GNU_SOURCE=1' \
183	'-DUSE_STLPORT=1' \
184	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
185	'-DCHROME_BUILD_ID=""' \
186	'-DNDEBUG' \
187	'-DNVALGRIND' \
188	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
189
190
191# Include paths placed before CFLAGS/CPPFLAGS
192LOCAL_C_INCLUDES_Release := \
193	$(LOCAL_PATH)/third_party/zlib \
194	$(PWD)/frameworks/wilhelm/include \
195	$(PWD)/bionic \
196	$(PWD)/external/stlport/stlport
197
198
199# Flags passed to only C++ (and not C) files.
200LOCAL_CPPFLAGS_Release := \
201	-fno-rtti \
202	-fno-threadsafe-statics \
203	-fvisibility-inlines-hidden \
204	-Wno-deprecated \
205	-Wno-abi \
206	-Wno-error=c++0x-compat \
207	-Wno-non-virtual-dtor \
208	-Wno-sign-promo \
209	-Wno-non-virtual-dtor
210
211
212LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
213LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
214LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
215### Rules for final target.
216
217LOCAL_LDFLAGS_Debug := \
218	-Wl,-z,now \
219	-Wl,-z,relro \
220	-Wl,-z,noexecstack \
221	-fPIC \
222	-Wl,-z,relro \
223	-Wl,-z,now \
224	-fuse-ld=gold \
225	-nostdlib \
226	-Wl,--no-undefined \
227	-Wl,--exclude-libs=ALL \
228	-Wl,--icf=safe \
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	-Wl,-z,relro \
242	-Wl,-z,now \
243	-fuse-ld=gold \
244	-nostdlib \
245	-Wl,--no-undefined \
246	-Wl,--exclude-libs=ALL \
247	-Wl,--icf=safe \
248	-Wl,-O1 \
249	-Wl,--as-needed \
250	-Wl,--gc-sections \
251	-Wl,--fatal-warnings \
252	-Wl,--warn-shared-textrel
253
254
255LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
256
257LOCAL_STATIC_LIBRARIES :=
258
259# Enable grouping to fix circular references
260LOCAL_GROUP_STATIC_LIBRARIES := true
261
262LOCAL_SHARED_LIBRARIES := \
263	libstlport \
264	libdl
265
266# Add target alias to "gyp_all_modules" target.
267.PHONY: gyp_all_modules
268gyp_all_modules: third_party_zlib_zlib_gyp
269
270# Alias gyp target name.
271.PHONY: zlib
272zlib: third_party_zlib_zlib_gyp
273
274include $(BUILD_STATIC_LIBRARY)
275