範本變數資訊

回報問題 查看來源 Nightly

封裝範本變數,也就是可在 BUILD 檔案中用字串 (例如 $(VARIABLE)) 參照的變數,以及由 ctx.expand_make_variables 所展開,以及在內建規則的特定屬性中以隱含方式展開的變數。

如要建立 TemplateVariableInfo,可以透過使用字串對字串字典做為引數,建立指定提供的變數。

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

成員

variables

dict TemplateVariableInfo.variables

以字串鍵和字串值,以字典形式傳回這個目標定義的 make 變數