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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
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-strict-aliasing \
49	-Wno-unused-parameter \
50	-Wno-missing-field-initializers \
51	-fvisibility=hidden \
52	-pipe \
53	-fPIC \
54	-Wno-unused-local-typedefs \
55	-Wno-format \
56	-msse2 \
57	-mfpmath=sse \
58	-mmmx \
59	-m32 \
60	-ffunction-sections \
61	-funwind-tables \
62	-g \
63	-fno-short-enums \
64	-finline-limit=64 \
65	-Wa,--noexecstack \
66	-U_FORTIFY_SOURCE \
67	-Wno-extra \
68	-Wno-ignored-qualifiers \
69	-Wno-type-limits \
70	-Wno-unused-but-set-variable \
71	-fno-stack-protector \
72	-Wno-address \
73	-Wno-format-security \
74	-Wno-return-type \
75	-Wno-sequence-point \
76	-Os \
77	-g \
78	-gdwarf-4 \
79	-fdata-sections \
80	-ffunction-sections \
81	-fomit-frame-pointer \
82	-funwind-tables
83
84MY_DEFS_Debug := \
85	'-DV8_DEPRECATION_WARNINGS' \
86	'-D_FILE_OFFSET_BITS=64' \
87	'-DNO_TCMALLOC' \
88	'-DDISABLE_NACL' \
89	'-DCHROMIUM_BUILD' \
90	'-DUSE_LIBJPEG_TURBO=1' \
91	'-DENABLE_WEBRTC=1' \
92	'-DUSE_PROPRIETARY_CODECS' \
93	'-DENABLE_BROWSER_CDMS' \
94	'-DENABLE_CONFIGURATION_POLICY' \
95	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
96	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
97	'-DENABLE_EGLIMAGE=1' \
98	'-DCLD_VERSION=1' \
99	'-DENABLE_PRINTING=1' \
100	'-DENABLE_MANAGED_USERS=1' \
101	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
102	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
103	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
104	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
105	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
106	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
107	'-DVIDEO_HOLE=1' \
108	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
109	'-D_7ZIP_ST' \
110	'-D_LZMA_PROB32' \
111	'-DUSE_OPENSSL=1' \
112	'-DUSE_OPENSSL_CERTS=1' \
113	'-DANDROID' \
114	'-D__GNU_SOURCE=1' \
115	'-DUSE_STLPORT=1' \
116	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
117	'-DCHROME_BUILD_ID=""' \
118	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
119	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
120	'-D_DEBUG'
121
122
123# Include paths placed before CFLAGS/CPPFLAGS
124LOCAL_C_INCLUDES_Debug := \
125	$(gyp_shared_intermediate_dir) \
126	$(LOCAL_PATH)/third_party/lzma_sdk \
127	$(PWD)/frameworks/wilhelm/include \
128	$(PWD)/bionic \
129	$(PWD)/external/stlport/stlport
130
131
132# Flags passed to only C++ (and not C) files.
133LOCAL_CPPFLAGS_Debug := \
134	-fno-exceptions \
135	-fno-rtti \
136	-fno-threadsafe-statics \
137	-fvisibility-inlines-hidden \
138	-Wno-deprecated \
139	-std=gnu++11 \
140	-Wno-narrowing \
141	-Wno-literal-suffix \
142	-Wno-non-virtual-dtor \
143	-Wno-sign-promo \
144	-Wno-non-virtual-dtor
145
146
147# Flags passed to both C and C++ files.
148MY_CFLAGS_Release := \
149	--param=ssp-buffer-size=4 \
150	-fno-strict-aliasing \
151	-Wno-unused-parameter \
152	-Wno-missing-field-initializers \
153	-fvisibility=hidden \
154	-pipe \
155	-fPIC \
156	-Wno-unused-local-typedefs \
157	-Wno-format \
158	-msse2 \
159	-mfpmath=sse \
160	-mmmx \
161	-m32 \
162	-ffunction-sections \
163	-funwind-tables \
164	-g \
165	-fno-short-enums \
166	-finline-limit=64 \
167	-Wa,--noexecstack \
168	-U_FORTIFY_SOURCE \
169	-Wno-extra \
170	-Wno-ignored-qualifiers \
171	-Wno-type-limits \
172	-Wno-unused-but-set-variable \
173	-fno-stack-protector \
174	-Wno-address \
175	-Wno-format-security \
176	-Wno-return-type \
177	-Wno-sequence-point \
178	-Os \
179	-fno-ident \
180	-fdata-sections \
181	-ffunction-sections \
182	-fomit-frame-pointer \
183	-funwind-tables
184
185MY_DEFS_Release := \
186	'-DV8_DEPRECATION_WARNINGS' \
187	'-D_FILE_OFFSET_BITS=64' \
188	'-DNO_TCMALLOC' \
189	'-DDISABLE_NACL' \
190	'-DCHROMIUM_BUILD' \
191	'-DUSE_LIBJPEG_TURBO=1' \
192	'-DENABLE_WEBRTC=1' \
193	'-DUSE_PROPRIETARY_CODECS' \
194	'-DENABLE_BROWSER_CDMS' \
195	'-DENABLE_CONFIGURATION_POLICY' \
196	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
197	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
198	'-DENABLE_EGLIMAGE=1' \
199	'-DCLD_VERSION=1' \
200	'-DENABLE_PRINTING=1' \
201	'-DENABLE_MANAGED_USERS=1' \
202	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
203	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
204	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
205	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
206	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
207	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
208	'-DVIDEO_HOLE=1' \
209	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
210	'-D_7ZIP_ST' \
211	'-D_LZMA_PROB32' \
212	'-DUSE_OPENSSL=1' \
213	'-DUSE_OPENSSL_CERTS=1' \
214	'-DANDROID' \
215	'-D__GNU_SOURCE=1' \
216	'-DUSE_STLPORT=1' \
217	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
218	'-DCHROME_BUILD_ID=""' \
219	'-DNDEBUG' \
220	'-DNVALGRIND' \
221	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
222
223
224# Include paths placed before CFLAGS/CPPFLAGS
225LOCAL_C_INCLUDES_Release := \
226	$(gyp_shared_intermediate_dir) \
227	$(LOCAL_PATH)/third_party/lzma_sdk \
228	$(PWD)/frameworks/wilhelm/include \
229	$(PWD)/bionic \
230	$(PWD)/external/stlport/stlport
231
232
233# Flags passed to only C++ (and not C) files.
234LOCAL_CPPFLAGS_Release := \
235	-fno-exceptions \
236	-fno-rtti \
237	-fno-threadsafe-statics \
238	-fvisibility-inlines-hidden \
239	-Wno-deprecated \
240	-std=gnu++11 \
241	-Wno-narrowing \
242	-Wno-literal-suffix \
243	-Wno-non-virtual-dtor \
244	-Wno-sign-promo \
245	-Wno-non-virtual-dtor
246
247
248LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
249LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
250LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
251LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
252### Rules for final target.
253
254LOCAL_SHARED_LIBRARIES := \
255	libstlport \
256	libdl
257
258# Add target alias to "gyp_all_modules" target.
259.PHONY: gyp_all_modules
260gyp_all_modules: third_party_lzma_sdk_lzma_sdk_gyp
261
262# Alias gyp target name.
263.PHONY: lzma_sdk
264lzma_sdk: third_party_lzma_sdk_lzma_sdk_gyp
265
266include $(BUILD_STATIC_LIBRARY)
267