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