minizip.target.linux-mips.mk revision e31802ad5b5d9fdf7daba665b671e9ecee368cb8
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_minizip_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/contrib/minizip/ioapi.c \
26	third_party/zlib/contrib/minizip/unzip.c \
27	third_party/zlib/contrib/minizip/zip.c
28
29
30# Flags passed to both C and C++ files.
31MY_CFLAGS := \
32	-fstack-protector \
33	--param=ssp-buffer-size=4 \
34	 \
35	-fno-exceptions \
36	-fno-strict-aliasing \
37	-Wno-unused-parameter \
38	-Wno-missing-field-initializers \
39	-fvisibility=hidden \
40	-pipe \
41	-fPIC \
42	-Wno-format \
43	-EL \
44	-mhard-float \
45	--sysroot=/usr/local/google2/src/clank/webview/external/chromium_org/mipsel-sysroot/sysroot \
46	-ffunction-sections \
47	-funwind-tables \
48	-g \
49	-fstack-protector \
50	-fno-short-enums \
51	-finline-limit=64 \
52	-Wa,--noexecstack \
53	-U_FORTIFY_SOURCE \
54	-Wno-extra \
55	-Wno-ignored-qualifiers \
56	-Wno-type-limits \
57	-Wno-address \
58	-Wno-format-security \
59	-Wno-return-type \
60	-Wno-sequence-point \
61	-Os \
62	-g \
63	-fomit-frame-pointer \
64	-fdata-sections \
65	-ffunction-sections
66
67MY_CFLAGS_C :=
68
69MY_DEFS := \
70	'-DANGLE_DX11' \
71	'-D_FILE_OFFSET_BITS=64' \
72	'-DNO_TCMALLOC' \
73	'-DDISABLE_NACL' \
74	'-DCHROMIUM_BUILD' \
75	'-DUSE_LIBJPEG_TURBO=1' \
76	'-DUSE_PROPRIETARY_CODECS' \
77	'-DENABLE_GPU=1' \
78	'-DUSE_OPENSSL=1' \
79	'-DENABLE_EGLIMAGE=1' \
80	'-DENABLE_LANGUAGE_DETECTION=1' \
81	'-DUSE_FILE32API' \
82	'-DANDROID' \
83	'-D__GNU_SOURCE=1' \
84	'-DUSE_STLPORT=1' \
85	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
86	'-DCHROME_BUILD_ID=""' \
87	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
88	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
89	'-D_DEBUG'
90
91LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
92
93# Include paths placed before CFLAGS/CPPFLAGS
94LOCAL_C_INCLUDES := \
95	$(LOCAL_PATH)/third_party/zlib \
96	$(LOCAL_PATH) \
97	$(PWD)/frameworks/wilhelm/include \
98	$(PWD)/bionic \
99	$(PWD)/external/stlport/stlport
100
101LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
102
103# Flags passed to only C++ (and not C) files.
104LOCAL_CPPFLAGS := \
105	-fno-rtti \
106	-fno-threadsafe-statics \
107	-fvisibility-inlines-hidden \
108	-Wno-deprecated \
109	-Wno-uninitialized \
110	-Wno-error=c++0x-compat \
111	-Wno-non-virtual-dtor \
112	-Wno-sign-promo \
113	-Wno-non-virtual-dtor
114
115### Rules for final target.
116
117LOCAL_LDFLAGS := \
118	-Wl,-z,now \
119	-Wl,-z,relro \
120	-Wl,-z,noexecstack \
121	-fPIC \
122	-EL \
123	-Wl,--no-keep-memory \
124	--sysroot=/usr/local/google2/src/clank/webview/external/chromium_org/mipsel-sysroot/sysroot \
125	 \
126	-nostdlib \
127	-Wl,--no-undefined \
128	-Wl,--exclude-libs=ALL \
129	-Wl,--gc-sections \
130	-Wl,-O1 \
131	-Wl,--as-needed
132
133
134LOCAL_STATIC_LIBRARIES :=
135
136# Enable grouping to fix circular references
137LOCAL_GROUP_STATIC_LIBRARIES := true
138
139LOCAL_SHARED_LIBRARIES := \
140	libstlport \
141	libdl
142
143# Add target alias to "gyp_all_modules" target.
144.PHONY: gyp_all_modules
145gyp_all_modules: third_party_zlib_minizip_gyp
146
147# Alias gyp target name.
148.PHONY: minizip
149minizip: third_party_zlib_minizip_gyp
150
151include $(BUILD_STATIC_LIBRARY)
152