From b5ed77a7126bf8e708387b8a0555fddae9c22143 Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Sun, 21 Mar 2021 12:32:21 +0800 Subject: improve package.tools.gn --- xmake/modules/package/tools/gn.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmake/modules/package/tools/gn.lua b/xmake/modules/package/tools/gn.lua index 3f0cbe1a9..2c5341476 100644 --- a/xmake/modules/package/tools/gn.lua +++ b/xmake/modules/package/tools/gn.lua @@ -61,7 +61,9 @@ function generate(package, configs, opt) table.insert(argv, _get_buildir(opt)) for name, value in pairs(_get_configs(package, configs, opt)) do if type(value) == "string" then - table.insert(args, name .. '=\"' .. value .. "\"") + table.insert(args, name .. "=\"" .. value .. "\"") + elseif type(value) == "table" then + table.insert(args, name .. "=[\"" .. table.concat(value, "\",\"") .. "\"]") else table.insert(args, name .. "=" .. tostring(value)) end -- cgit v1.3.1