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("powermanage_impl") { 18cb69b360Sopenharmony_ci cflags = [ "-fPIC" ] 19cb69b360Sopenharmony_ci cflags_cc = cflags 20cb69b360Sopenharmony_ci 21cb69b360Sopenharmony_ci sources = [ "power_manage.c" ] 22cb69b360Sopenharmony_ci 23cb69b360Sopenharmony_ci include_dirs = [ 24cb69b360Sopenharmony_ci "${powermgr_frameworks_path}/include", 25cb69b360Sopenharmony_ci "${powermgr_frameworks_path}/include/${system_type}", 26cb69b360Sopenharmony_ci "${powermgr_innerkits_path}", 27cb69b360Sopenharmony_ci "${powermgr_kits_path}", 28cb69b360Sopenharmony_ci ] 29cb69b360Sopenharmony_ci 30cb69b360Sopenharmony_ci deps = [ "//foundation/systemabilitymgr/samgr_lite/samgr:samgr" ] 31cb69b360Sopenharmony_ci} 32cb69b360Sopenharmony_ci 33cb69b360Sopenharmony_cisource_set("screensaver_impl") { 34cb69b360Sopenharmony_ci cflags = [ "-fPIC" ] 35cb69b360Sopenharmony_ci cflags_cc = cflags 36cb69b360Sopenharmony_ci 37cb69b360Sopenharmony_ci sources = [ "power_screen_saver.c" ] 38cb69b360Sopenharmony_ci 39cb69b360Sopenharmony_ci include_dirs = [ 40cb69b360Sopenharmony_ci "${powermgr_frameworks_path}/include", 41cb69b360Sopenharmony_ci "${powermgr_frameworks_path}/include/${system_type}", 42cb69b360Sopenharmony_ci ] 43cb69b360Sopenharmony_ci 44cb69b360Sopenharmony_ci deps = [ "//foundation/systemabilitymgr/samgr_lite/samgr:samgr" ] 45cb69b360Sopenharmony_ci} 46