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# 14 15import("//build/lite/config/component/lite_component.gni") 16import("config.gni") 17 18powermgr_path = "//base/powermgr/powermgr_lite" 19 20powermgr_frameworks_path = "${powermgr_path}/frameworks" 21 22powermgr_interfaces_path = "${powermgr_path}/interfaces" 23 24powermgr_innerkits_path = "${powermgr_interfaces_path}/innerkits" 25 26powermgr_kits_path = "${powermgr_interfaces_path}/kits" 27 28powermgr_services_path = "${powermgr_path}/services" 29 30powermgr_utils_path = "${powermgr_path}/utils" 31 32declare_args() { 33 is_liteos_m = false 34 is_liteos_a = false 35} 36 37if (ohos_kernel_type == "liteos_m") { 38 is_liteos_m = true 39 lite_library_type = "static_library" 40 system_type = "mini" 41} else { 42 is_liteos_a = true 43 lite_library_type = "shared_library" 44 system_type = "small" 45} 46