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/internal_include", 36 "//bt/system/gd", 37 "//bt/system/types", 38 ] 39 40 configs += [ "//bt/system:target_defaults" ] 41 42 deps = [ 43 ":cxxlibheader", 44 "//bt/system/gd/rust/shim:init_flags_bridge_header", 45 "//bt/system/gd:BluetoothGeneratedPackets_h", 46 ] 47 48 defines = [ 49 "TARGET_FLOSS", 50 ] 51} 52