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 integer_overflow = true 27 cfi = true 28 cfi_cross_dso = true 29 debug = false 30 } 31 32 innerapi_tags = [ "platformsdk" ] 33 subsystem_name = "security" 34 part_name = "dlp_permission_service" 35 output_name = "libdlp_fuse" 36 37 include_dirs = [ 38 "${dlp_root_dir}/frameworks/common/include", 39 "${dlp_root_dir}/interfaces/inner_api/dlp_parse/include", 40 "${dlp_root_dir}/interfaces/inner_api/dlp_permission/include/", 41 "include", 42 ] 43 44 sources = [ 45 "src/dlp_fuse_fd.c", 46 "src/dlp_fuse_helper.cpp", 47 "src/dlp_fuse_utils.cpp", 48 "src/dlp_link_file.cpp", 49 "src/dlp_link_manager.cpp", 50 "src/fuse_daemon.cpp", 51 ] 52 53 public_configs = [ ":dlp_fuse_config" ] 54 55 configs = [ 56 "${dlp_permission_public_config_path}/:dlp_permission_sdk_config", 57 "${dlp_root_dir}/config:coverage_flags", 58 ] 59 60 deps = [ "${dlp_root_dir}/interfaces/inner_api/dlp_parse:libdlpparse_inner" ] 61 62 external_deps = [ 63 "c_utils:utils", 64 "hilog:libhilog", 65 "ipc:ipc_single", 66 "libfuse:libfuse", 67 ] 68 69 cflags_cc = [ 70 "-DHILOG_ENABLE", 71 "-DFUSE_USE_VERSION=35", 72 ] 73 74 cflags = [ "-DHILOG_ENABLE" ] 75} 76