• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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("//base/powermgr/powermgr_lite/powermgr.gni")
15import("//build/lite/config/component/lite_component.gni")
16
17source_set("screensaver_featrue_impl") {
18  cflags = [ "-fPIC" ]
19  cflags_cc = cflags
20
21  defines = [
22    "ENABLE_WINDOW=1",
23    "ABILITY_WINDOW_SUPPORT",
24    "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER",
25  ]
26
27  sources = [
28    "screen_saver_feature_impl.c",
29    "screen_saver_handler.cpp",
30    "screen_saver_mgr.cpp",
31  ]
32
33  include_dirs = [
34    "${powermgr_kits_path}",
35    "${powermgr_frameworks_path}/include",
36    "${powermgr_frameworks_path}/include/${system_type}",
37    "${powermgr_services_path}/include",
38    "${powermgr_services_path}/include/${system_type}",
39    "${aafwk_lite_path}/interfaces/kits/ability_lite",
40    "${aafwk_lite_path}/interfaces/inner_api/abilitymgr_lite",
41    "${aafwk_lite_path}/interfaces/kits/want_lite",
42    "${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
43  ]
44
45  deps = [
46    "${aafwk_lite_path}/frameworks/abilitymgr_lite:abilitymanager",
47    "${powermgr_utils_path}:powermgr_utils",
48    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
49    "//foundation/window/window_manager_lite:window_manager_lite",
50  ]
51}
52