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