build.gn自动添加 Makefile输出的src_files.txt文件

This commit is contained in:
2025-01-17 19:35:35 +08:00
parent f790b7f9d4
commit e202cbfdbe
18 changed files with 90 additions and 770 deletions

View File

@@ -59,6 +59,13 @@ template("kernel_module") {
public_configs += [ ":public" ]
}
}
# 自动把src_files.txt 中的文件添加进来
src=exec_script("//build/python_scripts/read_files.py",[rebase_path("."),"src_files.txt","src"],"string")
source_list=string_split(src)
sources+=source_list
inc=exec_script("//build/python_scripts/read_files.py",[rebase_path("."),"src_files.txt","inc"],"string")
inc_list=string_split(inc)
include_dirs+=inc_list
}
}
not_needed([ "auto_config" ])