1# Copyright (c) 2023 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 14template("interface") { 15 if (is_standard_system) { 16 import("//drivers/hdf_core/adapter/uhdf2/hdi.gni") 17 hdi(target_name) { 18 # the default value of system is "full" 19 # the default value generator mode is "ipc", the optional values are "ipc" or "passthrough" 20 # the default value of language is "cpp", the optional values are "c" or "cpp" 21 forward_variables_from(invoker, "*") 22 } 23 } else if (is_small_system) { 24 import("//drivers/hdf_core/adapter/uhdf/hdi_small.gni") 25 hdi_small(target_name) { 26 # the default value of system is "lite" 27 # the default value generator mode is "passthrough", the optional values is "passthrough" 28 # the default value of language is "c", the optional values are "c" or "cpp" 29 forward_variables_from(invoker, "*") 30 } 31 } else if (is_mini_system) { 32 import("//drivers/hdf_core/adapter/khdf/liteos_m/hdi_mini.gni") 33 hdi_mini(target_name) { 34 # the default value of system is "mini" 35 # the default value generator mode is "low", the optional values is "low" 36 # the default value of language is "c", the optional values are "c" 37 forward_variables_from(invoker, 38 "*", 39 [ 40 "subsystem_name", 41 "part_name", 42 ]) 43 } 44 } 45} 46