範本變數資訊
回報問題open_in_new
查看原始碼open_in_new
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 變數,做為字串鍵和字串值的字典
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-13 (世界標準時間)。
[null,null,["上次更新時間:2025-02-13 (世界標準時間)。"],[],[]]