1# Copyright (c) 2023-2024 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 17config("dlp_fuse_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ "include" ] 20} 21 22ohos_shared_library("libdlp_fuse") { 23 branch_protector_ret = "pac_ret" 24 25 sanitize = { 26 cfi = true 27 cfi_cross_dso = true 28 debug = false 29 } 30 31 innerapi_tags = [ "platformsdk" ] 32 subsystem_name = "security" 33 part_name = "dlp_permission_service" 34 output_name = "libdlp_fuse" 35 36 include_dirs = [ 37 "${dlp_root_dir}/frameworks/common/include", 38 "${dlp_root_dir}/interfaces/inner_api/dlp_parse/include", 39 "${dlp_root_dir}/interfaces/inner_api/dlp_permission/include/", 40 "include", 41 ] 42 43 sources = [ 44 "src/dlp_fuse_fd.c", 45 "src/dlp_fuse_helper.cpp", 46 "src/dlp_fuse_utils.cpp", 47 "src/dlp_link_file.cpp", 48 "src/dlp_link_manager.cpp", 49 "src/fuse_daemon.cpp", 50 ] 51 52 public_configs = [ ":dlp_fuse_config" ] 53 54 configs = [ "${dlp_root_dir}/config:coverage_flags" ] 55 56 deps = [ "${dlp_root_dir}/interfaces/inner_api/dlp_parse:libdlpparse_inner" ] 57 58 external_deps = [ 59 "c_utils:utils", 60 "hilog:libhilog", 61 "libfuse:libfuse", 62 ] 63 64 cflags_cc = [ 65 "-DHILOG_ENABLE", 66 "-DFUSE_USE_VERSION=35", 67 ] 68 69 cflags = [ "-DHILOG_ENABLE" ] 70} 71