From 9dbd9f19584babc7ee931fb2d2c9faf47ec2ccd8 Mon Sep 17 00:00:00 2001 From: liujialiang Date: Tue, 30 Aug 2022 17:27:27 +0800 Subject: [PATCH] Import a build config for limiting the dependance of utils/native Signed-off-by: liujialiang Change-Id: I3c6381c6c8eb51f9c7066b4655eda5510cd74f26 --- native/base/BUILD.gn | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/native/base/BUILD.gn b/native/base/BUILD.gn index f6d6d44..ca91f5d 100644 --- a/native/base/BUILD.gn +++ b/native/base/BUILD.gn @@ -10,6 +10,9 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +# Please don not use module in this file any more. The source code has been +# moved to "//commonlibrary/c_utils". import("//build/ohos.gni") ############################################################################### @@ -37,11 +40,52 @@ config("static_utils_config") { ] } +utils_native_visibility_list = [ + "//applications/standard/settings/napi/settings:*", + "//base/telephony/cellular_data/test/unit_test:*", + "//base/customization/enterprise_device_management/*:*", + "//base/update/*:*", + "//base/telephony/core_service/*:*", + "//base/telephony/data_storage/*:*", + "//base/msdp/*:*", + "//base/security/*:*", + "//base/hiviewdfx/*:*", + "//commonlibrary/ets_utils/*:*", + "//device/soc/*:*", + "//device/board/isoftstone/*:*", + "//drivers/peripheral/*:*", + "//developtools/profiler/host/smartperf/trace_streamer/test:*", + "//foundation/ability/ability_runtime/*:*", + "//foundation/ai/*:*", + "//foundation/filemanagement/*:*", + "//foundation/resourceschedule/*:*", + "//foundation/barrierfree/accessibility/frameworks/acfwk/test:*", + "//foundation/multimedia/*:*", + "//foundation/communication/dsoftbus/*:*", + "//foundation/communication/netmanager_base/*:*", + "//foundation/communication/netmanager_ext/*:*", + "//foundation/distributeddatamgr/preferences/*:*", + "//foundation/arkui/napi/*:*", + "//foundation/arkui/ace_engine/frameworks/core/components/text_overlay:*", + "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/uiservice_plugins/uiservice_dialog:*", + "//foundation/graphic/*:*", + "//foundation/window/window_manager/utils:*", + "//foundation/multimodalinput/input/frameworks/napi/input_device_cooperate:*", + "//third_party/flutter/build/skia/ohos:*", + "//test/xts/*:*", + "//test/arkXtest/uitest:*", + "//test/developertest/aw/cxx/distributed:*", + "//vendor/*:*", + "//out/*:*", +] + group("utilsbase") { + visibility = utils_native_visibility_list public_deps = [ "//commonlibrary/c_utils/base:utilsbase" ] } group("utils") { + visibility = utils_native_visibility_list public_deps = [ "//commonlibrary/c_utils/base:utils" ] }