• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 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")
15
16config("screenlock_service_config") {
17  visibility = [ ":*" ]
18  include_dirs = [
19    "include",
20  ]
21
22  cflags_cc = [ "-fexceptions" ]
23}
24
25ohos_shared_library("screenlock_server") {
26  sources = [
27    "src/screenlock_manager_stub.cpp",
28    "src/screenlock_system_ability.cpp",
29    "src/screenlock_system_ability_proxy.cpp",
30    "src/screenlock_get_info_callback.cpp",
31  ]
32
33  public_configs = [
34    "//utils/native/base:utils_config",
35    ":screenlock_service_config",
36  ]
37   include_dirs = [
38    "//utils/native/base/include",
39    "//utils/system/safwk/native/include",
40    "//base/telephony/core_service/utils/log/include",
41    "//base/telephony/core_service/interfaces/innerkits/include",
42    "//base/miscservices/screenlock/frameworks/kitsimpl/include",
43    "//base/user_idm/interfaces/innerkits/include",
44    "//third_party/json/include",
45  ]
46  deps = [
47    "//utils/native/base:utils",
48    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
49    "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk",
50    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
51    "//base/miscservices/screenlock/utils:screenlock_utils",
52    "//base/telephony/core_service/interfaces/innerkits:tel_core_service_api",
53    "//foundation/windowmanager/utils:libwmutil",
54    "//base/user_iam/user_idm/interfaces/innerkits:useridm_framework",
55  ]
56  external_deps = [
57    "ipc:ipc_core",
58    "ril_adapter:hril_innerkits",
59    "hiviewdfx_hilog_native:libhilog",
60    "bundle_framework:appexecfwk_core",
61    "multimedia_image_standard:image_native",
62    "window_manager:libwm",
63    "window_manager:libdm",
64    "os_account_standard:os_account_innerkits",
65  ]
66  relative_install_dir = "module"
67  subsystem_name = "miscservices"
68  part_name = "screenlock"
69}
70
71
72
73