From 013bc9627980ef566f7f9777b43ba783fe3a1b7e Mon Sep 17 00:00:00 2001 From: liuzongze Date: Wed, 7 Aug 2024 15:34:04 +0800 Subject: [PATCH] DLP GN define DWITH_DLP Signed-off-by: liuzongze Change-Id: I9c50f90c09609632abe916c229578bb84ddda7a5 --- frameworks/js/napi/app/ability_delegator/BUILD.gn | 6 ++++++ .../js/napi/app/sendable_context_manager/BUILD.gn | 5 +++++ frameworks/js/napi/featureAbility/BUILD.gn | 5 +++++ .../js/napi/inner/napi_ability_common/BUILD.gn | 5 +++++ .../js/napi/insight_intent/insight_intent/BUILD.gn | 5 +++++ .../insight_intent/insight_intent_driver/BUILD.gn | 5 +++++ frameworks/js/napi/js_child_process_manager/BUILD.gn | 6 ++++++ frameworks/js/napi/js_dialog_request/BUILD.gn | 5 +++++ frameworks/js/napi/js_dialog_session/BUILD.gn | 6 ++++++ frameworks/js/napi/js_mission_manager/BUILD.gn | 6 ++++++ frameworks/js/napi/mission_manager/BUILD.gn | 6 ++++++ frameworks/js/napi/particleAbility/BUILD.gn | 6 ++++++ frameworks/js/napi/quick_fix/BUILD.gn | 6 ++++++ frameworks/js/napi/uri_permission/BUILD.gn | 6 ++++++ frameworks/js/napi/wantagent/BUILD.gn | 6 ++++++ frameworks/native/ability/native/BUILD.gn | 12 ++++++++++++ frameworks/native/appkit/BUILD.gn | 6 ++++++ interfaces/inner_api/wantagent/BUILD.gn | 6 ++++++ .../interfaces/kits/js/serviceroutermgr/BUILD.gn | 6 ++++++ services/abilitymgr/BUILD.gn | 6 ++++++ .../abilityautostartupservicea_fuzzer/BUILD.gn | 5 +++++ .../abilityautostartupserviceb_fuzzer/BUILD.gn | 5 +++++ test/fuzztest/abilitycachemanagera_fuzzer/BUILD.gn | 6 ++++++ test/fuzztest/abilityconnectmanager_fuzzer/BUILD.gn | 6 ++++++ test/fuzztest/abilitydebugdeal_fuzzer/BUILD.gn | 6 ++++++ .../BUILD.gn | 5 +++++ .../abilitymanagerservicefirst_fuzzer/BUILD.gn | 5 +++++ .../abilitymgrappexitreasonhelper_fuzzer/BUILD.gn | 4 ++++ .../abilitymgrcontrolinterceptor_fuzzer/BUILD.gn | 4 ++++ .../BUILD.gn | 4 ++++ .../abilitymgrextensionrecord_fuzzer/BUILD.gn | 5 +++++ .../abilitymgrinterceptorexecuter_fuzzer/BUILD.gn | 4 ++++ .../abilitymgrjumpinterceptor_fuzzer/BUILD.gn | 4 ++++ .../BUILD.gn | 5 +++++ .../abilitymgruiextensionrecord_fuzzer/BUILD.gn | 5 +++++ .../abilitystubgetdlpconnectioninfos_fuzzer/BUILD.gn | 5 +++++ .../connectionobserverclient_fuzzer/BUILD.gn | 5 +++++ .../connectionobserverclientimpl_fuzzer/BUILD.gn | 5 +++++ test/fuzztest/connectionstatemanager_fuzzer/BUILD.gn | 5 +++++ test/fuzztest/disposedobserver_fuzzer/BUILD.gn | 5 +++++ .../extensioncontrolinterceptor_fuzzer/BUILD.gn | 4 ++++ test/fuzztest/extensionrecordfactory_fuzzer/BUILD.gn | 6 ++++++ test/fuzztest/extensionrecordmanager_fuzzer/BUILD.gn | 5 +++++ .../fuzztest/extensionrecordmanagera_fuzzer/BUILD.gn | 5 +++++ test/fuzztest/freezeutil_fuzzer/BUILD.gn | 5 +++++ test/fuzztest/handledlpapp_fuzzer/BUILD.gn | 5 +++++ test/fuzztest/openlinkoptions_fuzzer/BUILD.gn | 5 +++++ .../fuzztest/screenunlockinterceptor_fuzzer/BUILD.gn | 5 +++++ test/fuzztest/startabilityutils_fuzzer/BUILD.gn | 6 ++++++ .../startotherappinterceptor_fuzzer/BUILD.gn | 5 +++++ .../statusbardelegatemanager_fuzzer/BUILD.gn | 5 +++++ .../uiabilitylifecyclemanagera_fuzzer/BUILD.gn | 5 +++++ .../uiabilitylifecyclemanagerb_fuzzer/BUILD.gn | 5 +++++ .../uiextensionrecordfactory_fuzzer/BUILD.gn | 6 ++++++ .../ability_bundle_event_callback_test/BUILD.gn | 6 ++++++ test/unittest/ability_cache_manager_test/BUILD.gn | 5 +++++ test/unittest/ability_debug_deal_test/BUILD.gn | 6 ++++++ test/unittest/ability_interceptor_test/BUILD.gn | 5 +++++ .../ability_manager_client_branch_test/BUILD.gn | 5 +++++ .../ability_manager_service_third_test/BUILD.gn | 5 +++++ test/unittest/ability_manager_stub_test/BUILD.gn | 5 +++++ test/unittest/ability_record_test/BUILD.gn | 5 +++++ .../app_exit_reason_data_manager_test/BUILD.gn | 5 +++++ test/unittest/app_mgr_service_inner_test/BUILD.gn | 5 +++++ test/unittest/auto_startup_info_test/BUILD.gn | 5 +++++ test/unittest/bundle_mgr_helper_test/BUILD.gn | 5 +++++ .../connection_observer_controller_test/BUILD.gn | 5 +++++ test/unittest/connection_observer_test/BUILD.gn | 5 +++++ test/unittest/connection_state_item_test/BUILD.gn | 6 ++++++ test/unittest/connection_state_manager_test/BUILD.gn | 5 +++++ test/unittest/data_ability_manager_test/BUILD.gn | 6 ++++++ test/unittest/dlp_state_item_test/BUILD.gn | 5 +++++ test/unittest/dlp_utils_test/BUILD.gn | 5 +++++ test/unittest/lifecycle_deal_test/BUILD.gn | 5 +++++ test/unittest/mission_list_manager_test/BUILD.gn | 5 +++++ test/unittest/permission_verification_test/BUILD.gn | 5 +++++ test/unittest/specified_mission_list_test/BUILD.gn | 5 +++++ .../start_other_app_interceptor_test/BUILD.gn | 4 ++++ .../ui_ability_lifecycle_manager_test/BUILD.gn | 5 +++++ 79 files changed, 418 insertions(+) diff --git a/frameworks/js/napi/app/ability_delegator/BUILD.gn b/frameworks/js/napi/app/ability_delegator/BUILD.gn index 158c15d814..8712a6a192 100644 --- a/frameworks/js/napi/app/ability_delegator/BUILD.gn +++ b/frameworks/js/napi/app/ability_delegator/BUILD.gn @@ -57,6 +57,12 @@ template("delegator") { "napi:ace_napi", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + subsystem_name = "ability" part_name = "ability_runtime" } diff --git a/frameworks/js/napi/app/sendable_context_manager/BUILD.gn b/frameworks/js/napi/app/sendable_context_manager/BUILD.gn index a71acf76a6..cd01ad1b83 100644 --- a/frameworks/js/napi/app/sendable_context_manager/BUILD.gn +++ b/frameworks/js/napi/app/sendable_context_manager/BUILD.gn @@ -55,6 +55,11 @@ ohos_shared_library("sendablecontextmanager_napi") { "hilog:libhilog", "napi:ace_napi", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } relative_install_dir = "module/app/ability" subsystem_name = "ability" diff --git a/frameworks/js/napi/featureAbility/BUILD.gn b/frameworks/js/napi/featureAbility/BUILD.gn index 32e5dbe01d..0fc9db67fe 100644 --- a/frameworks/js/napi/featureAbility/BUILD.gn +++ b/frameworks/js/napi/featureAbility/BUILD.gn @@ -85,6 +85,11 @@ ohos_shared_library("featureability") { "relational_store:rdb_data_share_adapter", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } relative_install_dir = "module/ability" diff --git a/frameworks/js/napi/inner/napi_ability_common/BUILD.gn b/frameworks/js/napi/inner/napi_ability_common/BUILD.gn index b66be43a6f..4e8e093412 100644 --- a/frameworks/js/napi/inner/napi_ability_common/BUILD.gn +++ b/frameworks/js/napi/inner/napi_ability_common/BUILD.gn @@ -74,6 +74,11 @@ ohos_shared_library("napi_ability_common") { "window_manager:libdm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } innerapi_tags = [ "platformsdk" ] subsystem_name = "ability" diff --git a/frameworks/js/napi/insight_intent/insight_intent/BUILD.gn b/frameworks/js/napi/insight_intent/insight_intent/BUILD.gn index da5b5c5db4..a6fc693139 100644 --- a/frameworks/js/napi/insight_intent/insight_intent/BUILD.gn +++ b/frameworks/js/napi/insight_intent/insight_intent/BUILD.gn @@ -37,6 +37,11 @@ ohos_shared_library("insightintent_napi") { "ipc:ipc_core", "napi:ace_napi", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } relative_install_dir = "module/app/ability" diff --git a/frameworks/js/napi/insight_intent/insight_intent_driver/BUILD.gn b/frameworks/js/napi/insight_intent/insight_intent_driver/BUILD.gn index d8b47e45fa..189ab805b5 100644 --- a/frameworks/js/napi/insight_intent/insight_intent_driver/BUILD.gn +++ b/frameworks/js/napi/insight_intent/insight_intent_driver/BUILD.gn @@ -42,6 +42,11 @@ ohos_shared_library("insightintentdriver_napi") { "ipc:ipc_core", "napi:ace_napi", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } relative_install_dir = "module/app/ability" diff --git a/frameworks/js/napi/js_child_process_manager/BUILD.gn b/frameworks/js/napi/js_child_process_manager/BUILD.gn index 3398d75150..a9e763ead8 100644 --- a/frameworks/js/napi/js_child_process_manager/BUILD.gn +++ b/frameworks/js/napi/js_child_process_manager/BUILD.gn @@ -44,6 +44,12 @@ ohos_shared_library("childprocessmanager_napi") { external_deps += [ "image_framework:image" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + relative_install_dir = "module/app/ability" subsystem_name = "ability" diff --git a/frameworks/js/napi/js_dialog_request/BUILD.gn b/frameworks/js/napi/js_dialog_request/BUILD.gn index 0f085ad08c..300b508b46 100755 --- a/frameworks/js/napi/js_dialog_request/BUILD.gn +++ b/frameworks/js/napi/js_dialog_request/BUILD.gn @@ -47,6 +47,11 @@ ohos_shared_library("dialogrequest_napi") { "ipc:ipc_core", "napi:ace_napi", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } relative_install_dir = "module/app/ability" diff --git a/frameworks/js/napi/js_dialog_session/BUILD.gn b/frameworks/js/napi/js_dialog_session/BUILD.gn index 2a107c19c3..969bf0c980 100644 --- a/frameworks/js/napi/js_dialog_session/BUILD.gn +++ b/frameworks/js/napi/js_dialog_session/BUILD.gn @@ -53,6 +53,12 @@ ohos_shared_library("dialogsession_napi") { "samgr:samgr_proxy", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + relative_install_dir = "module/app/ability" subsystem_name = "ability" diff --git a/frameworks/js/napi/js_mission_manager/BUILD.gn b/frameworks/js/napi/js_mission_manager/BUILD.gn index 7c0cb32a7f..47e3e5915e 100755 --- a/frameworks/js/napi/js_mission_manager/BUILD.gn +++ b/frameworks/js/napi/js_mission_manager/BUILD.gn @@ -58,6 +58,12 @@ ohos_shared_library("missionmanager") { ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + relative_install_dir = "module/app/ability" subsystem_name = "ability" diff --git a/frameworks/js/napi/mission_manager/BUILD.gn b/frameworks/js/napi/mission_manager/BUILD.gn index 2a4e7fd9ab..6634d7b2fb 100644 --- a/frameworks/js/napi/mission_manager/BUILD.gn +++ b/frameworks/js/napi/mission_manager/BUILD.gn @@ -57,6 +57,12 @@ ohos_shared_library("missionmanager_napi") { ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + relative_install_dir = "module/application" subsystem_name = "ability" diff --git a/frameworks/js/napi/particleAbility/BUILD.gn b/frameworks/js/napi/particleAbility/BUILD.gn index 8dd4ee75c6..d3c5f0b768 100644 --- a/frameworks/js/napi/particleAbility/BUILD.gn +++ b/frameworks/js/napi/particleAbility/BUILD.gn @@ -81,6 +81,12 @@ ohos_shared_library("particleability") { ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + relative_install_dir = "module/ability" subsystem_name = "ability" diff --git a/frameworks/js/napi/quick_fix/BUILD.gn b/frameworks/js/napi/quick_fix/BUILD.gn index ce43ed882b..d8ad4937eb 100644 --- a/frameworks/js/napi/quick_fix/BUILD.gn +++ b/frameworks/js/napi/quick_fix/BUILD.gn @@ -42,6 +42,12 @@ ohos_shared_library("quickfixmanager_napi") { "napi:ace_napi", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + relative_install_dir = "module/app/ability" subsystem_name = "ability" part_name = "ability_runtime" diff --git a/frameworks/js/napi/uri_permission/BUILD.gn b/frameworks/js/napi/uri_permission/BUILD.gn index 72ab7b57af..4daf93fd2f 100644 --- a/frameworks/js/napi/uri_permission/BUILD.gn +++ b/frameworks/js/napi/uri_permission/BUILD.gn @@ -49,6 +49,12 @@ ohos_shared_library("uripermissionmanager_napi") { external_deps += [ "ipc:ipc_core" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + relative_install_dir = "module/application" subsystem_name = "ability" diff --git a/frameworks/js/napi/wantagent/BUILD.gn b/frameworks/js/napi/wantagent/BUILD.gn index d27b8302b5..b95d3ff109 100644 --- a/frameworks/js/napi/wantagent/BUILD.gn +++ b/frameworks/js/napi/wantagent/BUILD.gn @@ -49,6 +49,12 @@ ohos_shared_library("wantagent") { "node:node_header_notice", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + relative_install_dir = "module" subsystem_name = "ability" part_name = "ability_runtime" diff --git a/frameworks/native/ability/native/BUILD.gn b/frameworks/native/ability/native/BUILD.gn index e48187c2ab..521f68ddcb 100644 --- a/frameworks/native/ability/native/BUILD.gn +++ b/frameworks/native/ability/native/BUILD.gn @@ -288,6 +288,12 @@ ohos_shared_library("abilitykit_native") { external_deps += [ "relational_store:native_rdb" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } + public_external_deps = [ "ability_base:session_info", "accessibility:accessibility_common", @@ -572,6 +578,12 @@ ohos_shared_library("uiabilitykit_native") { "node:node_header_notice", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } + if (cj_frontend) { sources += [ "${ability_runtime_native_path}/ability/native/ability_runtime/cj_ability_ffi.cpp", diff --git a/frameworks/native/appkit/BUILD.gn b/frameworks/native/appkit/BUILD.gn index 7e97334fa9..b9978a960b 100644 --- a/frameworks/native/appkit/BUILD.gn +++ b/frameworks/native/appkit/BUILD.gn @@ -253,6 +253,12 @@ ohos_shared_library("appkit_native") { defines += [ "APP_NO_RESPONSE_DIALOG" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + innerapi_tags = [ "platformsdk" ] version_script = "libappkit_native.map" subsystem_name = "ability" diff --git a/interfaces/inner_api/wantagent/BUILD.gn b/interfaces/inner_api/wantagent/BUILD.gn index f20eb74506..b696c7cb19 100644 --- a/interfaces/inner_api/wantagent/BUILD.gn +++ b/interfaces/inner_api/wantagent/BUILD.gn @@ -94,6 +94,12 @@ ohos_shared_library("wantagent_innerkits") { cflags = [ "-DCONFIG_DUAL_FRAMEWORK" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + innerapi_tags = [ "platformsdk", "sasdk", diff --git a/service_router_framework/interfaces/kits/js/serviceroutermgr/BUILD.gn b/service_router_framework/interfaces/kits/js/serviceroutermgr/BUILD.gn index 31897fa8e1..32b7eb7bff 100755 --- a/service_router_framework/interfaces/kits/js/serviceroutermgr/BUILD.gn +++ b/service_router_framework/interfaces/kits/js/serviceroutermgr/BUILD.gn @@ -52,6 +52,12 @@ ohos_shared_library("businessabilityrouter") { "samgr:samgr_proxy", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + relative_install_dir = "module/app" subsystem_name = "ability" part_name = "ability_runtime" diff --git a/services/abilitymgr/BUILD.gn b/services/abilitymgr/BUILD.gn index 41d438d175..195b83f4e0 100644 --- a/services/abilitymgr/BUILD.gn +++ b/services/abilitymgr/BUILD.gn @@ -447,6 +447,12 @@ ohos_shared_library("mission_list") { ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } + subsystem_name = "ability" innerapi_tags = [ "platformsdk_indirect" ] part_name = "ability_runtime" diff --git a/test/fuzztest/abilityautostartupservicea_fuzzer/BUILD.gn b/test/fuzztest/abilityautostartupservicea_fuzzer/BUILD.gn index be7e922906..e983bb4c95 100755 --- a/test/fuzztest/abilityautostartupservicea_fuzzer/BUILD.gn +++ b/test/fuzztest/abilityautostartupservicea_fuzzer/BUILD.gn @@ -89,6 +89,11 @@ ohos_fuzztest("AbilityAutoStartupServiceaFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilityautostartupserviceb_fuzzer/BUILD.gn b/test/fuzztest/abilityautostartupserviceb_fuzzer/BUILD.gn index c2eccaf98d..447932fb9f 100755 --- a/test/fuzztest/abilityautostartupserviceb_fuzzer/BUILD.gn +++ b/test/fuzztest/abilityautostartupserviceb_fuzzer/BUILD.gn @@ -89,6 +89,11 @@ ohos_fuzztest("AbilityAutoStartupServicebFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitycachemanagera_fuzzer/BUILD.gn b/test/fuzztest/abilitycachemanagera_fuzzer/BUILD.gn index d5957acdcc..723a4a52f2 100755 --- a/test/fuzztest/abilitycachemanagera_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitycachemanagera_fuzzer/BUILD.gn @@ -83,6 +83,12 @@ ohos_fuzztest("AbilityCacheManageraFuzzTest") { "window_manager:libwm", ] } + + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilityconnectmanager_fuzzer/BUILD.gn b/test/fuzztest/abilityconnectmanager_fuzzer/BUILD.gn index f9e6ff61d7..eef18ba307 100755 --- a/test/fuzztest/abilityconnectmanager_fuzzer/BUILD.gn +++ b/test/fuzztest/abilityconnectmanager_fuzzer/BUILD.gn @@ -68,6 +68,12 @@ ohos_fuzztest("AbilityConnectManagerFuzzTest") { "window_manager:libwm", ] } + + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitydebugdeal_fuzzer/BUILD.gn b/test/fuzztest/abilitydebugdeal_fuzzer/BUILD.gn index 68a984c1d0..36e6eee603 100644 --- a/test/fuzztest/abilitydebugdeal_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitydebugdeal_fuzzer/BUILD.gn @@ -72,6 +72,12 @@ ohos_fuzztest("AbilityDebugDealFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "input:libmmi-client" ] } + + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilityframeworksnativeohosjsenvlogger_fuzzer/BUILD.gn b/test/fuzztest/abilityframeworksnativeohosjsenvlogger_fuzzer/BUILD.gn index 8c9733cf7c..9165647b8b 100644 --- a/test/fuzztest/abilityframeworksnativeohosjsenvlogger_fuzzer/BUILD.gn +++ b/test/fuzztest/abilityframeworksnativeohosjsenvlogger_fuzzer/BUILD.gn @@ -104,6 +104,11 @@ ohos_fuzztest("AbilityFrameworksNativeOhosJsEnvLoggerFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitymanagerservicefirst_fuzzer/BUILD.gn b/test/fuzztest/abilitymanagerservicefirst_fuzzer/BUILD.gn index 14602e39e3..3bae2e732c 100755 --- a/test/fuzztest/abilitymanagerservicefirst_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitymanagerservicefirst_fuzzer/BUILD.gn @@ -75,6 +75,11 @@ ohos_fuzztest("AbilityManagerServiceFirstFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitymgrappexitreasonhelper_fuzzer/BUILD.gn b/test/fuzztest/abilitymgrappexitreasonhelper_fuzzer/BUILD.gn index 7e9c6e219d..d93bbca9ac 100644 --- a/test/fuzztest/abilitymgrappexitreasonhelper_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitymgrappexitreasonhelper_fuzzer/BUILD.gn @@ -109,6 +109,10 @@ ohos_fuzztest("AbilityMgrAppExitReasonHelperFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "window_manager:libwm" ] } + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitymgrcontrolinterceptor_fuzzer/BUILD.gn b/test/fuzztest/abilitymgrcontrolinterceptor_fuzzer/BUILD.gn index cd7ae7482c..d12451d22c 100644 --- a/test/fuzztest/abilitymgrcontrolinterceptor_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitymgrcontrolinterceptor_fuzzer/BUILD.gn @@ -85,6 +85,10 @@ ohos_fuzztest("AbilityMgrControlInterceptorFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "window_manager:libwm" ] } + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitymgrdisposedruleinterceptor_fuzzer/BUILD.gn b/test/fuzztest/abilitymgrdisposedruleinterceptor_fuzzer/BUILD.gn index 6d31bf523e..52f86159b6 100644 --- a/test/fuzztest/abilitymgrdisposedruleinterceptor_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitymgrdisposedruleinterceptor_fuzzer/BUILD.gn @@ -82,6 +82,10 @@ ohos_fuzztest("AbilitymgrDisposedRuleInterceptorFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "window_manager:libwm" ] } + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitymgrextensionrecord_fuzzer/BUILD.gn b/test/fuzztest/abilitymgrextensionrecord_fuzzer/BUILD.gn index 41604903cb..2bd343bbe9 100644 --- a/test/fuzztest/abilitymgrextensionrecord_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitymgrextensionrecord_fuzzer/BUILD.gn @@ -87,6 +87,11 @@ ohos_fuzztest("AbilityMgrExtensionRecordFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "window_manager:libwm" ] } + + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitymgrinterceptorexecuter_fuzzer/BUILD.gn b/test/fuzztest/abilitymgrinterceptorexecuter_fuzzer/BUILD.gn index 6b0846ef55..2771d91c86 100644 --- a/test/fuzztest/abilitymgrinterceptorexecuter_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitymgrinterceptorexecuter_fuzzer/BUILD.gn @@ -86,6 +86,10 @@ ohos_fuzztest("AbilityMgrInterceptorExecuterFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "window_manager:libwm" ] } + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitymgrjumpinterceptor_fuzzer/BUILD.gn b/test/fuzztest/abilitymgrjumpinterceptor_fuzzer/BUILD.gn index 25872fbfc7..771545b0e0 100644 --- a/test/fuzztest/abilitymgrjumpinterceptor_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitymgrjumpinterceptor_fuzzer/BUILD.gn @@ -87,6 +87,10 @@ ohos_fuzztest("AbilityMgrJumpInterceptorFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "window_manager:libwm" ] } + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitymgrpreloaduiextstateobserver_fuzzer/BUILD.gn b/test/fuzztest/abilitymgrpreloaduiextstateobserver_fuzzer/BUILD.gn index 45d1f3d15a..6bcbd7c46c 100644 --- a/test/fuzztest/abilitymgrpreloaduiextstateobserver_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitymgrpreloaduiextstateobserver_fuzzer/BUILD.gn @@ -78,6 +78,11 @@ ohos_fuzztest("AbilitymgrPreloadUiextStateObserverFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "input:libmmi-client" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitymgruiextensionrecord_fuzzer/BUILD.gn b/test/fuzztest/abilitymgruiextensionrecord_fuzzer/BUILD.gn index 8e1df1e27d..d7f2097143 100644 --- a/test/fuzztest/abilitymgruiextensionrecord_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitymgruiextensionrecord_fuzzer/BUILD.gn @@ -86,6 +86,11 @@ ohos_fuzztest("AbilityMgrUiExtensionRecordFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "window_manager:libwm" ] } + + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/abilitystubgetdlpconnectioninfos_fuzzer/BUILD.gn b/test/fuzztest/abilitystubgetdlpconnectioninfos_fuzzer/BUILD.gn index 20ffacd22c..f49bbc4ed0 100644 --- a/test/fuzztest/abilitystubgetdlpconnectioninfos_fuzzer/BUILD.gn +++ b/test/fuzztest/abilitystubgetdlpconnectioninfos_fuzzer/BUILD.gn @@ -61,6 +61,11 @@ ohos_fuzztest("AbilityStubGetDlpConnectionInfosFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } ############################################################################### diff --git a/test/fuzztest/connectionobserverclient_fuzzer/BUILD.gn b/test/fuzztest/connectionobserverclient_fuzzer/BUILD.gn index ff09396d3c..859780ae46 100755 --- a/test/fuzztest/connectionobserverclient_fuzzer/BUILD.gn +++ b/test/fuzztest/connectionobserverclient_fuzzer/BUILD.gn @@ -74,6 +74,11 @@ ohos_fuzztest("ConnectionObserverClientFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } ############################################################################### diff --git a/test/fuzztest/connectionobserverclientimpl_fuzzer/BUILD.gn b/test/fuzztest/connectionobserverclientimpl_fuzzer/BUILD.gn index 46422f4cca..b460e5061e 100755 --- a/test/fuzztest/connectionobserverclientimpl_fuzzer/BUILD.gn +++ b/test/fuzztest/connectionobserverclientimpl_fuzzer/BUILD.gn @@ -73,6 +73,11 @@ ohos_fuzztest("ConnectionObserverClientImplFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } ############################################################################### diff --git a/test/fuzztest/connectionstatemanager_fuzzer/BUILD.gn b/test/fuzztest/connectionstatemanager_fuzzer/BUILD.gn index 3b49470fc1..6239213425 100755 --- a/test/fuzztest/connectionstatemanager_fuzzer/BUILD.gn +++ b/test/fuzztest/connectionstatemanager_fuzzer/BUILD.gn @@ -74,6 +74,11 @@ ohos_fuzztest("ConnectionStateManagerFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } ############################################################################### diff --git a/test/fuzztest/disposedobserver_fuzzer/BUILD.gn b/test/fuzztest/disposedobserver_fuzzer/BUILD.gn index 715a91328b..222c321559 100644 --- a/test/fuzztest/disposedobserver_fuzzer/BUILD.gn +++ b/test/fuzztest/disposedobserver_fuzzer/BUILD.gn @@ -77,6 +77,11 @@ ohos_fuzztest("DisposedObserverFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "input:libmmi-client" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/extensioncontrolinterceptor_fuzzer/BUILD.gn b/test/fuzztest/extensioncontrolinterceptor_fuzzer/BUILD.gn index 81ac3fc008..bf69c819cc 100644 --- a/test/fuzztest/extensioncontrolinterceptor_fuzzer/BUILD.gn +++ b/test/fuzztest/extensioncontrolinterceptor_fuzzer/BUILD.gn @@ -87,6 +87,10 @@ ohos_fuzztest("ExtensionControlInterceptorFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "window_manager:libwm" ] } + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/extensionrecordfactory_fuzzer/BUILD.gn b/test/fuzztest/extensionrecordfactory_fuzzer/BUILD.gn index 59880c8336..7f45fe4878 100644 --- a/test/fuzztest/extensionrecordfactory_fuzzer/BUILD.gn +++ b/test/fuzztest/extensionrecordfactory_fuzzer/BUILD.gn @@ -75,6 +75,12 @@ ohos_fuzztest("ExtensionRecordFactoryFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "input:libmmi-client" ] } + + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/extensionrecordmanager_fuzzer/BUILD.gn b/test/fuzztest/extensionrecordmanager_fuzzer/BUILD.gn index a57b1bb3fd..6258325a80 100644 --- a/test/fuzztest/extensionrecordmanager_fuzzer/BUILD.gn +++ b/test/fuzztest/extensionrecordmanager_fuzzer/BUILD.gn @@ -86,6 +86,11 @@ ohos_fuzztest("ExtensionRecordManagerFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "input:libmmi-client" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/extensionrecordmanagera_fuzzer/BUILD.gn b/test/fuzztest/extensionrecordmanagera_fuzzer/BUILD.gn index 5bbedaa8a7..3ec2e77171 100755 --- a/test/fuzztest/extensionrecordmanagera_fuzzer/BUILD.gn +++ b/test/fuzztest/extensionrecordmanagera_fuzzer/BUILD.gn @@ -102,6 +102,11 @@ ohos_fuzztest("ExtensionRecordManageraFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/freezeutil_fuzzer/BUILD.gn b/test/fuzztest/freezeutil_fuzzer/BUILD.gn index a8d8e40f3a..ff11f2ebe3 100644 --- a/test/fuzztest/freezeutil_fuzzer/BUILD.gn +++ b/test/fuzztest/freezeutil_fuzzer/BUILD.gn @@ -85,6 +85,11 @@ ohos_fuzztest("FreezeUtilFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/handledlpapp_fuzzer/BUILD.gn b/test/fuzztest/handledlpapp_fuzzer/BUILD.gn index af7f27e487..6d0761c96e 100755 --- a/test/fuzztest/handledlpapp_fuzzer/BUILD.gn +++ b/test/fuzztest/handledlpapp_fuzzer/BUILD.gn @@ -66,6 +66,11 @@ ohos_fuzztest("HandleDlpAppFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } ############################################################################### diff --git a/test/fuzztest/openlinkoptions_fuzzer/BUILD.gn b/test/fuzztest/openlinkoptions_fuzzer/BUILD.gn index c446f52b1d..592599cbc4 100644 --- a/test/fuzztest/openlinkoptions_fuzzer/BUILD.gn +++ b/test/fuzztest/openlinkoptions_fuzzer/BUILD.gn @@ -86,6 +86,11 @@ ohos_fuzztest("OpenLinkOptionsFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/screenunlockinterceptor_fuzzer/BUILD.gn b/test/fuzztest/screenunlockinterceptor_fuzzer/BUILD.gn index 5678861789..cc5404c8ce 100644 --- a/test/fuzztest/screenunlockinterceptor_fuzzer/BUILD.gn +++ b/test/fuzztest/screenunlockinterceptor_fuzzer/BUILD.gn @@ -85,6 +85,11 @@ ohos_fuzztest("ScreenUnlockInterceptorFuzzTest") { "samgr:samgr_proxy", "screenlock_mgr:screenlock_client", ] + + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/startabilityutils_fuzzer/BUILD.gn b/test/fuzztest/startabilityutils_fuzzer/BUILD.gn index ebfc3cb0c5..9adc135bb1 100755 --- a/test/fuzztest/startabilityutils_fuzzer/BUILD.gn +++ b/test/fuzztest/startabilityutils_fuzzer/BUILD.gn @@ -91,6 +91,12 @@ ohos_fuzztest("StartAbilityUtilsFuzzTest") { "window_manager:libwm", ] } + + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/startotherappinterceptor_fuzzer/BUILD.gn b/test/fuzztest/startotherappinterceptor_fuzzer/BUILD.gn index 538bd2c25b..00a1a74671 100644 --- a/test/fuzztest/startotherappinterceptor_fuzzer/BUILD.gn +++ b/test/fuzztest/startotherappinterceptor_fuzzer/BUILD.gn @@ -82,6 +82,11 @@ ohos_fuzztest("StartOtherappinterceptorFuzzTest") { "ipc:ipc_core", "napi:ace_napi", ] + + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/statusbardelegatemanager_fuzzer/BUILD.gn b/test/fuzztest/statusbardelegatemanager_fuzzer/BUILD.gn index c6b72b3d09..41109c5dbc 100644 --- a/test/fuzztest/statusbardelegatemanager_fuzzer/BUILD.gn +++ b/test/fuzztest/statusbardelegatemanager_fuzzer/BUILD.gn @@ -88,6 +88,11 @@ ohos_fuzztest("StatusBarDelegateManagerFuzzTest") { "window_manager:libwm", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/uiabilitylifecyclemanagera_fuzzer/BUILD.gn b/test/fuzztest/uiabilitylifecyclemanagera_fuzzer/BUILD.gn index 72c90f12ed..5dceb4f7c5 100644 --- a/test/fuzztest/uiabilitylifecyclemanagera_fuzzer/BUILD.gn +++ b/test/fuzztest/uiabilitylifecyclemanagera_fuzzer/BUILD.gn @@ -98,6 +98,11 @@ ohos_fuzztest("UiAbilityLifeCycleManagerAFuzzTest") { "window_manager:scene_session", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/uiabilitylifecyclemanagerb_fuzzer/BUILD.gn b/test/fuzztest/uiabilitylifecyclemanagerb_fuzzer/BUILD.gn index 3f58b20c3d..cbf34ebc4a 100644 --- a/test/fuzztest/uiabilitylifecyclemanagerb_fuzzer/BUILD.gn +++ b/test/fuzztest/uiabilitylifecyclemanagerb_fuzzer/BUILD.gn @@ -98,6 +98,11 @@ ohos_fuzztest("UiAbilityLifeCycleManagerBFuzzTest") { "window_manager:scene_session", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/fuzztest/uiextensionrecordfactory_fuzzer/BUILD.gn b/test/fuzztest/uiextensionrecordfactory_fuzzer/BUILD.gn index df78d71143..42bbab112e 100644 --- a/test/fuzztest/uiextensionrecordfactory_fuzzer/BUILD.gn +++ b/test/fuzztest/uiextensionrecordfactory_fuzzer/BUILD.gn @@ -76,6 +76,12 @@ ohos_fuzztest("UIExtensionRecordFactoryFuzzTest") { if (ability_runtime_graphics) { external_deps += [ "input:libmmi-client" ] } + + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } ############################################################################### diff --git a/test/unittest/ability_bundle_event_callback_test/BUILD.gn b/test/unittest/ability_bundle_event_callback_test/BUILD.gn index ecd783c3d7..c81bfcdb03 100644 --- a/test/unittest/ability_bundle_event_callback_test/BUILD.gn +++ b/test/unittest/ability_bundle_event_callback_test/BUILD.gn @@ -68,6 +68,12 @@ ohos_unittest("ability_bundle_event_callback_test") { "window_manager:libwsutils", "window_manager:sms", ] + + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/ability_cache_manager_test/BUILD.gn b/test/unittest/ability_cache_manager_test/BUILD.gn index 7e80903c87..29c23d66b1 100644 --- a/test/unittest/ability_cache_manager_test/BUILD.gn +++ b/test/unittest/ability_cache_manager_test/BUILD.gn @@ -76,6 +76,11 @@ ohos_unittest("ability_cache_manager_test") { if (background_task_mgr_continuous_task_enable) { external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/ability_debug_deal_test/BUILD.gn b/test/unittest/ability_debug_deal_test/BUILD.gn index 582e376795..81ec1e7687 100644 --- a/test/unittest/ability_debug_deal_test/BUILD.gn +++ b/test/unittest/ability_debug_deal_test/BUILD.gn @@ -47,6 +47,12 @@ ohos_unittest("ability_debug_deal_test") { "hitrace:hitrace_meter", "ipc:ipc_core", ] + + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/ability_interceptor_test/BUILD.gn b/test/unittest/ability_interceptor_test/BUILD.gn index c724e37ad3..657c1a6cb7 100644 --- a/test/unittest/ability_interceptor_test/BUILD.gn +++ b/test/unittest/ability_interceptor_test/BUILD.gn @@ -81,6 +81,11 @@ ohos_unittest("ability_interceptor_test") { if (ability_runtime_graphics) { external_deps += [ "window_manager:libwm" ] } + + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/ability_manager_client_branch_test/BUILD.gn b/test/unittest/ability_manager_client_branch_test/BUILD.gn index aed05b337b..aacd507360 100644 --- a/test/unittest/ability_manager_client_branch_test/BUILD.gn +++ b/test/unittest/ability_manager_client_branch_test/BUILD.gn @@ -84,6 +84,11 @@ ohos_unittest("ability_manager_client_branch_test") { "window_manager:scene_session", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/ability_manager_service_third_test/BUILD.gn b/test/unittest/ability_manager_service_third_test/BUILD.gn index ab8ca9a624..43c68b9dd8 100644 --- a/test/unittest/ability_manager_service_third_test/BUILD.gn +++ b/test/unittest/ability_manager_service_third_test/BUILD.gn @@ -92,6 +92,11 @@ ohos_unittest("ability_manager_service_third_test") { "window_manager:scene_session", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/ability_manager_stub_test/BUILD.gn b/test/unittest/ability_manager_stub_test/BUILD.gn index ac50cdd9bc..c5258bc73f 100644 --- a/test/unittest/ability_manager_stub_test/BUILD.gn +++ b/test/unittest/ability_manager_stub_test/BUILD.gn @@ -78,6 +78,11 @@ ohos_unittest("ability_manager_stub_test") { if (background_task_mgr_continuous_task_enable) { external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/ability_record_test/BUILD.gn b/test/unittest/ability_record_test/BUILD.gn index 8b1103d7d2..bf8e194454 100644 --- a/test/unittest/ability_record_test/BUILD.gn +++ b/test/unittest/ability_record_test/BUILD.gn @@ -97,6 +97,11 @@ ohos_unittest("ability_record_test") { if (ability_runtime_graphics) { external_deps += [ "image_framework:image_native" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } ohos_unittest("ability_record_test_call") { diff --git a/test/unittest/app_exit_reason_data_manager_test/BUILD.gn b/test/unittest/app_exit_reason_data_manager_test/BUILD.gn index 1edb6f917c..80d71027fc 100755 --- a/test/unittest/app_exit_reason_data_manager_test/BUILD.gn +++ b/test/unittest/app_exit_reason_data_manager_test/BUILD.gn @@ -45,6 +45,11 @@ ohos_unittest("app_exit_reason_data_manager_test") { "hilog:libhilog", "kv_store:distributeddata_inner", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/app_mgr_service_inner_test/BUILD.gn b/test/unittest/app_mgr_service_inner_test/BUILD.gn index 0d3a3e3fa7..4e6751b5aa 100644 --- a/test/unittest/app_mgr_service_inner_test/BUILD.gn +++ b/test/unittest/app_mgr_service_inner_test/BUILD.gn @@ -89,6 +89,11 @@ ohos_unittest("AppMgrServiceInnerTest") { external_deps += [ "sandbox_manager:libsandbox_manager_sdk" ] defines += [ "ABILITY_RUNTIME_FEATURE_SANDBOXMANAGER" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/auto_startup_info_test/BUILD.gn b/test/unittest/auto_startup_info_test/BUILD.gn index 6be971fc04..34c86a580f 100644 --- a/test/unittest/auto_startup_info_test/BUILD.gn +++ b/test/unittest/auto_startup_info_test/BUILD.gn @@ -66,6 +66,11 @@ ohos_unittest("auto_startup_info_test") { "window_manager:scene_session", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/bundle_mgr_helper_test/BUILD.gn b/test/unittest/bundle_mgr_helper_test/BUILD.gn index f3a71b4aee..df50b6e5a0 100644 --- a/test/unittest/bundle_mgr_helper_test/BUILD.gn +++ b/test/unittest/bundle_mgr_helper_test/BUILD.gn @@ -39,6 +39,11 @@ ohos_unittest("bundle_mgr_helper_test") { "bundle_framework:appexecfwk_core", "c_utils:utils", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/connection_observer_controller_test/BUILD.gn b/test/unittest/connection_observer_controller_test/BUILD.gn index d163e77181..9b833a3f7f 100755 --- a/test/unittest/connection_observer_controller_test/BUILD.gn +++ b/test/unittest/connection_observer_controller_test/BUILD.gn @@ -64,6 +64,11 @@ ohos_unittest("connection_observer_controller_test") { if (background_task_mgr_continuous_task_enable) { external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/connection_observer_test/BUILD.gn b/test/unittest/connection_observer_test/BUILD.gn index 21a9434420..4481f37294 100644 --- a/test/unittest/connection_observer_test/BUILD.gn +++ b/test/unittest/connection_observer_test/BUILD.gn @@ -52,6 +52,11 @@ ohos_unittest("connection_observer_test") { "ipc:ipc_core", "samgr:samgr_proxy", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/connection_state_item_test/BUILD.gn b/test/unittest/connection_state_item_test/BUILD.gn index e2361c7bc0..afe7147f2d 100755 --- a/test/unittest/connection_state_item_test/BUILD.gn +++ b/test/unittest/connection_state_item_test/BUILD.gn @@ -70,6 +70,12 @@ ohos_unittest("connection_state_item_test") { if (background_task_mgr_continuous_task_enable) { external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] } + + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/connection_state_manager_test/BUILD.gn b/test/unittest/connection_state_manager_test/BUILD.gn index 7f8c8e2973..fdd6f037d4 100755 --- a/test/unittest/connection_state_manager_test/BUILD.gn +++ b/test/unittest/connection_state_manager_test/BUILD.gn @@ -70,6 +70,11 @@ ohos_unittest("connection_state_manager_test") { if (background_task_mgr_continuous_task_enable) { external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/data_ability_manager_test/BUILD.gn b/test/unittest/data_ability_manager_test/BUILD.gn index 7f04be76e8..ae098f521c 100644 --- a/test/unittest/data_ability_manager_test/BUILD.gn +++ b/test/unittest/data_ability_manager_test/BUILD.gn @@ -91,6 +91,12 @@ ohos_unittest("data_ability_manager_test") { if (ability_runtime_graphics) { external_deps += [ "window_manager:libwm" ] } + + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/dlp_state_item_test/BUILD.gn b/test/unittest/dlp_state_item_test/BUILD.gn index 651db13b43..11ad46ebb2 100644 --- a/test/unittest/dlp_state_item_test/BUILD.gn +++ b/test/unittest/dlp_state_item_test/BUILD.gn @@ -66,6 +66,11 @@ ohos_unittest("dlp_state_item_test") { if (background_task_mgr_continuous_task_enable) { external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/dlp_utils_test/BUILD.gn b/test/unittest/dlp_utils_test/BUILD.gn index 73e5f4369c..b9a6f6966b 100644 --- a/test/unittest/dlp_utils_test/BUILD.gn +++ b/test/unittest/dlp_utils_test/BUILD.gn @@ -39,6 +39,11 @@ ohos_unittest("dlp_utils_test") { "hilog:libhilog", "ipc:ipc_core", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/lifecycle_deal_test/BUILD.gn b/test/unittest/lifecycle_deal_test/BUILD.gn index 3bb8a157af..8c2a478cb3 100644 --- a/test/unittest/lifecycle_deal_test/BUILD.gn +++ b/test/unittest/lifecycle_deal_test/BUILD.gn @@ -67,6 +67,11 @@ ohos_unittest("lifecycle_deal_test") { if (background_task_mgr_continuous_task_enable) { external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/mission_list_manager_test/BUILD.gn b/test/unittest/mission_list_manager_test/BUILD.gn index c1a147b6d7..8a3fd2ded4 100644 --- a/test/unittest/mission_list_manager_test/BUILD.gn +++ b/test/unittest/mission_list_manager_test/BUILD.gn @@ -72,6 +72,11 @@ ohos_unittest("mission_list_manager_test") { if (background_task_mgr_continuous_task_enable) { external_deps += [ "background_task_mgr:bgtaskmgr_innerkits" ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/permission_verification_test/BUILD.gn b/test/unittest/permission_verification_test/BUILD.gn index f5f1352411..caf8ed7e2e 100755 --- a/test/unittest/permission_verification_test/BUILD.gn +++ b/test/unittest/permission_verification_test/BUILD.gn @@ -30,6 +30,11 @@ ohos_unittest("permission_verification_test") { "ability_base:want", "ipc:ipc_core", ] + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") { diff --git a/test/unittest/specified_mission_list_test/BUILD.gn b/test/unittest/specified_mission_list_test/BUILD.gn index 3df4fb5f89..9d242a484f 100644 --- a/test/unittest/specified_mission_list_test/BUILD.gn +++ b/test/unittest/specified_mission_list_test/BUILD.gn @@ -84,6 +84,11 @@ ohos_unittest("specified_mission_list_test") { "window_manager:scene_session", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/start_other_app_interceptor_test/BUILD.gn b/test/unittest/start_other_app_interceptor_test/BUILD.gn index 0de8fc9bdc..2af93d4f3a 100644 --- a/test/unittest/start_other_app_interceptor_test/BUILD.gn +++ b/test/unittest/start_other_app_interceptor_test/BUILD.gn @@ -58,6 +58,10 @@ ohos_unittest("start_other_app_interceptor_test") { "init:libbegetutil", "ipc:ipc_core", ] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ] + } } group("unittest") { diff --git a/test/unittest/ui_ability_lifecycle_manager_test/BUILD.gn b/test/unittest/ui_ability_lifecycle_manager_test/BUILD.gn index 6d3d0939a3..5928c78123 100644 --- a/test/unittest/ui_ability_lifecycle_manager_test/BUILD.gn +++ b/test/unittest/ui_ability_lifecycle_manager_test/BUILD.gn @@ -97,6 +97,11 @@ ohos_unittest("ui_ability_lifecycle_manager_test") { "window_manager:scene_session", ] } + cflags_cc = [] + if (os_dlp_part_enabled) { + cflags_cc += [ "-DWITH_DLP" ] + external_deps += [ "dlp_permission_service:libdlpparse" ] + } } group("unittest") {