1cb69b360Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
2cb69b360Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3cb69b360Sopenharmony_ci# you may not use this file except in compliance with the License.
4cb69b360Sopenharmony_ci# You may obtain a copy of the License at
5cb69b360Sopenharmony_ci#
6cb69b360Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7cb69b360Sopenharmony_ci#
8cb69b360Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9cb69b360Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10cb69b360Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11cb69b360Sopenharmony_ci# See the License for the specific language governing permissions and
12cb69b360Sopenharmony_ci# limitations under the License.
13cb69b360Sopenharmony_ci
14cb69b360Sopenharmony_ciimport("//base/powermgr/powermgr_lite/powermgr.gni")
15cb69b360Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni")
16cb69b360Sopenharmony_ci
17cb69b360Sopenharmony_cisource_set("screensaver_featrue_impl") {
18cb69b360Sopenharmony_ci  cflags = [ "-fPIC" ]
19cb69b360Sopenharmony_ci  cflags_cc = cflags
20cb69b360Sopenharmony_ci
21cb69b360Sopenharmony_ci  defines = [
22cb69b360Sopenharmony_ci    "ENABLE_WINDOW=1",
23cb69b360Sopenharmony_ci    "ABILITY_WINDOW_SUPPORT",
24cb69b360Sopenharmony_ci    "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER",
25cb69b360Sopenharmony_ci  ]
26cb69b360Sopenharmony_ci
27cb69b360Sopenharmony_ci  sources = [
28cb69b360Sopenharmony_ci    "screen_saver_feature_impl.c",
29cb69b360Sopenharmony_ci    "screen_saver_handler.cpp",
30cb69b360Sopenharmony_ci    "screen_saver_mgr.cpp",
31cb69b360Sopenharmony_ci  ]
32cb69b360Sopenharmony_ci
33cb69b360Sopenharmony_ci  include_dirs = [
34cb69b360Sopenharmony_ci    "${powermgr_kits_path}",
35cb69b360Sopenharmony_ci    "${powermgr_frameworks_path}/include",
36cb69b360Sopenharmony_ci    "${powermgr_frameworks_path}/include/${system_type}",
37cb69b360Sopenharmony_ci    "${powermgr_services_path}/include",
38cb69b360Sopenharmony_ci    "${powermgr_services_path}/include/${system_type}",
39cb69b360Sopenharmony_ci    "${aafwk_lite_path}/interfaces/kits/ability_lite",
40cb69b360Sopenharmony_ci    "${aafwk_lite_path}/interfaces/inner_api/abilitymgr_lite",
41cb69b360Sopenharmony_ci    "${aafwk_lite_path}/interfaces/kits/want_lite",
42cb69b360Sopenharmony_ci    "${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
43cb69b360Sopenharmony_ci  ]
44cb69b360Sopenharmony_ci
45cb69b360Sopenharmony_ci  deps = [
46cb69b360Sopenharmony_ci    "${aafwk_lite_path}/frameworks/abilitymgr_lite:abilitymanager",
47cb69b360Sopenharmony_ci    "${powermgr_utils_path}:powermgr_utils",
48cb69b360Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
49cb69b360Sopenharmony_ci    "//foundation/window/window_manager_lite:window_manager_lite",
50cb69b360Sopenharmony_ci  ]
51cb69b360Sopenharmony_ci}
52