1# 2# Copyright 2020 Google 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 19config("rust_shim_config") { 20 include_dirs = [ "//bt/system/gd/rust/shim" ] 21} 22 23cxxbridge_header("init_flags_bridge_header") { 24 sources = [ "src/init_flags.rs" ] 25 all_dependent_configs = [ ":rust_shim_config" ] 26 deps = [ ":cxxlibheader" ] 27} 28 29cxxbridge_cc("init_flags_bridge_code") { 30 sources = [ "src/init_flags.rs" ] 31 deps = [ ":init_flags_bridge_header" ] 32 configs = [ "//bt/system/gd:gd_defaults" ] 33} 34 35cxxbridge_libheader("cxxlibheader") { 36 deps = [] 37} 38 39static_library("libbluetooth_rust_interop") { 40 deps = [ 41 ":cxxlibheader", 42 ":init_flags_bridge_code", 43 ] 44} 45