1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libpng_libpng_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/libpng/png.c \
26	third_party/libpng/pngerror.c \
27	third_party/libpng/pnggccrd.c \
28	third_party/libpng/pngget.c \
29	third_party/libpng/pngmem.c \
30	third_party/libpng/pngpread.c \
31	third_party/libpng/pngread.c \
32	third_party/libpng/pngrio.c \
33	third_party/libpng/pngrtran.c \
34	third_party/libpng/pngrutil.c \
35	third_party/libpng/pngset.c \
36	third_party/libpng/pngtrans.c \
37	third_party/libpng/pngvcrd.c \
38	third_party/libpng/pngwio.c \
39	third_party/libpng/pngwrite.c \
40	third_party/libpng/pngwtran.c \
41	third_party/libpng/pngwutil.c
42
43
44# Flags passed to both C and C++ files.
45MY_CFLAGS_Debug := \
46	-fstack-protector \
47	--param=ssp-buffer-size=4 \
48	-fno-strict-aliasing \
49	-Wno-unused-parameter \
50	-Wno-missing-field-initializers \
51	-fvisibility=hidden \
52	-pipe \
53	-fPIC \
54	-Wno-unused-local-typedefs \
55	-Wno-format \
56	-fno-tree-sra \
57	-fno-caller-saves \
58	-Wno-psabi \
59	-fno-partial-inlining \
60	-fno-early-inlining \
61	-fno-tree-copy-prop \
62	-fno-tree-loop-optimize \
63	-fno-move-loop-invariants \
64	-ffunction-sections \
65	-funwind-tables \
66	-g \
67	-fstack-protector \
68	-fno-short-enums \
69	-finline-limit=64 \
70	-Wa,--noexecstack \
71	-U_FORTIFY_SOURCE \
72	-Wno-extra \
73	-Wno-ignored-qualifiers \
74	-Wno-type-limits \
75	-Wno-unused-but-set-variable \
76	-Wno-address \
77	-Wno-format-security \
78	-Wno-return-type \
79	-Wno-sequence-point \
80	-Os \
81	-g \
82	-gdwarf-4 \
83	-fdata-sections \
84	-ffunction-sections \
85	-fomit-frame-pointer \
86	-funwind-tables
87
88MY_DEFS_Debug := \
89	'-DV8_DEPRECATION_WARNINGS' \
90	'-D_FILE_OFFSET_BITS=64' \
91	'-DNO_TCMALLOC' \
92	'-DDISABLE_NACL' \
93	'-DCHROMIUM_BUILD' \
94	'-DUSE_LIBJPEG_TURBO=1' \
95	'-DENABLE_WEBRTC=1' \
96	'-DUSE_PROPRIETARY_CODECS' \
97	'-DENABLE_BROWSER_CDMS' \
98	'-DENABLE_CONFIGURATION_POLICY' \
99	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
100	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
101	'-DENABLE_EGLIMAGE=1' \
102	'-DCLD_VERSION=1' \
103	'-DENABLE_PRINTING=1' \
104	'-DENABLE_MANAGED_USERS=1' \
105	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
106	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
107	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
108	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
109	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
110	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
111	'-DVIDEO_HOLE=1' \
112	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
113	'-DCHROME_PNG_WRITE_SUPPORT' \
114	'-DPNG_USER_CONFIG' \
115	'-DCHROME_PNG_READ_PACK_SUPPORT' \
116	'-DUSE_OPENSSL=1' \
117	'-DUSE_OPENSSL_CERTS=1' \
118	'-DANDROID' \
119	'-D__GNU_SOURCE=1' \
120	'-DUSE_STLPORT=1' \
121	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
122	'-DCHROME_BUILD_ID=""' \
123	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
124	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
125	'-D_DEBUG'
126
127
128# Include paths placed before CFLAGS/CPPFLAGS
129LOCAL_C_INCLUDES_Debug := \
130	$(gyp_shared_intermediate_dir) \
131	$(LOCAL_PATH)/third_party/zlib \
132	$(PWD)/frameworks/wilhelm/include \
133	$(PWD)/bionic \
134	$(PWD)/external/stlport/stlport
135
136
137# Flags passed to only C++ (and not C) files.
138LOCAL_CPPFLAGS_Debug := \
139	-fno-exceptions \
140	-fno-rtti \
141	-fno-threadsafe-statics \
142	-fvisibility-inlines-hidden \
143	-Wno-deprecated \
144	-Wno-abi \
145	-std=gnu++11 \
146	-Wno-narrowing \
147	-Wno-literal-suffix \
148	-Wno-non-virtual-dtor \
149	-Wno-sign-promo \
150	-Wno-non-virtual-dtor
151
152
153# Flags passed to both C and C++ files.
154MY_CFLAGS_Release := \
155	-fstack-protector \
156	--param=ssp-buffer-size=4 \
157	-fno-strict-aliasing \
158	-Wno-unused-parameter \
159	-Wno-missing-field-initializers \
160	-fvisibility=hidden \
161	-pipe \
162	-fPIC \
163	-Wno-unused-local-typedefs \
164	-Wno-format \
165	-fno-tree-sra \
166	-fno-caller-saves \
167	-Wno-psabi \
168	-fno-partial-inlining \
169	-fno-early-inlining \
170	-fno-tree-copy-prop \
171	-fno-tree-loop-optimize \
172	-fno-move-loop-invariants \
173	-ffunction-sections \
174	-funwind-tables \
175	-g \
176	-fstack-protector \
177	-fno-short-enums \
178	-finline-limit=64 \
179	-Wa,--noexecstack \
180	-U_FORTIFY_SOURCE \
181	-Wno-extra \
182	-Wno-ignored-qualifiers \
183	-Wno-type-limits \
184	-Wno-unused-but-set-variable \
185	-Wno-address \
186	-Wno-format-security \
187	-Wno-return-type \
188	-Wno-sequence-point \
189	-Os \
190	-fno-ident \
191	-fdata-sections \
192	-ffunction-sections \
193	-fomit-frame-pointer \
194	-funwind-tables
195
196MY_DEFS_Release := \
197	'-DV8_DEPRECATION_WARNINGS' \
198	'-D_FILE_OFFSET_BITS=64' \
199	'-DNO_TCMALLOC' \
200	'-DDISABLE_NACL' \
201	'-DCHROMIUM_BUILD' \
202	'-DUSE_LIBJPEG_TURBO=1' \
203	'-DENABLE_WEBRTC=1' \
204	'-DUSE_PROPRIETARY_CODECS' \
205	'-DENABLE_BROWSER_CDMS' \
206	'-DENABLE_CONFIGURATION_POLICY' \
207	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
208	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
209	'-DENABLE_EGLIMAGE=1' \
210	'-DCLD_VERSION=1' \
211	'-DENABLE_PRINTING=1' \
212	'-DENABLE_MANAGED_USERS=1' \
213	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
214	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
215	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
216	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
217	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
218	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
219	'-DVIDEO_HOLE=1' \
220	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
221	'-DCHROME_PNG_WRITE_SUPPORT' \
222	'-DPNG_USER_CONFIG' \
223	'-DCHROME_PNG_READ_PACK_SUPPORT' \
224	'-DUSE_OPENSSL=1' \
225	'-DUSE_OPENSSL_CERTS=1' \
226	'-DANDROID' \
227	'-D__GNU_SOURCE=1' \
228	'-DUSE_STLPORT=1' \
229	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
230	'-DCHROME_BUILD_ID=""' \
231	'-DNDEBUG' \
232	'-DNVALGRIND' \
233	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
234
235
236# Include paths placed before CFLAGS/CPPFLAGS
237LOCAL_C_INCLUDES_Release := \
238	$(gyp_shared_intermediate_dir) \
239	$(LOCAL_PATH)/third_party/zlib \
240	$(PWD)/frameworks/wilhelm/include \
241	$(PWD)/bionic \
242	$(PWD)/external/stlport/stlport
243
244
245# Flags passed to only C++ (and not C) files.
246LOCAL_CPPFLAGS_Release := \
247	-fno-exceptions \
248	-fno-rtti \
249	-fno-threadsafe-statics \
250	-fvisibility-inlines-hidden \
251	-Wno-deprecated \
252	-Wno-abi \
253	-std=gnu++11 \
254	-Wno-narrowing \
255	-Wno-literal-suffix \
256	-Wno-non-virtual-dtor \
257	-Wno-sign-promo \
258	-Wno-non-virtual-dtor
259
260
261LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
262LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
263LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
264LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
265### Rules for final target.
266
267LOCAL_SHARED_LIBRARIES := \
268	libstlport \
269	libdl
270
271# Add target alias to "gyp_all_modules" target.
272.PHONY: gyp_all_modules
273gyp_all_modules: third_party_libpng_libpng_gyp
274
275# Alias gyp target name.
276.PHONY: libpng
277libpng: third_party_libpng_libpng_gyp
278
279include $(BUILD_STATIC_LIBRARY)
280