blob: 21d7bfa3f31dabb29a377f08521f517e3ad6317f [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
Bill Peckham9f8ec252019-10-17 18:03:15 -070015cc_library_static {
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,
Bill Peckham9f8ec252019-10-17 18:03:15 -070020 visibility: [
21 "//bootable/recovery:__subpackages__",
22 "//external/bsdiff:__subpackages__",
23 "//external/puffin:__subpackages__",
24 "//system/update_engine:__subpackages__",
25 ],
Colin Cross44bb3ea2016-07-11 16:24:15 -070026 arch: {
27 arm: {
28 // measurements show that the ARM version of ZLib is about x1.17 faster
29 // than the thumb one...
30 instruction_set: "arm",
31 },
32 },
33 cflags: [
34 "-O3",
35 "-DUSE_MMAP",
Chih-Hung Hsieh0f5d30b2017-09-27 10:30:39 -070036 "-Werror",
Colin Cross44bb3ea2016-07-11 16:24:15 -070037 "-Wno-unused-parameter",
38 ],
39 export_include_dirs: ["."],
40 srcs: [
41 "blocksort.c",
42 "bzlib.c",
43 "compress.c",
44 "crctable.c",
45 "decompress.c",
46 "huffman.c",
47 "randtable.c",
48 ],
49 sdk_version: "9",
50 stl: "none",
51}
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070052
53cc_binary {
54 name: "bzip2",
Elliott Hughes3a0c8892019-02-19 12:49:59 -080055 host_supported: true,
56
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070057 cflags: [
Chih-Hung Hsieh0f5d30b2017-09-27 10:30:39 -070058 "-Werror",
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070059 "-Wno-unused-parameter",
60 ],
Elliott Hughes834d8f22019-09-23 12:08:19 -070061 static_libs: ["libbz"],
Elliott Hughes3a0c8892019-02-19 12:49:59 -080062 srcs: ["bzip2.c"],
63 stl: "none",
Elliott Hughes9fa5f2d2017-03-27 22:58:44 -070064 symlinks: [
65 "bunzip2",
66 "bzcat",
67 ],
68}