• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020 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/lite/config/hap_pack.gni")
15
16shared_library("screensaver") {
17  sources = [
18    "screensaver/src/main/cpp/screensaver_ability.cpp",
19    "screensaver/src/main/cpp/screensaver_ability_slice.cpp",
20  ]
21
22  deps = [
23    "${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite",
24    "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle",
25    "//foundation/arkui/ui_lite:ui_lite",
26    "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
27    "//foundation/distributeddatamgr/kv_store/interfaces/inner_api/kv_store:kv_store",
28    "//foundation/graphic/graphic_utils_lite:utils_lite",
29    "//foundation/graphic/surface_lite",
30    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
31  ]
32
33  include_dirs = [
34    "screensaver/src/main/cpp",
35    "${aafwk_lite_path}/interfaces/kits/ability_lite",
36    "${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
37    "${aafwk_lite_path}/interfaces/kits/want_lite",
38    "//base/startup/syspara_lite/interfaces/kits",
39  ]
40
41  defines = [
42    "ENABLE_WINDOW=1",
43    "ABILITY_WINDOW_SUPPORT",
44    "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER",
45  ]
46}
47
48hap_pack("screensaver_hap") {
49  deps = [ ":screensaver" ]
50  mode = "hap"
51  json_path = "screensaver/src/main/config.json"
52  ability_so_path = "$root_out_dir/libscreensaver.so"
53  force = "true"
54  cert_profile = "cert/com.huawei.screensaver_AppProvision_release.p7b"
55  resources_path = "screensaver/src/main/resources"
56  hap_name = "screensaver"
57  privatekey = "HOS Application Provision Release"
58}
59