blob: c36085a643d6df54016dea64fccbaba2368fbd1e [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,
Dan Willemsen76c29522018-10-23 13:40:03 -070019 recovery_available: true,
Elliott Hughes7e4c2692017-05-23 13:40:14 -070020 cflags: [
21 "-Werror",
22 "-O2",
23 ],
Alex Deymo06117152017-11-09 20:25:41 +010024 export_include_dirs: ["c/include"],
Elliott Hughes7e4c2692017-05-23 13:40:14 -070025 srcs: [
Alex Deymo06117152017-11-09 20:25:41 +010026 "c/common/*.c",
27 "c/dec/*.c",
28 "c/enc/*.c",
Elliott Hughes7e4c2692017-05-23 13:40:14 -070029 ],
Tianjie Xuefe81522017-07-06 15:35:29 -070030 target: {
31 linux_bionic: {
32 enabled: true,
33 },
34 },
Elliott Hughes7e4c2692017-05-23 13:40:14 -070035 stl: "none",
36}
37
38cc_binary {
Alex Deymo06117152017-11-09 20:25:41 +010039 name: "brotli",
Tianjie Xuefe81522017-07-06 15:35:29 -070040 host_supported: true,
Elliott Hughes7e4c2692017-05-23 13:40:14 -070041 cflags: ["-Werror"],
Alex Deymo06117152017-11-09 20:25:41 +010042 srcs: ["c/tools/brotli.c"],
Tianjie Xuefe81522017-07-06 15:35:29 -070043 target: {
44 linux_bionic: {
45 enabled: true,
46 },
47 },
Elliott Hughes7e4c2692017-05-23 13:40:14 -070048 shared_libs: ["libbrotli"],
49}
Colin Crossf55cbaf2018-09-11 15:45:18 -070050
51//
52// Support for brotli in java code.
53//
54
55java_library {
56 name: "brotli-java",
57 host_supported: true,
58 hostdex: true,
59 srcs: ["java/**/*.java"],
60 exclude_srcs: ["java/**/*Test.java"],
Jeff Sharkey1ac7fc62018-10-02 10:57:12 -060061 sdk_version: "current",
Colin Crossf55cbaf2018-09-11 15:45:18 -070062}