1# 2# Copyright 2023 Google, Inc. 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# 16 17import("//common-mk/cxxbridge.gni") 18 19cxxbridge_libheader("cxxlibheader") { 20 deps = [] 21} 22 23static_library("core_rs") { 24 sources = [ 25 "src/core/ffi/module.cc", 26 "src/gatt/ffi/gatt_shim.cc", 27 ] 28 29 include_dirs = [ 30 "//bt/system", 31 "//bt/system/rust", 32 "//bt/system/include", 33 "//bt/system/stack/include", 34 "//bt/system/gd", 35 ] 36 37 configs += [ 38 "//bt/system:target_defaults", 39 "//bt/system/log:log_defaults", 40 ] 41 42 deps = [ 43 ":cxxlibheader", 44 "//bt/system/pdl:BluetoothGeneratedPackets_h", 45 ] 46 47 defines = [ 48 "TARGET_FLOSS", 49 ] 50} 51