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