blob: c9c0e13f8cb6b5c6eebb133ba6a18a3eeba5fffc [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",
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"],
48 // This is only static because we don't currently have libbz.so on device.
49 // If that changes, change this too.
50 static_libs: ["libbz"],
51 stl: "none",
52 cflags: [
Chih-Hung Hsieh0f5d30b2017-09-27 10:30:39 -070053 "-Werror",
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070054 "-Wno-unused-parameter",
55 ],
56 symlinks: [
57 "bunzip2",
58 "bzcat",
59 ],
60}