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: ["gd_defaults"], 28 proprietary: true, 29 relative_install_path: "hw", 30 srcs: [ 31 "bluetooth_hci.cc", 32 "service.cc", 33 ], 34 35 header_libs: ["libbluetooth_headers"], 36 shared_libs: [ 37 "android.hardware.bluetooth@1.0", 38 "android.hardware.bluetooth@1.1", 39 "libbase", 40 "libchrome", 41 "libcutils", 42 "libhidlbase", 43 "liblog", 44 "libutils", 45 "libprotobuf-cpp-lite", 46 ], 47 cflags: [ 48 "-fvisibility=hidden", 49 "-Wall", 50 "-Wextra", 51 "-Werror", 52 "-DHAS_NO_BDROID_BUILDCFG", 53 ], 54 generated_headers: [ 55 "RootCanalGeneratedPackets_h", 56 "BluetoothGeneratedPackets_h", 57 "libbt_init_flags_bridge_header", 58 ], 59 static_libs: [ 60 "android.hardware.bluetooth-async", 61 "android.hardware.bluetooth-hci", 62 "libbt-rootcanal", 63 "libbt-rootcanal-types", 64 "libscriptedbeaconpayload-protos-lite", 65 ], 66 include_dirs: [ 67 "system/bt", 68 "system/bt/gd", 69 "system/bt/hci/include", 70 "system/bt/internal_include", 71 "system/bt/stack/include", 72 ], 73 init_rc: ["android.hardware.bluetooth@1.1-service.sim.rc"], 74} 75 76cc_library_shared { 77 name: "android.hardware.bluetooth@1.1-impl-sim", 78 defaults: ["gd_defaults"], 79 proprietary: true, 80 relative_install_path: "hw", 81 srcs: [ 82 "bluetooth_hci.cc", 83 ], 84 85 header_libs: ["libbluetooth_headers"], 86 shared_libs: [ 87 "android.hardware.bluetooth@1.0", 88 "android.hardware.bluetooth@1.1", 89 "libbase", 90 "libchrome", 91 "libcutils", 92 "libhidlbase", 93 "liblog", 94 "libutils", 95 "libprotobuf-cpp-lite", 96 ], 97 cflags: [ 98 "-Wall", 99 "-Wextra", 100 "-Werror", 101 "-DHAS_NO_BDROID_BUILDCFG", 102 ], 103 generated_headers: [ 104 "RootCanalGeneratedPackets_h", 105 "BluetoothGeneratedPackets_h", 106 "libbt_init_flags_bridge_header", 107 ], 108 static_libs: [ 109 "android.hardware.bluetooth-async", 110 "android.hardware.bluetooth-hci", 111 "libbt-rootcanal", 112 "libbt-rootcanal-types", 113 "libscriptedbeaconpayload-protos-lite", 114 ], 115 include_dirs: [ 116 "system/bt", 117 "system/bt/gd", 118 "system/bt/hci/include", 119 "system/bt/internal_include", 120 "system/bt/stack/include", 121 ], 122} 123