• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15import("//foundation/filemanagement/dfs_service/distributedfile.gni")
16
17config("compiler_configs") {
18  visibility = [ ":*" ]
19
20  cflags = [
21    "-Wall",
22    "-Werror",
23    "-Wdate-time",
24    "-Wfloat-equal",
25    "-Wshadow",
26    "-Wformat=2",
27    "-fvisibility=hidden",
28    "-ffunction-sections",
29    "-Os",
30  ]
31  configs = [ "//build/config/compiler:exceptions" ]
32
33  cflags_cc = [
34    "-fvisibility-inlines-hidden",
35    "-Os",
36  ]
37
38  defines = [
39    "LOG_DOMAIN=0xD001600",
40    "LOG_LEVEL=INFO",
41  ]
42}
43
44config("utils_public_config") {
45  include_dirs = [
46    "log/include",
47    "system/include",
48    "//utils/native/base/include",
49  ]
50}
51
52ohos_shared_library("libdistributedfileutils") {
53  sources = [
54    "log/src/utils_log.cpp",
55    "system/src/dfsu_mount_argument_descriptors.cpp",
56    "system/src/utils_directory.cpp",
57  ]
58
59  configs = [ "//build/config/compiler:exceptions" ]
60  public_configs = [ ":utils_public_config" ]
61
62  public_deps = [
63    "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
64    "//utils/native/base:utils",
65  ]
66
67  part_name = "dfs_service"
68  subsystem_name = "filemanagement"
69}
70