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