DLP GN define DWITH_DLP

Signed-off-by: liuzongze <liuzongze@huawei.com>
Change-Id: I9c50f90c09609632abe916c229578bb84ddda7a5
This commit is contained in:
liuzongze 2024-08-07 15:34:04 +08:00
parent ecc398a761
commit 013bc96279
79 changed files with 418 additions and 0 deletions

View File

@ -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"
}

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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",

View File

@ -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"

View File

@ -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",

View File

@ -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"

View File

@ -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"

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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" ]
}
}
###############################################################################

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {

View File

@ -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") {