# Copyright (C) 2021-2025 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("//build/ohos/sa_profile/sa_profile.gni")
import("//foundation/filemanagement/dfs_service/distributedfile.gni")
ohos_sa_profile("distributedfile_sa_profile") {
sources = [ "5204.json" ]
if (dfs_service_feature_enable_dist_file_daemon) {
sources += [ "5201.json" ]
}
if (dfs_service_feature_enable_cloud_adapter) {
sources += [ "5205.json" ]
}
part_name = "dfs_service"
}
ohos_sa_profile("clouddiskservice_sa_profile") {
sources = [ "5207.json" ]
part_name = "dfs_service"
}
ohos_prebuilt_etc("distributedfile_etc") {
source = "distributedfile.cfg"
relative_install_dir = "init"
part_name = "dfs_service"
subsystem_name = "filemanagement"
}
ohos_prebuilt_etc("clouddiskservice_etc") {
source = "clouddiskservice.cfg"
relative_install_dir = "init"
part_name = "dfs_service"
subsystem_name = "filemanagement"
}
ohos_prebuilt_etc("cloudfiledaemon_etc") {
source = "cloudfiledaemon.cfg"
relative_install_dir = "init"
part_name = "dfs_service"
subsystem_name = "filemanagement"
}
ohos_prebuilt_etc("distributed_file.para") {
source = "distributed_file.para"
part_name = "dfs_service"
module_install_dir = "etc/param"
part_name = "dfs_service"
subsystem_name = "filemanagement"
}
ohos_prebuilt_etc("cloudsyncservice.para") {
source = "cloudsyncservice.para"
part_name = "dfs_service"
module_install_dir = "etc/param"
subsystem_name = "filemanagement"
}
ohos_prebuilt_etc("cloudsyncservice.para.dac") {
source = "cloudsyncservice.para.dac"
part_name = "dfs_service"
module_install_dir = "etc/param"
subsystem_name = "filemanagement"
}