# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("../../../dlp_permission_service.gni") ohos_shared_library("ohdlp_permission") { include_dirs = [ "${dlp_root_dir}/frameworks/common/include", "${dlp_root_dir}/interfaces/inner_api/dlp_permission/include", "${dlp_root_dir}/interfaces/kits/c/include", ] sources = [ "${dlp_root_dir}/interfaces/kits/c/src/dlp_permission_api.cpp" ] deps = [ "${dlp_root_dir}/interfaces/inner_api/dlp_permission:libdlp_permission_sdk", ] cflags_cc = [ "-DHILOG_ENABLE", "-fPIC", "-Wall", ] external_deps = [ "ability_base:want", "access_token:libaccesstoken_sdk", "access_token:libtokensetproc_shared", "c_utils:utils", "hilog:libhilog", "ipc:ipc_core", "os_account:os_account_innerkits", "samgr:samgr_proxy", ] subsystem_name = "security" output_extension = "so" innerapi_tags = [ "ndk" ] part_name = "dlp_permission_service" }