1# 2# Copyright 2021 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 16import("//common-mk/cxxbridge.gni") 17 18rust_library("libbt_common") { 19 crate_name = "bt_common" 20 21 sources = [ "src/lib.rs" ] 22 23 configs = [ 24 "//bt/gd/rust/shim:rust_libs", 25 "//bt/gd:rust_defaults", 26 ] 27} 28 29cxxbridge_cc("libbt_common_sys_prop_bridge_code") { 30 sources = [ "src/sys_prop.rs" ] 31 32 configs = [ "//bt/gd:gd_defaults" ] 33} 34 35static_library("libbt_common_sys_prop_cxx") { 36 sources = [ "src/ffi/sys_props.cc" ] 37 38 include_dirs = [ "src/ffi" ] 39 40 deps = [ ":libbt_common_sys_prop_bridge_code" ] 41 42 configs += [ "//bt/gd:gd_defaults" ] 43} 44