improve skia

pull/18/head
ruki 6 years ago
parent c42ad3213b
commit 63f9267672
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 10
      packages/s/skia/xmake.lua

@ -37,10 +37,16 @@ package("skia")
skia_use_system_libpng = false,
skia_use_system_libwebp = false,
skia_use_system_zlib = false}
args.cc = package:build_getenv("cc")
args.cxx = package:build_getenv("cxx")
local argstr = ""
for k, v in pairs(args) do
argstr = argstr .. ' ' .. k .. '=' .. tostring(v)
end
if type(v) == "string" then
argstr = argstr .. ' ' .. k .. '=\"' .. v .. "\""
else
argstr = argstr .. ' ' .. k .. '=' .. tostring(v)
end
end
os.vrun("python2 tools/git-sync-deps")
os.vrun("bin/gn gen build --args='%s'", argstr)
os.vrun("ninja -C build")

Loading…
Cancel
Save