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("//build/ohos.gni") 15 16if (!defined(global_parts_info) || 17 defined(global_parts_info.powermgr_display_manager)) { 18 has_display_manager_part = true 19 cflags_cc = [ "-DHAS_DISPLAY_MANAGER_PART" ] 20} else { 21 has_display_manager_part = false 22} 23 24ability_runtime_path = "//foundation/ability/ability_runtime" 25 26ability_runtime_inner_api_path = "${ability_runtime_path}/interfaces/inner_api" 27 28ability_runtime_services_path = "${ability_runtime_path}/services" 29 30powermgr_part_name = "power_manager" 31 32powermgr_root_path = "//base/powermgr/power_manager" 33 34powermgr_service_path = "${powermgr_root_path}/services" 35 36powermgr_service_zidl = "${powermgr_service_path}/zidl" 37 38powermgr_framework = "${powermgr_root_path}/frameworks" 39powermgr_framework_native = "${powermgr_framework}/native" 40 41powermgr_innerkits = "${powermgr_root_path}/interfaces/innerkits" 42 43powermgr_kits = "${powermgr_root_path}/interfaces/kits" 44 45powermgr_utils_path = "${powermgr_root_path}/utils" 46 47system_type = "default" 48