• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "system_bt_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["system_bt_license"],
23}
24
25cc_binary {
26    name: "android.hardware.bluetooth@1.1-service.btlinux",
27    proprietary: true,
28    relative_install_path: "hw",
29    srcs: [
30        "hci_packetizer.cc",
31        "h4_protocol.cc",
32        "bluetooth_hci.cc",
33        "service.cc",
34    ],
35    cflags: [
36        "-Wall",
37        "-Werror",
38    ],
39    header_libs: ["libbluetooth_headers"],
40    shared_libs: [
41        "android.hardware.bluetooth@1.0",
42        "android.hardware.bluetooth@1.1",
43        "libbase",
44        "libcutils",
45        "libhidlbase",
46        "liblog",
47        "libutils",
48    ],
49    static_libs: [
50        "async_fd_watcher",
51    ],
52    conlyflags: [
53        "-std=c99",
54    ],
55    init_rc: ["android.hardware.bluetooth@1.1-service.btlinux.rc"],
56}
57
58cc_library_static {
59    name: "async_fd_watcher",
60    proprietary: true,
61    srcs: [
62        "async_fd_watcher.cc",
63    ],
64    cflags: [
65        "-Wall",
66        "-Werror",
67    ],
68    shared_libs: [
69        "liblog",
70    ],
71    export_include_dirs: [
72        ".",
73    ],
74}