• 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("../../../dlp_permission_service.gni")
16
17ohos_shared_library("libdlp_fuse") {
18  subsystem_name = "security"
19  part_name = "dlp_permission_service"
20  output_name = "libdlp_fuse"
21
22  include_dirs = [
23    "${dlp_root_dir}/frameworks/common/include",
24    "${dlp_root_dir}/interfaces/inner_api/dlp_parse/include",
25    "${dlp_root_dir}/interfaces/inner_api/dlp_permission/include/",
26    "//third_party/libfuse/include/",
27    "include",
28  ]
29
30  sources = [
31    "src/dlp_link_file.cpp",
32    "src/dlp_link_manager.cpp",
33    "src/fuse_daemon.cpp",
34  ]
35
36  configs = [ "${dlp_root_dir}/config:coverage_flags" ]
37
38  deps = [
39    "${dlp_root_dir}/interfaces/inner_api/dlp_parse:libdlpparse_inner",
40    "//third_party/libfuse:libfuse",
41  ]
42
43  external_deps = [
44    "c_utils:utils",
45    "hilog:libhilog",
46  ]
47
48  cflags_cc = [
49    "-DHILOG_ENABLE",
50    "-DFUSE_USE_VERSION=35",
51  ]
52}
53