blob: 730883d58d81266e4d01ee228c17357c049b7f00 [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,
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",
Chih-Hung Hsieh0f5d30b2017-09-27 10:30:39 -070028 "-Werror",
Colin Cross44bb3ea2016-07-11 16:24:15 -070029 "-Wno-unused-parameter",
30 ],
31 export_include_dirs: ["."],
32 srcs: [
33 "blocksort.c",
34 "bzlib.c",
35 "compress.c",
36 "crctable.c",
37 "decompress.c",
38 "huffman.c",
39 "randtable.c",
40 ],
41 sdk_version: "9",
42 stl: "none",
43}
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070044
45cc_binary {
46 name: "bzip2",
47 srcs: ["bzip2.c"],
Tao Bao1022ede2017-10-10 16:55:42 -070048 shared_libs: ["libbz"],
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070049 stl: "none",
50 cflags: [
Chih-Hung Hsieh0f5d30b2017-09-27 10:30:39 -070051 "-Werror",
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070052 "-Wno-unused-parameter",
53 ],
54 symlinks: [
55 "bunzip2",
56 "bzcat",
57 ],
58}