Skip to content
Discussion options

You must be logged in to vote

直接代码里走 __FILE__ ,解析提取下名字不就完事了,干嘛这么麻烦,都回显 logs 了,也不差这点性能。

target("")
    for _, file in ipairs(os.files("src/*.c")) do
        add_files(file, {defines = "FILENAME=" .. path.filename(file)})
    end

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shenxing1206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants