1# Copyright (c) 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 17ohos_shared_library("ohdlp_permission") { 18 include_dirs = [ 19 "${dlp_root_dir}/frameworks/common/include", 20 "${dlp_root_dir}/interfaces/inner_api/dlp_permission/include", 21 "${dlp_root_dir}/interfaces/kits/c/include", 22 ] 23 24 sources = [ "${dlp_root_dir}/interfaces/kits/c/src/dlp_permission_api.cpp" ] 25 26 deps = [ 27 "${dlp_root_dir}/interfaces/inner_api/dlp_permission:libdlp_permission_sdk", 28 ] 29 30 cflags_cc = [ 31 "-DHILOG_ENABLE", 32 "-fPIC", 33 "-Wall", 34 ] 35 36 external_deps = [ 37 "ability_base:want", 38 "access_token:libaccesstoken_sdk", 39 "access_token:libtokensetproc_shared", 40 "c_utils:utils", 41 "hilog:libhilog", 42 "ipc:ipc_core", 43 "os_account:os_account_innerkits", 44 "samgr:samgr_proxy", 45 ] 46 47 subsystem_name = "security" 48 output_extension = "so" 49 innerapi_tags = [ "ndk" ] 50 part_name = "dlp_permission_service" 51} 52