1# Copyright (c) 2020 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/lite/config/component/lite_component.gni") 15 16lite_component("utils_os_dump") { 17 features = [] 18 if (ohos_kernel_type == "liteos_a") { 19 features += [ ":os_dump" ] 20 } 21 if (ohos_kernel_type == "liteos_m") { 22 features += [ ":dump_static" ] 23 } 24} 25 26if (ohos_kernel_type == "liteos_a") { 27 executable("os_dump") { 28 sources = [ 29 "dump_syspara.c", 30 "os_dump.c", 31 ] 32 include_dirs = [ 33 "./", 34 "//base/startup/syspara_lite/interfaces/kits", 35 ] 36 deps = [ "//base/startup/syspara_lite/frameworks/parameter/src:sysparam" ] 37 } 38} 39 40if (ohos_kernel_type == "liteos_m") { 41 static_library("dump_static") { 42 sources = [ "dump_syspara.c" ] 43 include_dirs = [ 44 "//base/startup/syspara_lite/interfaces/kits", 45 "//base/iot_hardware/interfaces/kits/wifiiot_lite", 46 ] 47 deps = [ "//base/startup/syspara_lite/frameworks/parameter/src:sysparam" ] 48 } 49} 50