diff --git a/services/distributedfiledaemon/BUILD.gn b/services/distributedfiledaemon/BUILD.gn index ec2db464a59da56c723c91082d236fb4571f5dcc..135b4f3db3c131ff084f46ee553931dbaf4d8061 100755 --- a/services/distributedfiledaemon/BUILD.gn +++ b/services/distributedfiledaemon/BUILD.gn @@ -19,7 +19,6 @@ ohos_shared_library("libdistributedfiledaemon") { "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include", "//base/security/deviceauth/interfaces/innerkits", "//third_party/json/include", - "//utils/system/safwk/native/include", ] sources = [ @@ -46,6 +45,7 @@ ohos_shared_library("libdistributedfiledaemon") { "dsoftbus_standard:softbus_client", "ipc:ipc_core", "safwk:system_ability_fwk", + "samgr_standard:samgr_proxy", ] configs = [ "${utils_path}:compiler_configs" ] diff --git a/services/distributedfiledaemon/test/unittest/BUILD.gn b/services/distributedfiledaemon/test/unittest/BUILD.gn index b37b27de14c3e04b774a70dbd297d5f7e5194aaf..cf078929ad7d4802383913e57f2e6e76bb712496 100644 --- a/services/distributedfiledaemon/test/unittest/BUILD.gn +++ b/services/distributedfiledaemon/test/unittest/BUILD.gn @@ -23,7 +23,6 @@ config("module_private_config") { "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include", "//base/security/deviceauth/interfaces/innerkits", "//third_party/json/include", - "//utils/system/safwk/native/include", ] } @@ -46,6 +45,7 @@ ohos_unittest("DeviceManagerAgentTest") { "//third_party/googletest:gtest_main", ] + external_deps = [ "samgr_standard:samgr_proxy" ] defines = [ "private=public" ] } diff --git a/test/moduletest/BUILD.gn b/test/moduletest/BUILD.gn index f6b76d4a340141ce55b2d6e3da5476df78059dec..1e39a9a8034215ac8b4587bac959583406d3b1e8 100644 --- a/test/moduletest/BUILD.gn +++ b/test/moduletest/BUILD.gn @@ -26,7 +26,6 @@ config("module_private_config") { "//foundation/communication/dsoftbus/interfaces/kits/common", "//base/security/deviceauth/interfaces/innerkits", "//third_party/json/include", - "//utils/system/safwk/native/include", ] } @@ -70,6 +69,7 @@ ohos_moduletest("DistributedFileDaemonServiceTest") { "dsoftbus_standard:softbus_client", "ipc:ipc_core", "safwk:system_ability_fwk", + "samgr_standard:samgr_proxy", ] }