diff --git a/BUILD.gn b/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..180b46ec8075e1142513c4a775109aa7584b7c3a --- /dev/null +++ b/BUILD.gn @@ -0,0 +1,37 @@ +# Copyright (C) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + +import("//build/ohos.gni") +import("//foundation/filemanagement/dfs_service/distributedfile.gni") + +group("libdistributedfile_innerkits") { + deps = [ "${innerkits_native_path}:libdistributedfile_innerkits" ] +} + +group("services_target") { + deps = [ + "${services_path}:distributed_file.para", + "${services_path}:distributedfile_etc", + "${services_path}:distributedfile_sa_profile", + "${services_path}/distributedfiledaemon:libdistributedfiledaemon", + "${services_path}/distributedfileservice:libdistributedfileservice", + ] +} + +group("dfs_test_moudule") { + testonly = true + deps = [ + "${services_path}/distributedfiledaemon/test/unittest:DeviceManagerAgentTest", + "test/moduletest:DistributedFileDaemonServiceTest", + ] +} diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000000000000000000000000000000000000..fb9e31e5b8067e543f88b38f87264d5f1985739d --- /dev/null +++ b/bundle.json @@ -0,0 +1,57 @@ +{ + "name": "@ohos/dfs_service", + "version": "3.1", + "description": "The dfs_service module belongs to the filemanagement subsystem of OpenHarmony. It provides the ability of accessing distributed files.", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "foundation/filemanagement/dfs_service" + }, + "dirs": {}, + "scripts": {}, + "author": {}, + "repository": "", + "component": { + "name": "dfs_service", + "subsystem": "filemanagement", + "syscap": [], + "features": [], + "adapted_system_type": [], + "rom": "", + "ram": "", + "deps": { + "components": [ + "ability_runtime", + "bundle_framework", + "dsoftbus", + "ipc", + "hilog", + "safwk", + "samgr", + "utils" + ], + "third_party": [ + "json_modern_c++" + ] + }, + "build": { + "sub_component": [ + "//foundation/filemanagement/dfs_service:services_target" + ], + "inner_kits": [ + { + "name": "//foundation/filemanagement/dfs_service:libdistributedfile_innerkits", + "header": { + "header_files": [ + "i_distributedfile_service.h" + ], + "header_base": "//foundation/filemanagement/dfs_service/interfaces/innerkits/native" + } + } + ], + "test": [ + "//foundation/filemanagement/dfs_service:dfs_test_moudule" + ] + } + } +} diff --git a/ohos.build b/ohos.build deleted file mode 100755 index b56a401897715fbc40149645442bb2a508ef6288..0000000000000000000000000000000000000000 --- a/ohos.build +++ /dev/null @@ -1,29 +0,0 @@ -{ - "subsystem": "filemanagement", - "parts": { - "dfs_service": { - "variants": [ - "wearable", - "phone" - ], - "module_list": [ - "//foundation/filemanagement/dfs_service/services/:services_target" - ], - "inner_kits":[ - { - "name": "//foundation/filemanagement/dfs_service/interfaces/innerkits/native:libdistributedfile_innerkits", - "header": { - "header_files": [ - "i_distributedfile_service.h" - ], - "header_base": "//foundation/filemanagement/dfs_service/interfaces/innerkits/native" - } - } - ], - "test_list": [ - "//foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest:unittest", - "//foundation/filemanagement/dfs_service/test/moduletest:moduletest" - ] - } - } -} diff --git a/services/BUILD.gn b/services/BUILD.gn index d9afcb9c6a9f95152312c9bcc9b0cbf612283641..f9b13805e077797c3d3d0e16b55a5ff3dc5bae83 100644 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -34,13 +34,3 @@ ohos_prebuilt_etc("distributed_file.para") { part_name = "dfs_service" module_install_dir = "etc/param" } - -group("services_target") { - deps = [ - ":distributed_file.para", - ":distributedfile_etc", - ":distributedfile_sa_profile", - "distributedfiledaemon:distributedfiledaemon_target", - "distributedfileservice:distributedfileservice_target", - ] -} diff --git a/services/distributedfiledaemon/BUILD.gn b/services/distributedfiledaemon/BUILD.gn index 35e054121f1e792977b6717f700374c04163f150..af0d2e29484cc47e92c572714d7ec71e6234bc28 100755 --- a/services/distributedfiledaemon/BUILD.gn +++ b/services/distributedfiledaemon/BUILD.gn @@ -52,7 +52,3 @@ ohos_shared_library("libdistributedfiledaemon") { part_name = "dfs_service" subsystem_name = "filemanagement" } - -group("distributedfiledaemon_target") { - deps = [ ":libdistributedfiledaemon" ] -} diff --git a/services/distributedfileservice/BUILD.gn b/services/distributedfileservice/BUILD.gn index b3ed94eb49d9a781466ed85a50cf997cac7e5d2a..18acb1a250db760756d1dba6796d6e99da3deab5 100644 --- a/services/distributedfileservice/BUILD.gn +++ b/services/distributedfileservice/BUILD.gn @@ -24,7 +24,6 @@ ohos_shared_library("libdistributedfileservice") { configs = [ "${utils_path}:compiler_configs" ] external_deps = [ - "ability_runtime:app_manager", "ability_runtime:want", "bundle_framework:appexecfwk_base", "bundle_framework:appexecfwk_core", @@ -41,7 +40,3 @@ ohos_shared_library("libdistributedfileservice") { part_name = "dfs_service" subsystem_name = "filemanagement" } - -group("distributedfileservice_target") { - deps = [ ":libdistributedfileservice" ] -} diff --git a/test/moduletest/BUILD.gn b/test/moduletest/BUILD.gn index 1e39a9a8034215ac8b4587bac959583406d3b1e8..8bc51b4528fad43b1785cbea2206f8644fc4725c 100644 --- a/test/moduletest/BUILD.gn +++ b/test/moduletest/BUILD.gn @@ -72,8 +72,3 @@ ohos_moduletest("DistributedFileDaemonServiceTest") { "samgr_standard:samgr_proxy", ] } - -group("moduletest") { - testonly = true - deps = [ ":DistributedFileDaemonServiceTest" ] -}