lzma_sdk.target.darwin-mips.mk revision 1e9bf3e0803691d0a228da41fc608347b6db4340
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_lzma_sdk_lzma_sdk_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/lzma_sdk/7zAlloc.c \
26	third_party/lzma_sdk/7zBuf.c \
27	third_party/lzma_sdk/7zCrc.c \
28	third_party/lzma_sdk/7zCrcOpt.c \
29	third_party/lzma_sdk/7zDec.c \
30	third_party/lzma_sdk/7zFile.c \
31	third_party/lzma_sdk/7zIn.c \
32	third_party/lzma_sdk/7zStream.c \
33	third_party/lzma_sdk/Alloc.c \
34	third_party/lzma_sdk/Bcj2.c \
35	third_party/lzma_sdk/Bra.c \
36	third_party/lzma_sdk/Bra86.c \
37	third_party/lzma_sdk/CpuArch.c \
38	third_party/lzma_sdk/LzFind.c \
39	third_party/lzma_sdk/Lzma2Dec.c \
40	third_party/lzma_sdk/LzmaEnc.c \
41	third_party/lzma_sdk/LzmaDec.c \
42	third_party/lzma_sdk/LzmaLib.c
43
44
45# Flags passed to both C and C++ files.
46MY_CFLAGS_Debug := \
47	-fstack-protector \
48	--param=ssp-buffer-size=4 \
49	 \
50	-fno-exceptions \
51	-fno-strict-aliasing \
52	-Wno-unused-parameter \
53	-Wno-missing-field-initializers \
54	-fvisibility=hidden \
55	-pipe \
56	-fPIC \
57	-Wno-format \
58	-EL \
59	-mhard-float \
60	-ffunction-sections \
61	-funwind-tables \
62	-g \
63	-fstack-protector \
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	-Os \
76	-g \
77	-fomit-frame-pointer \
78	-fdata-sections \
79	-ffunction-sections
80
81MY_DEFS_Debug := \
82	'-DANGLE_DX11' \
83	'-D_FILE_OFFSET_BITS=64' \
84	'-DNO_TCMALLOC' \
85	'-DDISABLE_NACL' \
86	'-DCHROMIUM_BUILD' \
87	'-DUSE_LIBJPEG_TURBO=1' \
88	'-DUSE_PROPRIETARY_CODECS' \
89	'-DENABLE_CONFIGURATION_POLICY' \
90	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
91	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
92	'-DUSE_OPENSSL=1' \
93	'-DENABLE_EGLIMAGE=1' \
94	'-DCLD_VERSION=1' \
95	'-D_7ZIP_ST' \
96	'-D_LZMA_PROB32' \
97	'-DANDROID' \
98	'-D__GNU_SOURCE=1' \
99	'-DUSE_STLPORT=1' \
100	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
101	'-DCHROME_BUILD_ID=""' \
102	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
103	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
104	'-D_DEBUG'
105
106
107# Include paths placed before CFLAGS/CPPFLAGS
108LOCAL_C_INCLUDES_Debug := \
109	$(LOCAL_PATH)/third_party/lzma_sdk \
110	$(PWD)/frameworks/wilhelm/include \
111	$(PWD)/bionic \
112	$(PWD)/external/stlport/stlport
113
114
115# Flags passed to only C++ (and not C) files.
116LOCAL_CPPFLAGS_Debug := \
117	-fno-rtti \
118	-fno-threadsafe-statics \
119	-fvisibility-inlines-hidden \
120	-Wno-deprecated \
121	-Wno-uninitialized \
122	-Wno-error=c++0x-compat \
123	-Wno-non-virtual-dtor \
124	-Wno-sign-promo \
125	-Wno-non-virtual-dtor
126
127
128# Flags passed to both C and C++ files.
129MY_CFLAGS_Release := \
130	-fstack-protector \
131	--param=ssp-buffer-size=4 \
132	 \
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	-EL \
142	-mhard-float \
143	-ffunction-sections \
144	-funwind-tables \
145	-g \
146	-fstack-protector \
147	-fno-short-enums \
148	-finline-limit=64 \
149	-Wa,--noexecstack \
150	-U_FORTIFY_SOURCE \
151	-Wno-extra \
152	-Wno-ignored-qualifiers \
153	-Wno-type-limits \
154	-Wno-address \
155	-Wno-format-security \
156	-Wno-return-type \
157	-Wno-sequence-point \
158	-Os \
159	-fno-ident \
160	-fdata-sections \
161	-ffunction-sections \
162	-fomit-frame-pointer
163
164MY_DEFS_Release := \
165	'-DANGLE_DX11' \
166	'-D_FILE_OFFSET_BITS=64' \
167	'-DNO_TCMALLOC' \
168	'-DDISABLE_NACL' \
169	'-DCHROMIUM_BUILD' \
170	'-DUSE_LIBJPEG_TURBO=1' \
171	'-DUSE_PROPRIETARY_CODECS' \
172	'-DENABLE_CONFIGURATION_POLICY' \
173	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
174	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
175	'-DUSE_OPENSSL=1' \
176	'-DENABLE_EGLIMAGE=1' \
177	'-DCLD_VERSION=1' \
178	'-D_7ZIP_ST' \
179	'-D_LZMA_PROB32' \
180	'-DANDROID' \
181	'-D__GNU_SOURCE=1' \
182	'-DUSE_STLPORT=1' \
183	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
184	'-DCHROME_BUILD_ID=""' \
185	'-DNDEBUG' \
186	'-DNVALGRIND' \
187	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
188
189
190# Include paths placed before CFLAGS/CPPFLAGS
191LOCAL_C_INCLUDES_Release := \
192	$(LOCAL_PATH)/third_party/lzma_sdk \
193	$(PWD)/frameworks/wilhelm/include \
194	$(PWD)/bionic \
195	$(PWD)/external/stlport/stlport
196
197
198# Flags passed to only C++ (and not C) files.
199LOCAL_CPPFLAGS_Release := \
200	-fno-rtti \
201	-fno-threadsafe-statics \
202	-fvisibility-inlines-hidden \
203	-Wno-deprecated \
204	-Wno-uninitialized \
205	-Wno-error=c++0x-compat \
206	-Wno-non-virtual-dtor \
207	-Wno-sign-promo \
208	-Wno-non-virtual-dtor
209
210
211LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
212LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
213LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
214### Rules for final target.
215
216LOCAL_LDFLAGS_Debug := \
217	-Wl,-z,now \
218	-Wl,-z,relro \
219	-Wl,-z,noexecstack \
220	-fPIC \
221	-EL \
222	-Wl,--no-keep-memory \
223	-nostdlib \
224	-Wl,--no-undefined \
225	-Wl,--exclude-libs=ALL \
226	-Wl,--fatal-warnings \
227	-Wl,--gc-sections \
228	-Wl,--warn-shared-textrel \
229	-Wl,-O1 \
230	-Wl,--as-needed
231
232
233LOCAL_LDFLAGS_Release := \
234	-Wl,-z,now \
235	-Wl,-z,relro \
236	-Wl,-z,noexecstack \
237	-fPIC \
238	-EL \
239	-Wl,--no-keep-memory \
240	-nostdlib \
241	-Wl,--no-undefined \
242	-Wl,--exclude-libs=ALL \
243	-Wl,-O1 \
244	-Wl,--as-needed \
245	-Wl,--gc-sections \
246	-Wl,--fatal-warnings \
247	-Wl,--warn-shared-textrel
248
249
250LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
251
252LOCAL_STATIC_LIBRARIES :=
253
254# Enable grouping to fix circular references
255LOCAL_GROUP_STATIC_LIBRARIES := true
256
257LOCAL_SHARED_LIBRARIES := \
258	libstlport \
259	libdl
260
261# Add target alias to "gyp_all_modules" target.
262.PHONY: gyp_all_modules
263gyp_all_modules: third_party_lzma_sdk_lzma_sdk_gyp
264
265# Alias gyp target name.
266.PHONY: lzma_sdk
267lzma_sdk: third_party_lzma_sdk_lzma_sdk_gyp
268
269include $(BUILD_STATIC_LIBRARY)
270