build.gn自动添加 Makefile输出的src_files.txt文件
This commit is contained in:
@@ -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" ])
|
||||
|
Reference in New Issue
Block a user