Skip to content
Discussion options

You must be logged in to vote

这个改不了,这个是 set_configvar("", "$(projectdir)") 等内置变量转义,不属于 configfiles,是所有 set_/add_ 接口都会处理

你只能自己取出来,自己替换下

        local var = io.readfile("/tmp/a")
        var = var:replace("$(", "%$(", {plain = true})
        target:set("configvar", "TEST", var)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@guyutongxue
Comment options

Comment options

You must be logged in to vote
1 reply
@guyutongxue
Comment options

Answer selected by guyutongxue
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