blob: 897dc778d727a31477e40a2e08e5797fe3cba268 [file] [log] [blame]
Colin Cross44bb3ea2016-07-11 16:24:15 -07001// Copyright (C) 2008 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Colin Cross44bb3ea2016-07-11 16:24:15 -070015cc_library_static {
16 name: "libbz",
17 host_supported: true,
18 arch: {
19 arm: {
20 // measurements show that the ARM version of ZLib is about x1.17 faster
21 // than the thumb one...
22 instruction_set: "arm",
23 },
24 },
25 cflags: [
26 "-O3",
27 "-DUSE_MMAP",
28 "-Wno-unused-parameter",
29 ],
30 export_include_dirs: ["."],
31 srcs: [
32 "blocksort.c",
33 "bzlib.c",
34 "compress.c",
35 "crctable.c",
36 "decompress.c",
37 "huffman.c",
38 "randtable.c",
39 ],
40 sdk_version: "9",
41 stl: "none",
42}
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070043
44cc_binary {
45 name: "bzip2",
46 srcs: ["bzip2.c"],
47 // This is only static because we don't currently have libbz.so on device.
48 // If that changes, change this too.
49 static_libs: ["libbz"],
50 stl: "none",
51 cflags: [
52 "-Wno-unused-parameter",
53 ],
54 symlinks: [
55 "bunzip2",
56 "bzcat",
57 ],
58}