121efcb82Sopenharmony_ci# Copyright (c) 2020 Huawei Device Co., Ltd.
221efcb82Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
321efcb82Sopenharmony_ci# you may not use this file except in compliance with the License.
421efcb82Sopenharmony_ci# You may obtain a copy of the License at
521efcb82Sopenharmony_ci#
621efcb82Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
721efcb82Sopenharmony_ci#
821efcb82Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
921efcb82Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1021efcb82Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1121efcb82Sopenharmony_ci# See the License for the specific language governing permissions and
1221efcb82Sopenharmony_ci# limitations under the License.
1321efcb82Sopenharmony_ci
1421efcb82Sopenharmony_ciimport("//build/lite/config/hap_pack.gni")
1521efcb82Sopenharmony_ci
1621efcb82Sopenharmony_cishared_library("screensaver") {
1721efcb82Sopenharmony_ci  sources = [
1821efcb82Sopenharmony_ci    "screensaver/src/main/cpp/screensaver_ability.cpp",
1921efcb82Sopenharmony_ci    "screensaver/src/main/cpp/screensaver_ability_slice.cpp",
2021efcb82Sopenharmony_ci  ]
2121efcb82Sopenharmony_ci
2221efcb82Sopenharmony_ci  deps = [
2321efcb82Sopenharmony_ci    "${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite",
2421efcb82Sopenharmony_ci    "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle",
2521efcb82Sopenharmony_ci    "//foundation/arkui/ui_lite:ui_lite",
2621efcb82Sopenharmony_ci    "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
2721efcb82Sopenharmony_ci    "//foundation/distributeddatamgr/kv_store/interfaces/inner_api/kv_store:kv_store",
2821efcb82Sopenharmony_ci    "//foundation/graphic/graphic_utils_lite:utils_lite",
2921efcb82Sopenharmony_ci    "//foundation/graphic/surface_lite",
3021efcb82Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
3121efcb82Sopenharmony_ci  ]
3221efcb82Sopenharmony_ci
3321efcb82Sopenharmony_ci  include_dirs = [
3421efcb82Sopenharmony_ci    "screensaver/src/main/cpp",
3521efcb82Sopenharmony_ci    "${aafwk_lite_path}/interfaces/kits/ability_lite",
3621efcb82Sopenharmony_ci    "${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
3721efcb82Sopenharmony_ci    "${aafwk_lite_path}/interfaces/kits/want_lite",
3821efcb82Sopenharmony_ci    "//base/startup/syspara_lite/interfaces/kits",
3921efcb82Sopenharmony_ci  ]
4021efcb82Sopenharmony_ci
4121efcb82Sopenharmony_ci  defines = [
4221efcb82Sopenharmony_ci    "ENABLE_WINDOW=1",
4321efcb82Sopenharmony_ci    "ABILITY_WINDOW_SUPPORT",
4421efcb82Sopenharmony_ci    "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER",
4521efcb82Sopenharmony_ci  ]
4621efcb82Sopenharmony_ci}
4721efcb82Sopenharmony_ci
4821efcb82Sopenharmony_cihap_pack("screensaver_hap") {
4921efcb82Sopenharmony_ci  deps = [ ":screensaver" ]
5021efcb82Sopenharmony_ci  mode = "hap"
5121efcb82Sopenharmony_ci  json_path = "screensaver/src/main/config.json"
5221efcb82Sopenharmony_ci  ability_so_path = "$root_out_dir/libscreensaver.so"
5321efcb82Sopenharmony_ci  force = "true"
5421efcb82Sopenharmony_ci  cert_profile = "cert/com.huawei.screensaver_AppProvision_release.p7b"
5521efcb82Sopenharmony_ci  resources_path = "screensaver/src/main/resources"
5621efcb82Sopenharmony_ci  hap_name = "screensaver"
5721efcb82Sopenharmony_ci  privatekey = "HOS Application Provision Release"
5821efcb82Sopenharmony_ci}
59