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