199552fe9Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
299552fe9Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
399552fe9Sopenharmony_ci# you may not use this file except in compliance with the License.
499552fe9Sopenharmony_ci# You may obtain a copy of the License at
599552fe9Sopenharmony_ci#
699552fe9Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
799552fe9Sopenharmony_ci#
899552fe9Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
999552fe9Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1099552fe9Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1199552fe9Sopenharmony_ci# See the License for the specific language governing permissions and
1299552fe9Sopenharmony_ci# limitations under the License.
1399552fe9Sopenharmony_ci
1499552fe9Sopenharmony_ciimport("//build/ohos.gni")
1599552fe9Sopenharmony_ciimport("//foundation/resourceschedule/device_standby/standby_service.gni")
1699552fe9Sopenharmony_ci
1799552fe9Sopenharmony_cicflags = []
1899552fe9Sopenharmony_ci
1999552fe9Sopenharmony_ciconfig("standby_napi_public_config") {
2099552fe9Sopenharmony_ci  include_dirs = [ "napi/include" ]
2199552fe9Sopenharmony_ci}
2299552fe9Sopenharmony_ci
2399552fe9Sopenharmony_ciohos_shared_library("devicestandby") {
2499552fe9Sopenharmony_ci  branch_protector_ret = "pac_ret"
2599552fe9Sopenharmony_ci  sanitize = {
2699552fe9Sopenharmony_ci    cfi = true
2799552fe9Sopenharmony_ci    cfi_cross_dso = true
2899552fe9Sopenharmony_ci    debug = false
2999552fe9Sopenharmony_ci  }
3099552fe9Sopenharmony_ci  sources = [
3199552fe9Sopenharmony_ci    "napi/src/common.cpp",
3299552fe9Sopenharmony_ci    "napi/src/init.cpp",
3399552fe9Sopenharmony_ci    "napi/src/standby_napi_module.cpp",
3499552fe9Sopenharmony_ci  ]
3599552fe9Sopenharmony_ci
3699552fe9Sopenharmony_ci  public_configs = [ ":standby_napi_public_config" ]
3799552fe9Sopenharmony_ci
3899552fe9Sopenharmony_ci  deps = [
3999552fe9Sopenharmony_ci    "${standby_interfaces_path}/innerkits:standby_innerkits",
4099552fe9Sopenharmony_ci    "${standby_service_frameworks_path}:standby_fwk",
4199552fe9Sopenharmony_ci  ]
4299552fe9Sopenharmony_ci
4399552fe9Sopenharmony_ci  external_deps = [
4499552fe9Sopenharmony_ci    "ability_runtime:ability_context_native",
4599552fe9Sopenharmony_ci    "ability_runtime:abilitykit_native",
4699552fe9Sopenharmony_ci    "ability_runtime:napi_base_context",
4799552fe9Sopenharmony_ci    "ability_runtime:wantagent_innerkits",
4899552fe9Sopenharmony_ci    "bundle_framework:appexecfwk_base",
4999552fe9Sopenharmony_ci    "c_utils:utils",
5099552fe9Sopenharmony_ci    "hilog:libhilog",
5199552fe9Sopenharmony_ci    "ipc:ipc_single",
5299552fe9Sopenharmony_ci    "napi:ace_napi",
5399552fe9Sopenharmony_ci    "samgr:samgr_proxy",
5499552fe9Sopenharmony_ci  ]
5599552fe9Sopenharmony_ci  relative_install_dir = "module/resourceschedule"
5699552fe9Sopenharmony_ci  subsystem_name = "resourceschedule"
5799552fe9Sopenharmony_ci  part_name = "${standby_service_part_name}"
5899552fe9Sopenharmony_ci}
59