• 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("../../../../access_token.gni")
16
17config("cj_screen_lock_file_manager_ffi_config") {
18  include_dirs = [ "include" ]
19}
20
21ohos_shared_library("cj_screen_lock_file_manager_ffi") {
22  sanitize = {
23    cfi = true
24    cfi_cross_dso = true
25    debug = false
26  }
27  branch_protector_ret = "pac_ret"
28  include_dirs = [
29    "${access_token_path}/frameworks/inner_api/el5filekeymanager/include",
30    "${access_token_path}/interfaces/inner_api/el5filekeymanager/include",
31    "${access_token_path}/interfaces/kits/cj/access_token/include",
32  ]
33
34  if (!defined(defines)) {
35    defines = []
36  }
37
38  sources = [ "src/screen_lock_file_manager_ffi.cpp" ]
39
40  deps = [ "${access_token_path}/interfaces/inner_api/el5filekeymanager:el5_filekey_manager_sdk" ]
41
42  external_deps = [
43    "c_utils:utils",
44    "hilog:libhilog",
45    "ipc:ipc_single",
46    "napi:cj_bind_ffi",
47  ]
48
49  cflags_cc = [ "-DHILOG_ENABLE" ]
50  public_configs = [ ":cj_screen_lock_file_manager_ffi_config" ]
51  configs = [
52    "${access_token_path}/config:access_token_compile_flags",
53    "${access_token_path}/config:coverage_flags",
54  ]
55
56  innerapi_tags = [ "platformsdk" ]
57  subsystem_name = "security"
58  part_name = "access_token"
59}
60