blob: f5551dbf2c2ed5f692a2034185c4746ea39564d9 [file] [log] [blame]
Colin Crossf55cbaf2018-09-11 15:45:18 -07001// 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 Hughes7e4c2692017-05-23 13:40:14 -070016cc_library {
17 name: "libbrotli",
Tianjie Xuefe81522017-07-06 15:35:29 -070018 host_supported: true,
Bill Peckham2254e7c2019-09-17 16:46:36 -070019 vendor_available: true,
Dan Willemsen76c29522018-10-23 13:40:03 -070020 recovery_available: true,
Elliott Hughes7e4c2692017-05-23 13:40:14 -070021 cflags: [
22 "-Werror",
23 "-O2",
24 ],
Alex Deymo06117152017-11-09 20:25:41 +010025 export_include_dirs: ["c/include"],
Elliott Hughes7e4c2692017-05-23 13:40:14 -070026 srcs: [
Alex Deymo06117152017-11-09 20:25:41 +010027 "c/common/*.c",
28 "c/dec/*.c",
29 "c/enc/*.c",
Elliott Hughes7e4c2692017-05-23 13:40:14 -070030 ],
Tianjie Xuefe81522017-07-06 15:35:29 -070031 target: {
32 linux_bionic: {
33 enabled: true,
34 },
35 },
Elliott Hughes7e4c2692017-05-23 13:40:14 -070036 stl: "none",
37}
38
39cc_binary {
Alex Deymo06117152017-11-09 20:25:41 +010040 name: "brotli",
Tianjie Xuefe81522017-07-06 15:35:29 -070041 host_supported: true,
Elliott Hughes7e4c2692017-05-23 13:40:14 -070042 cflags: ["-Werror"],
Alex Deymo06117152017-11-09 20:25:41 +010043 srcs: ["c/tools/brotli.c"],
Tianjie Xuefe81522017-07-06 15:35:29 -070044 target: {
45 linux_bionic: {
46 enabled: true,
47 },
48 },
Elliott Hughes7e4c2692017-05-23 13:40:14 -070049 shared_libs: ["libbrotli"],
50}
Colin Crossf55cbaf2018-09-11 15:45:18 -070051
52//
53// Support for brotli in java code.
54//
55
56java_library {
57 name: "brotli-java",
58 host_supported: true,
59 hostdex: true,
60 srcs: ["java/**/*.java"],
61 exclude_srcs: ["java/**/*Test.java"],
Jeff Sharkey1ac7fc62018-10-02 10:57:12 -060062 sdk_version: "current",
Colin Crossf55cbaf2018-09-11 15:45:18 -070063}