12fe4e5f8Sopenharmony_ci# Copyright (C) 2021 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved. 22fe4e5f8Sopenharmony_ci 32fe4e5f8Sopenharmony_cicmd = "if [ -f $product_path/hdf_config/BUILD.gn ]; then echo true; else echo false; fi" 42fe4e5f8Sopenharmony_ciHAVE_PRODUCT_CONFIG = 52fe4e5f8Sopenharmony_ci exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value") 62fe4e5f8Sopenharmony_ci 72fe4e5f8Sopenharmony_cigroup("liteos_a") { 82fe4e5f8Sopenharmony_ci deps = [ 92fe4e5f8Sopenharmony_ci "board", 102fe4e5f8Sopenharmony_ci "drivers", 112fe4e5f8Sopenharmony_ci "//device/soc/hisilicon/hi3516dv300/sdk_liteos/mpp/module_init", 122fe4e5f8Sopenharmony_ci ] 132fe4e5f8Sopenharmony_ci if (HAVE_PRODUCT_CONFIG) { 142fe4e5f8Sopenharmony_ci deps += [ "$product_path/hdf_config" ] 152fe4e5f8Sopenharmony_ci } else { 162fe4e5f8Sopenharmony_ci deps += [ "hdf_config" ] 172fe4e5f8Sopenharmony_ci } 182fe4e5f8Sopenharmony_ci} 192fe4e5f8Sopenharmony_ci 202fe4e5f8Sopenharmony_ciconfig("public") { 212fe4e5f8Sopenharmony_ci configs = [ 222fe4e5f8Sopenharmony_ci "board:public", 232fe4e5f8Sopenharmony_ci "drivers:public", 242fe4e5f8Sopenharmony_ci ] 252fe4e5f8Sopenharmony_ci} 26