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/connection/ffi/connection_shim.cc", 26 "src/core/ffi/module.cc", 27 "src/gatt/ffi/gatt_shim.cc", 28 ] 29 30 include_dirs = [ 31 "//bt/system", 32 "//bt/system/rust", 33 "//bt/system/include", 34 "//bt/system/stack/include", 35 "//bt/system/gd", 36 "//bt/system/types", 37 ] 38 39 configs += [ 40 "//bt/system:target_defaults", 41 "//bt/system/log:log_defaults", 42 ] 43 44 deps = [ 45 ":cxxlibheader", 46 "//bt/system/gd/rust/shim:init_flags_bridge_header", 47 "//bt/system/pdl:BluetoothGeneratedPackets_h", 48 ] 49 50 defines = [ 51 "TARGET_FLOSS", 52 ] 53} 54