• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("//build/ohos_var.gni")
16import("//foundation/filemanagement/storage_service/storage_service_aafwk.gni")
17
18config("public_config") {
19  include_dirs = [ "." ]
20}
21
22config("private_config") {
23  include_dirs = [
24    "${storage_manager_path}/include",
25    "${storage_daemon_path}/include",
26    "${storage_service_common_path}/include",
27    "${storage_interface_path}/innerkits/storage_manager/native",
28  ]
29}
30
31ohos_shared_library("storage_manager_acl") {
32  branch_protector_ret = "pac_ret"
33  sanitize = {
34    integer_overflow = true
35    ubsan = true
36    boundary_sanitize = true
37    cfi = true
38    cfi_cross_dso = true
39    debug = false
40  }
41
42  sources = [
43    "${storage_daemon_path}/file_sharing/src/acl.cpp",
44    "${storage_daemon_path}/file_sharing/src/setacl.cpp",
45    "${storage_daemon_path}/utils/file_utils.cpp",
46  ]
47
48  defines = [
49    "STORAGE_LOG_TAG = \"StorageManager\"",
50    "LOG_DOMAIN = 0xD004300",
51  ]
52
53  configs = [ ":private_config" ]
54  public_configs = [ ":public_config" ]
55
56  cflags = [
57    "-D_FORTIFY_SOURCE=2",
58    "-fstack-protector-strong",
59  ]
60
61  external_deps = [
62    "c_utils:utils",
63    "hilog:libhilog",
64    "init:libbegetutil",
65    "ipc:ipc_core",
66  ]
67
68  innerapi_tags = [ "chipsetsdk_sp_indirect" ]
69  part_name = "storage_service"
70  subsystem_name = "filemanagement"
71}
72