Colin Cross | f55cbaf | 2018-09-11 15:45:18 -0700 | [diff] [blame] | 1 | // Copyright (C) 2017 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 | |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 16 | cc_library { |
| 17 | name: "libbrotli", |
Tianjie Xu | efe8152 | 2017-07-06 15:35:29 -0700 | [diff] [blame] | 18 | host_supported: true, |
Dan Willemsen | 76c2952 | 2018-10-23 13:40:03 -0700 | [diff] [blame^] | 19 | recovery_available: true, |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 20 | cflags: [ |
| 21 | "-Werror", |
| 22 | "-O2", |
| 23 | ], |
Alex Deymo | 0611715 | 2017-11-09 20:25:41 +0100 | [diff] [blame] | 24 | export_include_dirs: ["c/include"], |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 25 | srcs: [ |
Alex Deymo | 0611715 | 2017-11-09 20:25:41 +0100 | [diff] [blame] | 26 | "c/common/*.c", |
| 27 | "c/dec/*.c", |
| 28 | "c/enc/*.c", |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 29 | ], |
Tianjie Xu | efe8152 | 2017-07-06 15:35:29 -0700 | [diff] [blame] | 30 | target: { |
| 31 | linux_bionic: { |
| 32 | enabled: true, |
| 33 | }, |
| 34 | }, |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 35 | stl: "none", |
| 36 | } |
| 37 | |
| 38 | cc_binary { |
Alex Deymo | 0611715 | 2017-11-09 20:25:41 +0100 | [diff] [blame] | 39 | name: "brotli", |
Tianjie Xu | efe8152 | 2017-07-06 15:35:29 -0700 | [diff] [blame] | 40 | host_supported: true, |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 41 | cflags: ["-Werror"], |
Alex Deymo | 0611715 | 2017-11-09 20:25:41 +0100 | [diff] [blame] | 42 | srcs: ["c/tools/brotli.c"], |
Tianjie Xu | efe8152 | 2017-07-06 15:35:29 -0700 | [diff] [blame] | 43 | target: { |
| 44 | linux_bionic: { |
| 45 | enabled: true, |
| 46 | }, |
| 47 | }, |
Elliott Hughes | 7e4c269 | 2017-05-23 13:40:14 -0700 | [diff] [blame] | 48 | shared_libs: ["libbrotli"], |
| 49 | } |
Colin Cross | f55cbaf | 2018-09-11 15:45:18 -0700 | [diff] [blame] | 50 | |
| 51 | // |
| 52 | // Support for brotli in java code. |
| 53 | // |
| 54 | |
| 55 | java_library { |
| 56 | name: "brotli-java", |
| 57 | host_supported: true, |
| 58 | hostdex: true, |
| 59 | srcs: ["java/**/*.java"], |
| 60 | exclude_srcs: ["java/**/*Test.java"], |
Jeff Sharkey | 1ac7fc6 | 2018-10-02 10:57:12 -0600 | [diff] [blame] | 61 | sdk_version: "current", |
Colin Cross | f55cbaf | 2018-09-11 15:45:18 -0700 | [diff] [blame] | 62 | } |