181b96c26Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
281b96c26Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
381b96c26Sopenharmony_ci# you may not use this file except in compliance with the License.
481b96c26Sopenharmony_ci# You may obtain a copy of the License at
581b96c26Sopenharmony_ci#
681b96c26Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
781b96c26Sopenharmony_ci#
881b96c26Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
981b96c26Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1081b96c26Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1181b96c26Sopenharmony_ci# See the License for the specific language governing permissions and
1281b96c26Sopenharmony_ci# limitations under the License.
1381b96c26Sopenharmony_ci
1481b96c26Sopenharmony_ciimport("//build/ohos.gni")
1581b96c26Sopenharmony_ciimport("../../../dlp_permission_service.gni")
1681b96c26Sopenharmony_ci
1781b96c26Sopenharmony_ciohos_shared_library("ohdlp_permission") {
1881b96c26Sopenharmony_ci  include_dirs = [
1981b96c26Sopenharmony_ci    "${dlp_root_dir}/frameworks/common/include",
2081b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/inner_api/dlp_permission/include",
2181b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/kits/c/include",
2281b96c26Sopenharmony_ci  ]
2381b96c26Sopenharmony_ci
2481b96c26Sopenharmony_ci  sources = [ "${dlp_root_dir}/interfaces/kits/c/src/dlp_permission_api.cpp" ]
2581b96c26Sopenharmony_ci
2681b96c26Sopenharmony_ci  deps = [
2781b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/inner_api/dlp_permission:libdlp_permission_sdk",
2881b96c26Sopenharmony_ci  ]
2981b96c26Sopenharmony_ci
3081b96c26Sopenharmony_ci  cflags_cc = [
3181b96c26Sopenharmony_ci    "-DHILOG_ENABLE",
3281b96c26Sopenharmony_ci    "-fPIC",
3381b96c26Sopenharmony_ci    "-Wall",
3481b96c26Sopenharmony_ci  ]
3581b96c26Sopenharmony_ci
3681b96c26Sopenharmony_ci  external_deps = [
3781b96c26Sopenharmony_ci    "ability_base:want",
3881b96c26Sopenharmony_ci    "access_token:libaccesstoken_sdk",
3981b96c26Sopenharmony_ci    "access_token:libtokensetproc_shared",
4081b96c26Sopenharmony_ci    "c_utils:utils",
4181b96c26Sopenharmony_ci    "hilog:libhilog",
4281b96c26Sopenharmony_ci    "ipc:ipc_core",
4381b96c26Sopenharmony_ci    "os_account:os_account_innerkits",
4481b96c26Sopenharmony_ci    "samgr:samgr_proxy",
4581b96c26Sopenharmony_ci  ]
4681b96c26Sopenharmony_ci
4781b96c26Sopenharmony_ci  subsystem_name = "security"
4881b96c26Sopenharmony_ci  output_extension = "so"
4981b96c26Sopenharmony_ci  innerapi_tags = [ "ndk" ]
5081b96c26Sopenharmony_ci  part_name = "dlp_permission_service"
5181b96c26Sopenharmony_ci}
52