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