• 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_library_static {
26    name: "libscriptedbeaconpayload-protos-lite",
27    host_supported: true,
28    proprietary: true,
29    proto: {
30        export_proto_headers: true,
31        type: "lite",
32    },
33    srcs: ["scripted_beacon_ble_payload.proto"],
34}
35
36cc_binary {
37    name: "android.hardware.bluetooth@1.1-service.sim",
38    defaults: ["rootcanal_defaults"],
39    proprietary: true,
40    relative_install_path: "hw",
41    srcs: [
42        "bluetooth_hci.cc",
43        "scripted_beacon.cc",
44        "service.cc",
45    ],
46    visibility: [
47        "//platform_testing/libraries/sts-common-util/host-side/rootcanal",
48    ],
49    shared_libs: [
50        "android.hardware.bluetooth@1.0",
51        "android.hardware.bluetooth@1.1",
52        "libbase",
53        "libcrypto",
54        "libcutils",
55        "libhidlbase",
56        "liblog",
57        "libprotobuf-cpp-full",
58        "libutils",
59    ],
60    cflags: [
61        "-fvisibility=hidden",
62    ],
63    whole_static_libs: [
64        "libbt-rootcanal",
65    ],
66    static_libs: [
67        "android.hardware.bluetooth-async",
68        "android.hardware.bluetooth-hci",
69        "libscriptedbeaconpayload-protos-lite",
70    ],
71    init_rc: ["android.hardware.bluetooth@1.1-service.sim.rc"],
72}
73
74cc_library_shared {
75    name: "android.hardware.bluetooth@1.1-impl-sim",
76    defaults: ["rootcanal_defaults"],
77    proprietary: true,
78    relative_install_path: "hw",
79    srcs: [
80        "bluetooth_hci.cc",
81    ],
82    visibility: [
83        "//platform_testing/libraries/sts-common-util/host-side/rootcanal",
84    ],
85    shared_libs: [
86        "android.hardware.bluetooth@1.0",
87        "android.hardware.bluetooth@1.1",
88        "libbase",
89        "libcrypto",
90        "libcutils",
91        "libhidlbase",
92        "liblog",
93        "libprotobuf-cpp-full",
94        "libutils",
95    ],
96    whole_static_libs: [
97        "libbt-rootcanal",
98    ],
99    static_libs: [
100        "android.hardware.bluetooth-async",
101        "android.hardware.bluetooth-hci",
102        "libscriptedbeaconpayload-protos-lite",
103    ],
104}
105