blob: e7bff8eaccac6bf717ac0c14b04fd23ee9f4169e [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
Tao Bao1022ede2017-10-10 16:55:42 -070015cc_library {
Colin Cross44bb3ea2016-07-11 16:24:15 -070016 name: "libbz",
17 host_supported: true,
Bill Peckham43b1a422019-09-17 16:49:41 -070018 vendor_available: true,
Dan Willemsena04d8e92018-10-23 13:44:08 -070019 recovery_available: true,
Colin Cross44bb3ea2016-07-11 16:24:15 -070020 arch: {
21 arm: {
22 // measurements show that the ARM version of ZLib is about x1.17 faster
23 // than the thumb one...
24 instruction_set: "arm",
25 },
26 },
27 cflags: [
28 "-O3",
29 "-DUSE_MMAP",
Chih-Hung Hsieh0f5d30b2017-09-27 10:30:39 -070030 "-Werror",
Colin Cross44bb3ea2016-07-11 16:24:15 -070031 "-Wno-unused-parameter",
32 ],
33 export_include_dirs: ["."],
34 srcs: [
35 "blocksort.c",
36 "bzlib.c",
37 "compress.c",
38 "crctable.c",
39 "decompress.c",
40 "huffman.c",
41 "randtable.c",
42 ],
43 sdk_version: "9",
44 stl: "none",
45}
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070046
47cc_binary {
48 name: "bzip2",
Elliott Hughes3a0c8892019-02-19 12:49:59 -080049 host_supported: true,
50
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070051 cflags: [
Chih-Hung Hsieh0f5d30b2017-09-27 10:30:39 -070052 "-Werror",
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070053 "-Wno-unused-parameter",
54 ],
Elliott Hughes834d8f22019-09-23 12:08:19 -070055 static_libs: ["libbz"],
Elliott Hughes3a0c8892019-02-19 12:49:59 -080056 srcs: ["bzip2.c"],
57 stl: "none",
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070058 symlinks: [
59 "bunzip2",
60 "bzcat",
61 ],
62}