fix pixman and cairo

pull/243/head
ruki 4 years ago
parent a248578106
commit 445a8dc022
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 4
      packages/c/cairo/xmake.lua
  2. 4
      packages/p/pixman/xmake.lua

@ -22,6 +22,8 @@ package("cairo")
end
on_install("windows", function (package)
import("core.tool.toolchain")
local runenvs = toolchain.load("msvc"):runenvs()
io.gsub("build/Makefile.win32.common", "%-MD", "-" .. package:config("vs_runtime"))
io.gsub("build/Makefile.win32.common", "mkdir %-p", "xmake l mkdir")
io.gsub("build/Makefile.win32.common", "dirname", "xmake l path.directory")
@ -39,7 +41,7 @@ package("cairo")
if zlib then
io.gsub("build/Makefile.win32.common", "%$%(ZLIB_CFLAGS%)", "-I\"" .. zlib:installdir("include") .. "\"")
end
os.vrunv("make", {"-f", "Makefile.win32", "CFG=" .. (package:debug() and "debug" or "release")})
os.vrunv("make", {"-f", "Makefile.win32", "CFG=" .. (package:debug() and "debug" or "release")}, {envs = runenvs})
os.cp("src/*.h", package:installdir("include/cairo"))
os.cp("src/**.lib", package:installdir("lib"))
end)

@ -14,8 +14,10 @@ package("pixman")
add_includedirs("include/pixman-1")
on_install("windows", function (package)
import("core.tool.toolchain")
local runenvs = toolchain.load("msvc"):runenvs()
io.gsub("Makefile.win32.common", "%-MD", "-" .. package:config("vs_runtime"))
os.vrun("make -f Makefile.win32 pixman MMX=off")
os.vrunv("make", {"-f", "Makefile.win32", "pixman", "MMX=off"}, {envs = runenvs})
os.cp("pixman/*.h", package:installdir("include/pixman-1"))
os.cp("pixman/release/*.lib", package:installdir("lib"))
end)

Loading…
Cancel
Save