lzma_sdk.target.linux-x86.mk revision f2477e01787aa58f445919b809d89e252beef54f
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	--param=ssp-buffer-size=4 \
48	-fno-exceptions \
49	-fno-strict-aliasing \
50	-Wno-unused-parameter \
51	-Wno-missing-field-initializers \
52	-fvisibility=hidden \
53	-pipe \
54	-fPIC \
55	-Wno-format \
56	-m32 \
57	-mmmx \
58	-march=pentium4 \
59	-msse2 \
60	-mfpmath=sse \
61	-fuse-ld=gold \
62	-ffunction-sections \
63	-funwind-tables \
64	-g \
65	-fno-short-enums \
66	-finline-limit=64 \
67	-Wa,--noexecstack \
68	-U_FORTIFY_SOURCE \
69	-Wno-extra \
70	-Wno-ignored-qualifiers \
71	-Wno-type-limits \
72	-fno-stack-protector \
73	-Wno-address \
74	-Wno-format-security \
75	-Wno-return-type \
76	-Wno-sequence-point \
77	-Os \
78	-g \
79	-fomit-frame-pointer \
80	-fdata-sections \
81	-ffunction-sections
82
83MY_DEFS_Debug := \
84	'-DANGLE_DX11' \
85	'-D_FILE_OFFSET_BITS=64' \
86	'-DNO_TCMALLOC' \
87	'-DDISABLE_NACL' \
88	'-DCHROMIUM_BUILD' \
89	'-DUSE_LIBJPEG_TURBO=1' \
90	'-DUSE_PROPRIETARY_CODECS' \
91	'-DENABLE_CONFIGURATION_POLICY' \
92	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
93	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
94	'-DUSE_OPENSSL=1' \
95	'-DENABLE_EGLIMAGE=1' \
96	'-DCLD_VERSION=1' \
97	'-DENABLE_MANAGED_USERS=1' \
98	'-D_7ZIP_ST' \
99	'-D_LZMA_PROB32' \
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/lzma_sdk \
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	-fno-stack-protector \
158	-Wno-address \
159	-Wno-format-security \
160	-Wno-return-type \
161	-Wno-sequence-point \
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	'-D_FILE_OFFSET_BITS=64' \
173	'-DNO_TCMALLOC' \
174	'-DDISABLE_NACL' \
175	'-DCHROMIUM_BUILD' \
176	'-DUSE_LIBJPEG_TURBO=1' \
177	'-DUSE_PROPRIETARY_CODECS' \
178	'-DENABLE_CONFIGURATION_POLICY' \
179	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
180	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
181	'-DUSE_OPENSSL=1' \
182	'-DENABLE_EGLIMAGE=1' \
183	'-DCLD_VERSION=1' \
184	'-DENABLE_MANAGED_USERS=1' \
185	'-D_7ZIP_ST' \
186	'-D_LZMA_PROB32' \
187	'-DANDROID' \
188	'-D__GNU_SOURCE=1' \
189	'-DUSE_STLPORT=1' \
190	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
191	'-DCHROME_BUILD_ID=""' \
192	'-DNDEBUG' \
193	'-DNVALGRIND' \
194	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
195
196
197# Include paths placed before CFLAGS/CPPFLAGS
198LOCAL_C_INCLUDES_Release := \
199	$(LOCAL_PATH)/third_party/lzma_sdk \
200	$(PWD)/frameworks/wilhelm/include \
201	$(PWD)/bionic \
202	$(PWD)/external/stlport/stlport
203
204
205# Flags passed to only C++ (and not C) files.
206LOCAL_CPPFLAGS_Release := \
207	-fno-rtti \
208	-fno-threadsafe-statics \
209	-fvisibility-inlines-hidden \
210	-Wno-deprecated \
211	-Wno-error=c++0x-compat \
212	-Wno-non-virtual-dtor \
213	-Wno-sign-promo \
214	-Wno-non-virtual-dtor
215
216
217LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
218LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
219LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
220### Rules for final target.
221
222LOCAL_LDFLAGS_Debug := \
223	-Wl,-z,now \
224	-Wl,-z,relro \
225	-Wl,-z,noexecstack \
226	-fPIC \
227	-m32 \
228	-fuse-ld=gold \
229	-nostdlib \
230	-Wl,--no-undefined \
231	-Wl,--exclude-libs=ALL \
232	-Wl,--fatal-warnings \
233	-Wl,--gc-sections \
234	-Wl,--warn-shared-textrel \
235	-Wl,-O1 \
236	-Wl,--as-needed
237
238
239LOCAL_LDFLAGS_Release := \
240	-Wl,-z,now \
241	-Wl,-z,relro \
242	-Wl,-z,noexecstack \
243	-fPIC \
244	-m32 \
245	-fuse-ld=gold \
246	-nostdlib \
247	-Wl,--no-undefined \
248	-Wl,--exclude-libs=ALL \
249	-Wl,-O1 \
250	-Wl,--as-needed \
251	-Wl,--gc-sections \
252	-Wl,--fatal-warnings \
253	-Wl,--warn-shared-textrel
254
255
256LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
257
258LOCAL_STATIC_LIBRARIES :=
259
260# Enable grouping to fix circular references
261LOCAL_GROUP_STATIC_LIBRARIES := true
262
263LOCAL_SHARED_LIBRARIES := \
264	libstlport \
265	libdl
266
267# Add target alias to "gyp_all_modules" target.
268.PHONY: gyp_all_modules
269gyp_all_modules: third_party_lzma_sdk_lzma_sdk_gyp
270
271# Alias gyp target name.
272.PHONY: lzma_sdk
273lzma_sdk: third_party_lzma_sdk_lzma_sdk_gyp
274
275include $(BUILD_STATIC_LIBRARY)
276