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. 13import("//build/ohos.gni") 14config("screenlock_mgr_interfaces_kits_napi_config") { 15 visibility = [ ":*" ] 16 include_dirs = [ "include" ] 17 18 cflags_cc = [] 19} 20ohos_shared_library("screenlock") { 21 if (is_standard_system) { 22 include_dirs = [ 23 "//foundation/arkui/napi/interfaces/kits", 24 "//third_party/node/src", 25 "//foundation/ability/ability_runtime/services/common/include", 26 "//utils/system/safwk/native/include", 27 "//base/theme/screenlock_mgr/interfaces/kits/napi/include", 28 "//base/theme/screenlock_mgr/services/include", 29 "//base/theme/screenlock_mgr/utils/include", 30 "//commonlibrary/c_utils/base/include", 31 ] 32 public_configs = [ ":screenlock_mgr_interfaces_kits_napi_config" ] 33 sources = [ 34 "src/async_call.cpp", 35 "src/napi_screenlock_ability.cpp", 36 "src/screenlock_callback.cpp", 37 "src/screenlock_js_util.cpp", 38 "src/screenlock_system_ability_callback.cpp", 39 ] 40 deps = 41 [ "//base/theme/screenlock_mgr/frameworks/kitsimpl:screenlock_client" ] 42 external_deps = [ 43 "c_utils:utils", 44 "hitrace_native:hitrace_meter", 45 "hiviewdfx_hilog_native:libhilog", 46 "ipc:ipc_core", 47 "napi:ace_napi", 48 ] 49 relative_install_dir = "module" 50 subsystem_name = "theme" 51 part_name = "screenlock_mgr" 52 } 53} 54 55ohos_static_library("screenlock_static") { 56 if (is_standard_system) { 57 include_dirs = [ 58 "//foundation/arkui/napi/interfaces/kits", 59 "//third_party/node/src", 60 "//foundation/ability/ability_runtime/services/common/include", 61 "//utils/system/safwk/native/include", 62 "//base/theme/screenlock_mgr/interfaces/kits/napi/include", 63 "//base/theme/screenlock_mgr/services/include", 64 "//base/theme/screenlock_mgr/utils/include", 65 "//commonlibrary/c_utils/base/include", 66 ] 67 public_configs = [ ":screenlock_mgr_interfaces_kits_napi_config" ] 68 sources = [ 69 "src/async_call.cpp", 70 "src/napi_screenlock_ability.cpp", 71 "src/screenlock_callback.cpp", 72 "src/screenlock_js_util.cpp", 73 "src/screenlock_system_ability_callback.cpp", 74 ] 75 deps = 76 [ "//base/theme/screenlock_mgr/frameworks/kitsimpl:screenlock_client" ] 77 external_deps = [ 78 "c_utils:utils", 79 "hitrace_native:hitrace_meter", 80 "hiviewdfx_hilog_native:libhilog", 81 "ipc:ipc_core", 82 "napi:ace_napi", 83 ] 84 subsystem_name = "theme" 85 part_name = "screenlock_mgr" 86 } 87} 88