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 15 cc_library { 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", 28 "-Werror", 29 "-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 } 44 45 cc_binary { 46 name: "bzip2", 47 srcs: ["bzip2.c"], 48 shared_libs: ["libbz"], 49 stl: "none", 50 cflags: [ 51 "-Werror", 52 "-Wno-unused-parameter", 53 ], 54 symlinks: [ 55 "bunzip2", 56 "bzcat", 57 ], 58 } 59