mirror of
https://gitee.com/openharmony/filemanagement_app_file_service
synced 2024-11-23 16:10:07 +00:00
部件独立编译
Signed-off-by: cuiruibin <cuiruibin3@huawei.com>
This commit is contained in:
parent
a75bea85ab
commit
94973a939c
@ -23,6 +23,7 @@
|
||||
"ability_base",
|
||||
"ability_runtime",
|
||||
"access_token",
|
||||
"ace_napi",
|
||||
"bundle_framework",
|
||||
"build_framework",
|
||||
"common_event_service",
|
||||
@ -36,16 +37,18 @@
|
||||
"hilog",
|
||||
"ipc",
|
||||
"init",
|
||||
"jsoncpp",
|
||||
"json",
|
||||
"napi",
|
||||
"napi_common",
|
||||
"safwk",
|
||||
"samgr",
|
||||
"storage_service",
|
||||
"sandbox_manager"
|
||||
"sandbox_manager",
|
||||
"openssl"
|
||||
],
|
||||
"third_party": [
|
||||
"bounds_checking_function",
|
||||
"jsoncpp",
|
||||
"openssl"
|
||||
]
|
||||
},
|
||||
"adapted_system_type": [
|
||||
|
@ -40,18 +40,11 @@ ohos_shared_library("backup_extension_ability_native") {
|
||||
"LOG_TAG=\"BackupExt\"",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"include",
|
||||
"${path_napi}/native_engine",
|
||||
"${path_ability_runtime}/services/common/include",
|
||||
"${path_ability_runtime}/interfaces/kits/napi/aafwk/inner/napi_common",
|
||||
"${path_ability_runtime}/interfaces/kits/native/appkit/ability_runtime",
|
||||
]
|
||||
include_dirs = [ "include" ]
|
||||
|
||||
deps = [
|
||||
"${path_backup}/interfaces/inner_api/native/backup_kit_inner:backup_kit_inner",
|
||||
"${path_backup}/utils:backup_utils",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -60,6 +53,7 @@ ohos_shared_library("backup_extension_ability_native") {
|
||||
"ability_runtime:abilitykit_native",
|
||||
"ability_runtime:app_context",
|
||||
"ability_runtime:appkit_native",
|
||||
"ability_runtime:napi_common",
|
||||
"ability_runtime:runtime",
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"bundle_framework:appexecfwk_core",
|
||||
@ -67,6 +61,7 @@ ohos_shared_library("backup_extension_ability_native") {
|
||||
"hilog:libhilog",
|
||||
"hitrace:hitrace_meter",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
"napi:ace_napi",
|
||||
]
|
||||
|
||||
|
@ -18,7 +18,6 @@ config("file_share_config") {
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [
|
||||
"file_share/include",
|
||||
"//third_party/json/include",
|
||||
"../../common/include",
|
||||
]
|
||||
}
|
||||
@ -27,7 +26,6 @@ config("file_uri_config") {
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [
|
||||
"file_uri/include",
|
||||
"//third_party/json/include",
|
||||
"../../common/include",
|
||||
]
|
||||
}
|
||||
@ -62,6 +60,7 @@ ohos_shared_library("fileshare_native") {
|
||||
"file_api:filemgmt_libn",
|
||||
"hilog:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"json:nlohmann_json_static",
|
||||
"napi:ace_napi",
|
||||
]
|
||||
defines = []
|
||||
@ -91,10 +90,10 @@ ohos_shared_library("fileuri_native") {
|
||||
"hilog:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
"json:nlohmann_json_static",
|
||||
"samgr:samgr_proxy",
|
||||
]
|
||||
|
||||
innerapi_tags = [ "platformsdk" ]
|
||||
part_name = "app_file_service"
|
||||
subsystem_name = "filemanagement"
|
||||
}
|
||||
@ -117,10 +116,7 @@ config("remote_file_share_config") {
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [
|
||||
"include",
|
||||
"${utils_system_safwk_path}/native/include",
|
||||
"remote_file_share/include",
|
||||
"//third_party/json/include",
|
||||
"${path_base}/include",
|
||||
"../../common/include",
|
||||
".",
|
||||
]
|
||||
@ -139,6 +135,8 @@ ohos_shared_library("remote_file_share_native") {
|
||||
"ability_base:zuri",
|
||||
"c_utils:utils",
|
||||
"hilog:libhilog",
|
||||
"init:libbegetutil",
|
||||
"json:nlohmann_json_static",
|
||||
]
|
||||
|
||||
if (defined(global_parts_info) &&
|
||||
@ -156,9 +154,6 @@ config("sandbox_helper_config") {
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [
|
||||
"include",
|
||||
"${utils_system_safwk_path}/native/include",
|
||||
"//third_party/json/include",
|
||||
"${path_base}/include",
|
||||
"../../common/include",
|
||||
".",
|
||||
]
|
||||
@ -176,6 +171,8 @@ ohos_shared_library("sandbox_helper_native") {
|
||||
"ability_base:zuri",
|
||||
"c_utils:utils",
|
||||
"hilog:libhilog",
|
||||
"init:libbegetutil",
|
||||
"json:nlohmann_json_static",
|
||||
]
|
||||
|
||||
innerapi_tags = [ "platformsdk_indirect" ]
|
||||
|
@ -127,7 +127,6 @@ ohos_shared_library("backup") {
|
||||
deps = [
|
||||
"${path_backup}/interfaces/inner_api/native/backup_kit_inner:backup_kit_inner",
|
||||
"${path_backup}/utils:backup_utils",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -136,6 +135,7 @@ ohos_shared_library("backup") {
|
||||
"file_api:filemgmt_libn",
|
||||
"hilog:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
"napi:ace_napi",
|
||||
]
|
||||
}
|
||||
|
@ -56,7 +56,6 @@ ohos_shared_library("backup_sa") {
|
||||
deps = [
|
||||
"${path_backup}/interfaces/inner_api/native/backup_kit_inner:backup_kit_inner",
|
||||
"${path_backup}/utils:backup_utils",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -71,6 +70,7 @@ ohos_shared_library("backup_sa") {
|
||||
"hitrace:hitrace_meter",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
"safwk:system_ability_fwk",
|
||||
"samgr:samgr_proxy",
|
||||
"storage_service:storage_manager_sa_proxy",
|
||||
|
@ -47,7 +47,6 @@ ohos_unittest("tar_file_test") {
|
||||
"${path_backup}/tests/utils:backup_test_utils",
|
||||
"${path_backup}/utils:backup_utils",
|
||||
"${path_googletest}:gmock_main",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
cflags = [ "--coverage" ]
|
||||
@ -66,6 +65,7 @@ ohos_unittest("tar_file_test") {
|
||||
"c_utils:utils",
|
||||
"hitrace:hitrace_meter",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
"napi:ace_napi",
|
||||
"samgr:samgr_proxy",
|
||||
]
|
||||
@ -116,7 +116,6 @@ ohos_unittest("untar_file_test") {
|
||||
"${path_backup}/tests/utils:backup_test_utils",
|
||||
"${path_backup}/utils:backup_utils",
|
||||
"${path_googletest}:gmock_main",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
cflags = [ "--coverage" ]
|
||||
@ -135,6 +134,7 @@ ohos_unittest("untar_file_test") {
|
||||
"c_utils:utils",
|
||||
"hitrace:hitrace_meter",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
"napi:ace_napi",
|
||||
"samgr:samgr_proxy",
|
||||
]
|
||||
|
@ -98,7 +98,6 @@ ohos_unittest("backup_service_test") {
|
||||
"${path_backup}/tests/utils:backup_test_utils",
|
||||
"${path_backup}/utils:backup_utils",
|
||||
"${path_googletest}:gmock_main",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -111,6 +110,7 @@ ohos_unittest("backup_service_test") {
|
||||
"hitrace:hitrace_meter",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
"safwk:system_ability_fwk",
|
||||
"samgr:samgr_proxy",
|
||||
"storage_service:storage_manager_sa_proxy",
|
||||
@ -162,7 +162,6 @@ ohos_unittest("backup_service_session_test") {
|
||||
"${path_backup}/tests/utils:backup_test_utils",
|
||||
"${path_backup}/utils:backup_utils",
|
||||
"${path_googletest}:gmock_main",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -175,6 +174,7 @@ ohos_unittest("backup_service_session_test") {
|
||||
"hitrace:hitrace_meter",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
"safwk:system_ability_fwk",
|
||||
"samgr:samgr_proxy",
|
||||
"storage_service:storage_manager_sa_proxy",
|
||||
@ -271,7 +271,6 @@ ohos_unittest("backup_restore_deps_manager_test") {
|
||||
"${path_backup}/tests/utils:backup_test_utils",
|
||||
"${path_backup}/utils:backup_utils",
|
||||
"${path_googletest}:gmock_main",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -284,6 +283,7 @@ ohos_unittest("backup_restore_deps_manager_test") {
|
||||
"hitrace:hitrace_meter",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
"safwk:system_ability_fwk",
|
||||
"samgr:samgr_proxy",
|
||||
"storage_service:storage_manager_sa_proxy",
|
||||
|
@ -47,7 +47,6 @@ ohos_unittest("backup_tool_test") {
|
||||
"${path_backup}/tests/utils:backup_test_utils",
|
||||
"${path_backup}/utils:backup_utils",
|
||||
"${path_googletest}:gmock_main",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
cflags = [ "--coverage" ]
|
||||
@ -61,6 +60,7 @@ ohos_unittest("backup_tool_test") {
|
||||
"hilog:libhilog",
|
||||
"hitrace:hitrace_meter",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
"samgr:samgr_proxy",
|
||||
]
|
||||
|
||||
@ -104,7 +104,6 @@ ohos_unittest("backup_tool_restore_test") {
|
||||
"${path_backup}/tests/utils:backup_test_utils",
|
||||
"${path_backup}/utils:backup_utils",
|
||||
"${path_googletest}:gmock_main",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
cflags = [ "--coverage" ]
|
||||
@ -118,6 +117,7 @@ ohos_unittest("backup_tool_restore_test") {
|
||||
"hilog:libhilog",
|
||||
"hitrace:hitrace_meter",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
"samgr:samgr_proxy",
|
||||
]
|
||||
|
||||
|
@ -57,12 +57,12 @@ ohos_unittest("b_file_test") {
|
||||
deps = [
|
||||
"${path_backup}/tests/utils:backup_test_utils",
|
||||
"${path_backup}/utils/:backup_utils",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"c_utils:utils",
|
||||
"hilog:libhilog",
|
||||
"jsoncpp:jsoncpp",
|
||||
]
|
||||
|
||||
use_exceptions = true
|
||||
@ -117,12 +117,12 @@ ohos_unittest("b_json_test") {
|
||||
"${path_backup}/tests/utils:backup_test_utils",
|
||||
"${path_backup}/utils/:backup_utils",
|
||||
"${path_googletest}:gmock_main",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"c_utils:utils",
|
||||
"hilog:libhilog",
|
||||
"jsoncpp:jsoncpp",
|
||||
]
|
||||
|
||||
sanitize = {
|
||||
@ -219,11 +219,11 @@ ohos_unittest("b_process_test") {
|
||||
deps = [
|
||||
"${path_backup}/tests/utils:backup_test_utils",
|
||||
"${path_backup}/utils/:backup_utils",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
external_deps = [
|
||||
"c_utils:utils",
|
||||
"hilog:libhilog",
|
||||
"jsoncpp:jsoncpp",
|
||||
]
|
||||
|
||||
use_exceptions = true
|
||||
|
@ -31,7 +31,6 @@ ohos_executable("backup_tool") {
|
||||
deps += [
|
||||
"${path_backup}/interfaces/inner_api/native/backup_kit_inner:backup_kit_inner",
|
||||
"${path_backup}/utils/:backup_utils",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
]
|
||||
|
||||
sources += [
|
||||
@ -51,6 +50,7 @@ ohos_executable("backup_tool") {
|
||||
"hilog:libhilog",
|
||||
"hitrace:hitrace_meter",
|
||||
"ipc:ipc_core",
|
||||
"jsoncpp:jsoncpp",
|
||||
]
|
||||
|
||||
defines += [ "BACKUP_TOOL_ENABLE=1" ]
|
||||
|
@ -25,7 +25,6 @@ config("utils_public_config") {
|
||||
include_dirs = [
|
||||
"include",
|
||||
"include/b_hilog",
|
||||
"${path_base}/include",
|
||||
]
|
||||
}
|
||||
|
||||
@ -99,6 +98,7 @@ ohos_shared_library("backup_utils") {
|
||||
|
||||
configs = [ ":utils_private_config" ]
|
||||
public_configs = [ ":utils_public_config" ]
|
||||
public_external_deps = [ "c_utils:utilsbase" ]
|
||||
|
||||
external_deps = [
|
||||
"cJSON:cjson",
|
||||
@ -107,12 +107,13 @@ ohos_shared_library("backup_utils") {
|
||||
"hilog:libhilog",
|
||||
"hitrace:hitrace_meter",
|
||||
"init:libbegetutil",
|
||||
"json:nlohmann_json_static",
|
||||
"jsoncpp:jsoncpp",
|
||||
"openssl:libcrypto_shared",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"${path_init}/interfaces/innerkits/include/syspara",
|
||||
"${path_backup}/interfaces/inner_api/native/backup_kit_inner/impl",
|
||||
"${path_rust}/crates/cxx/include",
|
||||
"${target_gen_dir}/rust/src",
|
||||
]
|
||||
|
||||
@ -120,8 +121,6 @@ ohos_shared_library("backup_utils") {
|
||||
":backup_cxx_cppdeps",
|
||||
":backup_cxx_gen",
|
||||
":backup_cxx_rust",
|
||||
"${path_jsoncpp}:jsoncpp",
|
||||
"//third_party/openssl:libcrypto_shared",
|
||||
]
|
||||
|
||||
use_exceptions = true
|
||||
|
Loading…
Reference in New Issue
Block a user