• 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_minizip_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/contrib/minizip/ioapi.c \
26	third_party/zlib/contrib/minizip/unzip.c \
27	third_party/zlib/contrib/minizip/zip.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-exceptions \
35	-fno-strict-aliasing \
36	-Wno-unused-parameter \
37	-Wno-missing-field-initializers \
38	-fvisibility=hidden \
39	-pipe \
40	-fPIC \
41	-Wno-format \
42	-fno-tree-sra \
43	-fuse-ld=gold \
44	-Wno-psabi \
45	-ffunction-sections \
46	-funwind-tables \
47	-g \
48	-fstack-protector \
49	-fno-short-enums \
50	-finline-limit=64 \
51	-Wa,--noexecstack \
52	-U_FORTIFY_SOURCE \
53	-Wno-extra \
54	-Wno-ignored-qualifiers \
55	-Wno-type-limits \
56	-Wno-address \
57	-Wno-format-security \
58	-Wno-return-type \
59	-Wno-sequence-point \
60	-Os \
61	-g \
62	-fomit-frame-pointer \
63	-fdata-sections \
64	-ffunction-sections
65
66MY_DEFS_Debug := \
67	'-DV8_DEPRECATION_WARNINGS' \
68	'-D_FILE_OFFSET_BITS=64' \
69	'-DNO_TCMALLOC' \
70	'-DDISABLE_NACL' \
71	'-DCHROMIUM_BUILD' \
72	'-DUSE_LIBJPEG_TURBO=1' \
73	'-DUSE_PROPRIETARY_CODECS' \
74	'-DENABLE_CONFIGURATION_POLICY' \
75	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
76	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
77	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
78	'-DUSE_OPENSSL=1' \
79	'-DENABLE_EGLIMAGE=1' \
80	'-DCLD_VERSION=1' \
81	'-DENABLE_PRINTING=1' \
82	'-DENABLE_MANAGED_USERS=1' \
83	'-DUSE_FILE32API' \
84	'-DANDROID' \
85	'-D__GNU_SOURCE=1' \
86	'-DUSE_STLPORT=1' \
87	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
88	'-DCHROME_BUILD_ID=""' \
89	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
90	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
91	'-D_DEBUG'
92
93
94# Include paths placed before CFLAGS/CPPFLAGS
95LOCAL_C_INCLUDES_Debug := \
96	$(LOCAL_PATH)/third_party/zlib \
97	$(LOCAL_PATH) \
98	$(PWD)/frameworks/wilhelm/include \
99	$(PWD)/bionic \
100	$(PWD)/external/stlport/stlport
101
102
103# Flags passed to only C++ (and not C) files.
104LOCAL_CPPFLAGS_Debug := \
105	-fno-rtti \
106	-fno-threadsafe-statics \
107	-fvisibility-inlines-hidden \
108	-Wno-deprecated \
109	-Wno-abi \
110	-Wno-error=c++0x-compat \
111	-Wno-non-virtual-dtor \
112	-Wno-sign-promo \
113	-Wno-non-virtual-dtor
114
115
116# Flags passed to both C and C++ files.
117MY_CFLAGS_Release := \
118	-fstack-protector \
119	--param=ssp-buffer-size=4 \
120	-fno-exceptions \
121	-fno-strict-aliasing \
122	-Wno-unused-parameter \
123	-Wno-missing-field-initializers \
124	-fvisibility=hidden \
125	-pipe \
126	-fPIC \
127	-Wno-format \
128	-fno-tree-sra \
129	-fuse-ld=gold \
130	-Wno-psabi \
131	-ffunction-sections \
132	-funwind-tables \
133	-g \
134	-fstack-protector \
135	-fno-short-enums \
136	-finline-limit=64 \
137	-Wa,--noexecstack \
138	-U_FORTIFY_SOURCE \
139	-Wno-extra \
140	-Wno-ignored-qualifiers \
141	-Wno-type-limits \
142	-Wno-address \
143	-Wno-format-security \
144	-Wno-return-type \
145	-Wno-sequence-point \
146	-Os \
147	-fno-ident \
148	-fdata-sections \
149	-ffunction-sections \
150	-fomit-frame-pointer
151
152MY_DEFS_Release := \
153	'-DV8_DEPRECATION_WARNINGS' \
154	'-D_FILE_OFFSET_BITS=64' \
155	'-DNO_TCMALLOC' \
156	'-DDISABLE_NACL' \
157	'-DCHROMIUM_BUILD' \
158	'-DUSE_LIBJPEG_TURBO=1' \
159	'-DUSE_PROPRIETARY_CODECS' \
160	'-DENABLE_CONFIGURATION_POLICY' \
161	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
162	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
163	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
164	'-DUSE_OPENSSL=1' \
165	'-DENABLE_EGLIMAGE=1' \
166	'-DCLD_VERSION=1' \
167	'-DENABLE_PRINTING=1' \
168	'-DENABLE_MANAGED_USERS=1' \
169	'-DUSE_FILE32API' \
170	'-DANDROID' \
171	'-D__GNU_SOURCE=1' \
172	'-DUSE_STLPORT=1' \
173	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
174	'-DCHROME_BUILD_ID=""' \
175	'-DNDEBUG' \
176	'-DNVALGRIND' \
177	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
178
179
180# Include paths placed before CFLAGS/CPPFLAGS
181LOCAL_C_INCLUDES_Release := \
182	$(LOCAL_PATH)/third_party/zlib \
183	$(LOCAL_PATH) \
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,--fatal-warnings \
220	-Wl,--gc-sections \
221	-Wl,--warn-shared-textrel \
222	-Wl,-O1 \
223	-Wl,--as-needed
224
225
226LOCAL_LDFLAGS_Release := \
227	-Wl,-z,now \
228	-Wl,-z,relro \
229	-Wl,-z,noexecstack \
230	-fPIC \
231	-Wl,-z,relro \
232	-Wl,-z,now \
233	-fuse-ld=gold \
234	-nostdlib \
235	-Wl,--no-undefined \
236	-Wl,--exclude-libs=ALL \
237	-Wl,--icf=safe \
238	-Wl,-O1 \
239	-Wl,--as-needed \
240	-Wl,--gc-sections \
241	-Wl,--fatal-warnings \
242	-Wl,--warn-shared-textrel
243
244
245LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
246
247LOCAL_STATIC_LIBRARIES :=
248
249# Enable grouping to fix circular references
250LOCAL_GROUP_STATIC_LIBRARIES := true
251
252LOCAL_SHARED_LIBRARIES := \
253	libstlport \
254	libdl
255
256# Add target alias to "gyp_all_modules" target.
257.PHONY: gyp_all_modules
258gyp_all_modules: third_party_zlib_minizip_gyp
259
260# Alias gyp target name.
261.PHONY: minizip
262minizip: third_party_zlib_minizip_gyp
263
264include $(BUILD_STATIC_LIBRARY)
265