• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16cc_library {
17    name: "libbrotli",
18    host_supported: true,
19    recovery_available: true,
20    cflags: [
21        "-Werror",
22        "-O2",
23    ],
24    export_include_dirs: ["c/include"],
25    srcs: [
26        "c/common/*.c",
27        "c/dec/*.c",
28        "c/enc/*.c",
29    ],
30    target: {
31        linux_bionic: {
32            enabled: true,
33        },
34    },
35    stl: "none",
36}
37
38cc_binary {
39    name: "brotli",
40    host_supported: true,
41    cflags: ["-Werror"],
42    srcs: ["c/tools/brotli.c"],
43    target: {
44        linux_bionic: {
45            enabled: true,
46        },
47    },
48    shared_libs: ["libbrotli"],
49}
50
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"],
61    sdk_version: "current",
62}
63