zlib.target.darwin-mips.mk revision 3c54152607de4272b3da0c146b71dcba8a0e5610
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 := \
44	-fstack-protector \
45	--param=ssp-buffer-size=4 \
46	 \
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	-EL \
56	-mhard-float \
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_CFLAGS_C :=
79
80MY_DEFS := \
81	'-DANGLE_DX11' \
82	'-D_FILE_OFFSET_BITS=64' \
83	'-DNO_TCMALLOC' \
84	'-DDISABLE_NACL' \
85	'-DCHROMIUM_BUILD' \
86	'-DUSE_LIBJPEG_TURBO=1' \
87	'-DUSE_PROPRIETARY_CODECS' \
88	'-DENABLE_GPU=1' \
89	'-DUSE_OPENSSL=1' \
90	'-DENABLE_EGLIMAGE=1' \
91	'-DENABLE_LANGUAGE_DETECTION=1' \
92	'-DANDROID' \
93	'-D__GNU_SOURCE=1' \
94	'-DUSE_STLPORT=1' \
95	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
96	'-DCHROME_BUILD_ID=""' \
97	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
98	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
99	'-D_DEBUG'
100
101LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
102
103# Include paths placed before CFLAGS/CPPFLAGS
104LOCAL_C_INCLUDES := \
105	$(LOCAL_PATH)/third_party/zlib \
106	$(PWD)/frameworks/wilhelm/include \
107	$(PWD)/bionic \
108	$(PWD)/external/stlport/stlport
109
110LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
111
112# Flags passed to only C++ (and not C) files.
113LOCAL_CPPFLAGS := \
114	-fno-rtti \
115	-fno-threadsafe-statics \
116	-fvisibility-inlines-hidden \
117	-Wno-deprecated \
118	-Wno-uninitialized \
119	-Wno-error=c++0x-compat \
120	-Wno-non-virtual-dtor \
121	-Wno-sign-promo \
122	-Wno-non-virtual-dtor
123
124### Rules for final target.
125
126LOCAL_LDFLAGS := \
127	-Wl,-z,now \
128	-Wl,-z,relro \
129	-Wl,-z,noexecstack \
130	-fPIC \
131	-EL \
132	-Wl,--no-keep-memory \
133	-nostdlib \
134	-Wl,--no-undefined \
135	-Wl,--exclude-libs=ALL \
136	-Wl,--gc-sections \
137	-Wl,-O1 \
138	-Wl,--as-needed
139
140
141LOCAL_STATIC_LIBRARIES :=
142
143# Enable grouping to fix circular references
144LOCAL_GROUP_STATIC_LIBRARIES := true
145
146LOCAL_SHARED_LIBRARIES := \
147	libstlport \
148	libdl
149
150# Add target alias to "gyp_all_modules" target.
151.PHONY: gyp_all_modules
152gyp_all_modules: third_party_zlib_zlib_gyp
153
154# Alias gyp target name.
155.PHONY: zlib
156zlib: third_party_zlib_zlib_gyp
157
158include $(BUILD_STATIC_LIBRARY)
159