181b96c26Sopenharmony_ci# Copyright (c) 2023 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("libdlppermission_napi") {
1881b96c26Sopenharmony_ci  branch_protector_ret = "pac_ret"
1981b96c26Sopenharmony_ci
2081b96c26Sopenharmony_ci  sanitize = {
2181b96c26Sopenharmony_ci    cfi = true
2281b96c26Sopenharmony_ci    cfi_cross_dso = true
2381b96c26Sopenharmony_ci    debug = false
2481b96c26Sopenharmony_ci  }
2581b96c26Sopenharmony_ci
2681b96c26Sopenharmony_ci  include_dirs = [
2781b96c26Sopenharmony_ci    "${dlp_root_dir}/frameworks/common/include",
2881b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/inner_api/dlp_permission/include",
2981b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/kits/dlp_permission/napi/include",
3081b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/kits/napi_common/include",
3181b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/inner_api/dlp_parse/include",
3281b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/inner_api/dlp_fuse/include",
3381b96c26Sopenharmony_ci  ]
3481b96c26Sopenharmony_ci
3581b96c26Sopenharmony_ci  sources = [
3681b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/kits/dlp_permission/napi/src/napi_dlp_permission.cpp",
3781b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/kits/napi_common/src/napi_common.cpp",
3881b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/kits/napi_common/src/napi_error_msg.cpp",
3981b96c26Sopenharmony_ci  ]
4081b96c26Sopenharmony_ci
4181b96c26Sopenharmony_ci  deps = [
4281b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/inner_api/dlp_fuse:libdlp_fuse",
4381b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/inner_api/dlp_parse:libdlpparse_inner",
4481b96c26Sopenharmony_ci    "${dlp_root_dir}/interfaces/inner_api/dlp_permission:libdlp_permission_sdk",
4581b96c26Sopenharmony_ci  ]
4681b96c26Sopenharmony_ci  cflags_cc = [ "-DHILOG_ENABLE" ]
4781b96c26Sopenharmony_ci
4881b96c26Sopenharmony_ci  configs = [ "${dlp_root_dir}/config:coverage_flags" ]
4981b96c26Sopenharmony_ci
5081b96c26Sopenharmony_ci  external_deps = [
5181b96c26Sopenharmony_ci    "ability_base:base",
5281b96c26Sopenharmony_ci    "ability_base:want",
5381b96c26Sopenharmony_ci    "ability_base:zuri",
5481b96c26Sopenharmony_ci    "ability_runtime:ability_context_native",
5581b96c26Sopenharmony_ci    "ability_runtime:ability_manager",
5681b96c26Sopenharmony_ci    "ability_runtime:abilitykit_native",
5781b96c26Sopenharmony_ci    "ability_runtime:app_context",
5881b96c26Sopenharmony_ci    "ability_runtime:napi_base_context",
5981b96c26Sopenharmony_ci    "ability_runtime:napi_common",
6081b96c26Sopenharmony_ci    "access_token:libaccesstoken_sdk",
6181b96c26Sopenharmony_ci    "access_token:libtokenid_sdk",
6281b96c26Sopenharmony_ci    "access_token:libtokensetproc_shared",
6381b96c26Sopenharmony_ci    "ace_engine:ace_uicontent",
6481b96c26Sopenharmony_ci    "bundle_framework:appexecfwk_base",
6581b96c26Sopenharmony_ci    "bundle_framework:appexecfwk_core",
6681b96c26Sopenharmony_ci    "c_utils:utils",
6781b96c26Sopenharmony_ci    "file_api:filemgmt_libn",
6881b96c26Sopenharmony_ci    "hilog:libhilog",
6981b96c26Sopenharmony_ci    "ipc:ipc_core",
7081b96c26Sopenharmony_ci    "napi:ace_napi",
7181b96c26Sopenharmony_ci    "samgr:samgr_proxy",
7281b96c26Sopenharmony_ci  ]
7381b96c26Sopenharmony_ci
7481b96c26Sopenharmony_ci  relative_install_dir = "module"
7581b96c26Sopenharmony_ci  subsystem_name = "security"
7681b96c26Sopenharmony_ci  part_name = "dlp_permission_service"
7781b96c26Sopenharmony_ci}
78