ruki 6 years ago
parent
commit
8dec78cd1f
1 changed files with 7 additions and 1 deletions
  1. 7 1
      packages/c/cairo/xmake.lua

+ 7 - 1
packages/c/cairo/xmake.lua

@@ -26,16 +26,22 @@ package("cairo")
         io.gsub("build/Makefile.win32.common", "dirname", "xmake l path.directory")
         io.gsub("build/Makefile.win32.common", "dirname", "xmake l path.directory")
         local pacman = package:dep("pacman")
         local pacman = package:dep("pacman")
         if pacman then
         if pacman then
-            io.gsub("build/Makefile.win32.common", "%$%(PIXMAN_CFLAGS%)", "-I " .. os.args(pacman:installdir("include/pixman-1")))
+            print("pacman include", pacman:installdir("include/pixman-1"))
+            local a, b = io.gsub("build/Makefile.win32.common", "%$%(PIXMAN_CFLAGS%)", "-I " .. os.args(pacman:installdir("include/pixman-1")))
+            print("a", a)
+            print("b", b)
         end
         end
         local libpng = package:dep("libpng")
         local libpng = package:dep("libpng")
         if libpng then
         if libpng then
+            print("libpng")
             io.gsub("build/Makefile.win32.common", "%$%(LIBPNG_CFLAGS%)", "-I " .. os.args(libpng:installdir("include")))
             io.gsub("build/Makefile.win32.common", "%$%(LIBPNG_CFLAGS%)", "-I " .. os.args(libpng:installdir("include")))
         end
         end
         local zlib = package:dep("zlib")
         local zlib = package:dep("zlib")
         if zlib then
         if zlib then
+            print("zlib")
             io.gsub("build/Makefile.win32.common", "%$%(ZLIB_CFLAGS%)", "-I " .. os.args(zlib:installdir("include")))
             io.gsub("build/Makefile.win32.common", "%$%(ZLIB_CFLAGS%)", "-I " .. os.args(zlib:installdir("include")))
         end
         end
+        io.cat("build/Makefile.win32.common")
         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")})
     end)
     end)