• 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")
15import("../../screenlock.gni")
16
17config("screenlock_mgr_frameworks_native_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "include",
21    "${screenlock_mgr_path}/frameworks/native/include",
22    "${screenlock_mgr_path}/utils/include",
23    "${screenlock_mgr_path}/services/include",
24  ]
25
26  cflags_cc = []
27}
28
29ohos_shared_library("screenlock_client") {
30  if (is_standard_system) {
31    sanitize = {
32      cfi = true
33      cfi_cross_dso = true
34      debug = false
35    }
36    sources = [
37      "${screenlock_mgr_path}/frameworks/native/src/screenlock_app_manager.cpp",
38      "${screenlock_mgr_path}/frameworks/native/src/screenlock_callback_stub.cpp",
39      "${screenlock_mgr_path}/frameworks/native/src/screenlock_manager.cpp",
40      "${screenlock_mgr_path}/frameworks/native/src/screenlock_manager_proxy.cpp",
41      "${screenlock_mgr_path}/frameworks/native/src/screenlock_system_ability_stub.cpp",
42    ]
43
44    cflags = [
45      "-fdata-sections",
46      "-ffunction-sections",
47      "-fvisibility=hidden",
48      "-Os",
49    ]
50
51    version_script = "screenlock_client.versionscript"
52
53    public_configs = [ ":screenlock_mgr_frameworks_native_config" ]
54
55    include_dirs = [
56      "include",
57      "${screenlock_mgr_path}/frameworks/native/include",
58      "${window_base_path}/interfaces/innerkits/wm",
59    ]
60
61    deps = [ "${screenlock_mgr_path}/utils:screenlock_utils" ]
62
63    external_deps = [
64      "c_utils:utils",
65      "graphic_2d:librender_service_client",
66      "hilog:libhilog",
67      "hitrace:hitrace_meter",
68      "ipc:ipc_single",
69      "samgr:samgr_proxy",
70      "window_manager:libwsutils",
71      "window_manager:session_manager",
72    ]
73    subsystem_name = "theme"
74    innerapi_tags = [ "platformsdk" ]
75    part_name = "screenlock_mgr"
76  }
77}
78