diff --git a/aw/cxx/distributed/BUILD.gn b/aw/cxx/distributed/BUILD.gn index 58fa639c30481137c9fb0ed9694595582eb3d11c..c6290ea60c90c4dc639892b0c70ed94067cad2d5 100644 --- a/aw/cxx/distributed/BUILD.gn +++ b/aw/cxx/distributed/BUILD.gn @@ -15,7 +15,6 @@ import("//build/ohos.gni") config("distributedtest_config") { include_dirs = [ - "//commonlibrary/c_utils/base/include", ".", "utils/", ] @@ -28,15 +27,16 @@ ohos_static_library("distributedtest_lib") { "distributed_cfg.cpp", "distributed_major.cpp", ] - deps = [ "//third_party/googletest:gtest" ] if (is_standard_system) { external_deps = [ "c_utils:utils", + "googletest:gtest", "hilog:libhilog", ] } else { external_deps = [ "c_utils:utils", + "googletest:gtest", "hilog:libhilog", ] } diff --git a/aw/cxx/hwext/BUILD.gn b/aw/cxx/hwext/BUILD.gn index cfef1a33614076a52183fa0c850eb59959548e69..f99f18375f879eb4d9e289bb51e55dfe24e2bec7 100755 --- a/aw/cxx/hwext/BUILD.gn +++ b/aw/cxx/hwext/BUILD.gn @@ -13,20 +13,15 @@ import("//build/ohos.gni") -config("performance_test_config") { - include_dirs = [ - ".", - "//commonlibrary/c_utils/base/include", - ] -} - ohos_static_library("performance_test_static") { testonly = true sources = [ "perf.cpp" ] - deps = [ "//third_party/googletest:gtest" ] - public_deps = [ "//third_party/libxml2:libxml2" ] - public_configs = [ ":performance_test_config" ] + include_dirs = [ "." ] subsystem_name = "testfwk" part_name = "developer_test" - external_deps = [ "c_utils:utils" ] + external_deps = [ + "c_utils:utils", + "googletest:gtest", + "libxml2:libxml2", + ] }