Descripiton: fix gn visibility problem

Issue: I6UZYW

Signed-off-by: xxlight <xiaoxiaoliang2@huawei.com>
Change-Id: Iea3548b4dd19a2394912a86575bb61d240c994d5
This commit is contained in:
xxlight 2023-04-12 12:01:40 +08:00
parent 9c1d256835
commit 4415b7dbe0
2 changed files with 10 additions and 2 deletions

View File

@ -16,7 +16,8 @@ import("//foundation/arkui/ace_engine/ace_config.gni")
# Common config for Ability Cross-platform Environment(ACE) source
config("ace_config") {
visibility = [ ":*" ]
visibility = [ "./*" ]
visibility += [ "./../napi/*" ]
include_dirs = [
"$ace_root",
"$ace_root/frameworks",
@ -68,6 +69,13 @@ config("ace_config") {
config("ace_test_config") {
visibility = [ ":*" ]
visibility += [
"//foundation/arkui/ace_engine/build/*",
"//foundation/arkui/ace_engine/frameworks/bridge/test/unittest/*",
"//foundation/arkui/ace_engine/frameworks/core/*",
"//foundation/arkui/ace_engine/test/fuzztest/*",
"//foundation/graphic/graphic_2d/rosen/test/render_service/*",
]
include_dirs = [
"$ace_root",
"$ace_root/frameworks",

View File

@ -28,7 +28,7 @@ group("unittest") {
# unittest config
config("ace_unittest_config") {
visibility = [ ":*" ]
visibility = [ "./../../*" ]
include_dirs = [
"$ace_root",
"$ace_root/frameworks",