Fix c_utils compile alarm

1.Support visible header file

Issue:https://gitee.com/openharmony/commonlibrary_c_utils/issues/I98WB1

Signed-off-by: lijincheng <lijincheng13@huawei.com>
This commit is contained in:
lijincheng 2024-03-15 16:26:46 +08:00
parent 09b62fb1aa
commit bd3bc44312

View File

@ -33,10 +33,15 @@ ohos_cargo_crate("lib") {
build_sources = [ "build.rs" ]
}
config("cxx_cppdeps_header_config") {
include_dirs = [ "include" ]
}
ohos_static_library("cxx_cppdeps") {
part_name = "build_framework"
subsystem_name = "build"
defines = [ "RUST_CXX_NO_EXCEPTIONS" ]
public_configs = [ ":cxx_cppdeps_header_config" ]
sources = [
"//third_party/rust/crates/cxx/include/cxx.h",
"//third_party/rust/crates/cxx/src/cxx.cc",