• 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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
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-strict-aliasing \
46	-Wno-unused-parameter \
47	-Wno-missing-field-initializers \
48	-fvisibility=hidden \
49	-pipe \
50	-fPIC \
51	-Wno-unused-local-typedefs \
52	-Wno-format \
53	-msse2 \
54	-mfpmath=sse \
55	-mmmx \
56	-m32 \
57	-ffunction-sections \
58	-funwind-tables \
59	-g \
60	-fno-short-enums \
61	-finline-limit=64 \
62	-Wa,--noexecstack \
63	-U_FORTIFY_SOURCE \
64	-Wno-extra \
65	-Wno-ignored-qualifiers \
66	-Wno-type-limits \
67	-Wno-unused-but-set-variable \
68	-fno-stack-protector \
69	-Wno-address \
70	-Wno-format-security \
71	-Wno-return-type \
72	-Wno-sequence-point \
73	-Os \
74	-g \
75	-gdwarf-4 \
76	-fdata-sections \
77	-ffunction-sections \
78	-fomit-frame-pointer \
79	-funwind-tables
80
81MY_DEFS_Debug := \
82	'-DV8_DEPRECATION_WARNINGS' \
83	'-D_FILE_OFFSET_BITS=64' \
84	'-DNO_TCMALLOC' \
85	'-DDISABLE_NACL' \
86	'-DCHROMIUM_BUILD' \
87	'-DUSE_LIBJPEG_TURBO=1' \
88	'-DENABLE_WEBRTC=1' \
89	'-DUSE_PROPRIETARY_CODECS' \
90	'-DENABLE_BROWSER_CDMS' \
91	'-DENABLE_CONFIGURATION_POLICY' \
92	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
93	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
94	'-DENABLE_EGLIMAGE=1' \
95	'-DCLD_VERSION=1' \
96	'-DENABLE_PRINTING=1' \
97	'-DENABLE_MANAGED_USERS=1' \
98	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
99	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
100	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
101	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
102	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
103	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
104	'-DVIDEO_HOLE=1' \
105	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
106	'-DUSE_OPENSSL=1' \
107	'-DUSE_OPENSSL_CERTS=1' \
108	'-DANDROID' \
109	'-D__GNU_SOURCE=1' \
110	'-DUSE_STLPORT=1' \
111	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
112	'-DCHROME_BUILD_ID=""' \
113	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
114	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
115	'-D_DEBUG'
116
117
118# Include paths placed before CFLAGS/CPPFLAGS
119LOCAL_C_INCLUDES_Debug := \
120	$(gyp_shared_intermediate_dir) \
121	$(LOCAL_PATH)/third_party/zlib \
122	$(PWD)/frameworks/wilhelm/include \
123	$(PWD)/bionic \
124	$(PWD)/external/stlport/stlport
125
126
127# Flags passed to only C++ (and not C) files.
128LOCAL_CPPFLAGS_Debug := \
129	-fno-exceptions \
130	-fno-rtti \
131	-fno-threadsafe-statics \
132	-fvisibility-inlines-hidden \
133	-Wno-deprecated \
134	-std=gnu++11 \
135	-Wno-narrowing \
136	-Wno-literal-suffix \
137	-Wno-non-virtual-dtor \
138	-Wno-sign-promo \
139	-Wno-non-virtual-dtor
140
141
142# Flags passed to both C and C++ files.
143MY_CFLAGS_Release := \
144	--param=ssp-buffer-size=4 \
145	-fno-strict-aliasing \
146	-Wno-unused-parameter \
147	-Wno-missing-field-initializers \
148	-fvisibility=hidden \
149	-pipe \
150	-fPIC \
151	-Wno-unused-local-typedefs \
152	-Wno-format \
153	-msse2 \
154	-mfpmath=sse \
155	-mmmx \
156	-m32 \
157	-ffunction-sections \
158	-funwind-tables \
159	-g \
160	-fno-short-enums \
161	-finline-limit=64 \
162	-Wa,--noexecstack \
163	-U_FORTIFY_SOURCE \
164	-Wno-extra \
165	-Wno-ignored-qualifiers \
166	-Wno-type-limits \
167	-Wno-unused-but-set-variable \
168	-fno-stack-protector \
169	-Wno-address \
170	-Wno-format-security \
171	-Wno-return-type \
172	-Wno-sequence-point \
173	-Os \
174	-fno-ident \
175	-fdata-sections \
176	-ffunction-sections \
177	-fomit-frame-pointer \
178	-funwind-tables
179
180MY_DEFS_Release := \
181	'-DV8_DEPRECATION_WARNINGS' \
182	'-D_FILE_OFFSET_BITS=64' \
183	'-DNO_TCMALLOC' \
184	'-DDISABLE_NACL' \
185	'-DCHROMIUM_BUILD' \
186	'-DUSE_LIBJPEG_TURBO=1' \
187	'-DENABLE_WEBRTC=1' \
188	'-DUSE_PROPRIETARY_CODECS' \
189	'-DENABLE_BROWSER_CDMS' \
190	'-DENABLE_CONFIGURATION_POLICY' \
191	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
192	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
193	'-DENABLE_EGLIMAGE=1' \
194	'-DCLD_VERSION=1' \
195	'-DENABLE_PRINTING=1' \
196	'-DENABLE_MANAGED_USERS=1' \
197	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
198	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
199	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
200	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
201	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
202	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
203	'-DVIDEO_HOLE=1' \
204	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
205	'-DUSE_OPENSSL=1' \
206	'-DUSE_OPENSSL_CERTS=1' \
207	'-DANDROID' \
208	'-D__GNU_SOURCE=1' \
209	'-DUSE_STLPORT=1' \
210	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
211	'-DCHROME_BUILD_ID=""' \
212	'-DNDEBUG' \
213	'-DNVALGRIND' \
214	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
215
216
217# Include paths placed before CFLAGS/CPPFLAGS
218LOCAL_C_INCLUDES_Release := \
219	$(gyp_shared_intermediate_dir) \
220	$(LOCAL_PATH)/third_party/zlib \
221	$(PWD)/frameworks/wilhelm/include \
222	$(PWD)/bionic \
223	$(PWD)/external/stlport/stlport
224
225
226# Flags passed to only C++ (and not C) files.
227LOCAL_CPPFLAGS_Release := \
228	-fno-exceptions \
229	-fno-rtti \
230	-fno-threadsafe-statics \
231	-fvisibility-inlines-hidden \
232	-Wno-deprecated \
233	-std=gnu++11 \
234	-Wno-narrowing \
235	-Wno-literal-suffix \
236	-Wno-non-virtual-dtor \
237	-Wno-sign-promo \
238	-Wno-non-virtual-dtor
239
240
241LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
242LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
243LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
244LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
245### Rules for final target.
246
247LOCAL_SHARED_LIBRARIES := \
248	libstlport \
249	libdl
250
251# Add target alias to "gyp_all_modules" target.
252.PHONY: gyp_all_modules
253gyp_all_modules: third_party_zlib_zlib_gyp
254
255# Alias gyp target name.
256.PHONY: zlib
257zlib: third_party_zlib_zlib_gyp
258
259include $(BUILD_STATIC_LIBRARY)
260