範本變數資訊

回報問題 查看原始碼 Nightly 8.1 · 8.0 · 7.5 · 7.4 · 7.3 · 7.2

封裝範本變數,也就是可在 BUILD 檔案中由 $(VARIABLE) 等字串參照的變數,並由 ctx.expand_make_variables 和內建規則的特定屬性隱含展開。

您可以呼叫同名建構函式來建立 TemplateVariableInfo,並使用字串對字串字典做為指定提供的變數的引數。

範例:platform_common.TemplateVariableInfo({'FOO': 'bar'})

成員

variables

dict TemplateVariableInfo.variables

傳回此目標定義的 make 變數,做為字串鍵和字串值的字典