blob: a2023e7b5b37aa8b57bf1567caf89c44d4e71f37 [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,
Dan Willemsena04d8e92018-10-23 13:44:08 -070018 recovery_available: true,
Colin Cross44bb3ea2016-07-11 16:24:15 -070019 arch: {
20 arm: {
21 // measurements show that the ARM version of ZLib is about x1.17 faster
22 // than the thumb one...
23 instruction_set: "arm",
24 },
25 },
26 cflags: [
27 "-O3",
28 "-DUSE_MMAP",
Chih-Hung Hsieh0f5d30b2017-09-27 10:30:39 -070029 "-Werror",
Colin Cross44bb3ea2016-07-11 16:24:15 -070030 "-Wno-unused-parameter",
31 ],
32 export_include_dirs: ["."],
33 srcs: [
34 "blocksort.c",
35 "bzlib.c",
36 "compress.c",
37 "crctable.c",
38 "decompress.c",
39 "huffman.c",
40 "randtable.c",
41 ],
42 sdk_version: "9",
43 stl: "none",
44}
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070045
46cc_binary {
47 name: "bzip2",
Elliott Hughes3a0c8892019-02-19 12:49:59 -080048 host_supported: true,
49
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070050 cflags: [
Chih-Hung Hsieh0f5d30b2017-09-27 10:30:39 -070051 "-Werror",
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070052 "-Wno-unused-parameter",
53 ],
Elliott Hughes3a0c8892019-02-19 12:49:59 -080054 shared_libs: ["libbz"],
55 srcs: ["bzip2.c"],
56 stl: "none",
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070057 symlinks: [
58 "bunzip2",
59 "bzcat",
60 ],
61}