Colin Cross | 44bb3ea | 2016-07-11 16:24:15 -0700 | [diff] [blame] | 1 | // 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 Bao | 1022ede | 2017-10-10 16:55:42 -0700 | [diff] [blame] | 15 | cc_library { |
Colin Cross | 44bb3ea | 2016-07-11 16:24:15 -0700 | [diff] [blame] | 16 | name: "libbz", |
| 17 | host_supported: true, |
Dan Willemsen | a04d8e9 | 2018-10-23 13:44:08 -0700 | [diff] [blame] | 18 | recovery_available: true, |
Colin Cross | 44bb3ea | 2016-07-11 16:24:15 -0700 | [diff] [blame] | 19 | 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 Hsieh | 0f5d30b | 2017-09-27 10:30:39 -0700 | [diff] [blame] | 29 | "-Werror", |
Colin Cross | 44bb3ea | 2016-07-11 16:24:15 -0700 | [diff] [blame] | 30 | "-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 Hughes | 9fa5f2d | 2017-03-27 22:58:44 -0700 | [diff] [blame] | 45 | |
| 46 | cc_binary { |
| 47 | name: "bzip2", |
Elliott Hughes | 3a0c889 | 2019-02-19 12:49:59 -0800 | [diff] [blame] | 48 | host_supported: true, |
| 49 | |
Elliott Hughes | 9fa5f2d | 2017-03-27 22:58:44 -0700 | [diff] [blame] | 50 | cflags: [ |
Chih-Hung Hsieh | 0f5d30b | 2017-09-27 10:30:39 -0700 | [diff] [blame] | 51 | "-Werror", |
Elliott Hughes | 9fa5f2d | 2017-03-27 22:58:44 -0700 | [diff] [blame] | 52 | "-Wno-unused-parameter", |
| 53 | ], |
Elliott Hughes | 3a0c889 | 2019-02-19 12:49:59 -0800 | [diff] [blame] | 54 | shared_libs: ["libbz"], |
| 55 | srcs: ["bzip2.c"], |
| 56 | stl: "none", |
Elliott Hughes | 9fa5f2d | 2017-03-27 22:58:44 -0700 | [diff] [blame] | 57 | symlinks: [ |
| 58 | "bunzip2", |
| 59 | "bzcat", |
| 60 | ], |
| 61 | } |