zlib.target.linux-x86.mk revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
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/gzio.c \
30	third_party/zlib/infback.c \
31	third_party/zlib/inffast.c \
32	third_party/zlib/inflate.c \
33	third_party/zlib/inftrees.c \
34	third_party/zlib/trees.c \
35	third_party/zlib/uncompr.c \
36	third_party/zlib/zutil.c
37
38
39# Flags passed to both C and C++ files.
40MY_CFLAGS := \
41	--param=ssp-buffer-size=4 \
42	-fno-exceptions \
43	-fno-strict-aliasing \
44	-Wno-unused-parameter \
45	-Wno-missing-field-initializers \
46	-fvisibility=hidden \
47	-pipe \
48	-fPIC \
49	-Wno-format \
50	-m32 \
51	-mmmx \
52	-march=pentium4 \
53	-msse2 \
54	-mfpmath=sse \
55	-ffunction-sections \
56	-funwind-tables \
57	-g \
58	-fno-short-enums \
59	-finline-limit=64 \
60	-Wa,--noexecstack \
61	-U_FORTIFY_SOURCE \
62	-Wno-extra \
63	-Wno-ignored-qualifiers \
64	-Wno-type-limits \
65	-Wno-address \
66	-Wno-format-security \
67	-Wno-return-type \
68	-Wno-sequence-point \
69	-fno-stack-protector \
70	-Os \
71	-g \
72	-fomit-frame-pointer \
73	-fdata-sections \
74	-ffunction-sections
75
76MY_CFLAGS_C :=
77
78MY_DEFS := \
79	'-DUSE_SKIA' \
80	'-D_FILE_OFFSET_BITS=64' \
81	'-DUSE_LINUX_BREAKPAD' \
82	'-DNO_TCMALLOC' \
83	'-DDISABLE_NACL' \
84	'-DCHROMIUM_BUILD' \
85	'-DUSE_LIBJPEG_TURBO=1' \
86	'-DUSE_PROPRIETARY_CODECS' \
87	'-DENABLE_PEPPER_THREADING' \
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	$(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \
107	$(GYP_ABS_ANDROID_TOP_DIR)/bionic \
108	$(GYP_ABS_ANDROID_TOP_DIR)/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-error=c++0x-compat \
119	-Wno-non-virtual-dtor \
120	-Wno-sign-promo \
121	-Wno-non-virtual-dtor
122
123### Rules for final target.
124
125LOCAL_LDFLAGS := \
126	-Wl,-z,now \
127	-Wl,-z,relro \
128	-Wl,-z,noexecstack \
129	-fPIC \
130	-m32 \
131	-nostdlib \
132	-Wl,--no-undefined \
133	-Wl,--exclude-libs=ALL \
134	-Wl,-O1 \
135	-Wl,--as-needed \
136	-Wl,--gc-sections
137
138
139LOCAL_STATIC_LIBRARIES :=
140
141# Enable grouping to fix circular references
142LOCAL_GROUP_STATIC_LIBRARIES := true
143
144LOCAL_SHARED_LIBRARIES := \
145	libstlport \
146	libdl
147
148# Add target alias to "gyp_all_modules" target.
149.PHONY: gyp_all_modules
150gyp_all_modules: third_party_zlib_zlib_gyp
151
152# Alias gyp target name.
153.PHONY: zlib
154zlib: third_party_zlib_zlib_gyp
155
156include $(BUILD_STATIC_LIBRARY)
157