Fix freetype for MinGW, again (#641)

* Fix freetype for MinGW, again

* Update xmake.lua
pull/642/head
Jérôme Leclercq 3 years ago committed by GitHub
parent 0a74fda5b8
commit 4ae57788a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      packages/f/freetype/xmake.lua

@ -45,9 +45,9 @@ package("freetype")
end
add_dep("bzip2")
add_dep("zlib")
add_dep("png", "libpng")
add_dep("woff2", "brotli")
add_dep("zlib")
end)
on_install("windows", "mingw", function (package)
@ -72,10 +72,10 @@ package("freetype")
table.insert(configs, "-DCMAKE_DISABLE_FIND_PACKAGE_" .. (opt.cmakedisable or opt.cmakewith) .. "=ON")
end
end
add_dep({conf="bzip2", cmakewith="BZIP2", cmakedisable="BZip2"})
add_dep({conf="png", pkg="libpng", cmakewith="PNG", cmakeinclude="PNG_PNG_INCLUDE_DIR", cmakelib="PNG_LIBRARY"})
add_dep({conf="woff2", pkg="brotli", cmakewith="BROTLI", cmakedisable="BrotliDec", cmakeinclude="BROTLIDEC_INCLUDE_DIRS", cmakelib="BROTLIDEC_LIBRARIES"})
add_dep({conf="zlib", cmakewith="ZLIB", cmakeinclude="ZLIB_INCLUDE_DIR", cmakelib="ZLIB_LIBRARY"})
add_dep({conf = "bzip2", cmakewith = "BZIP2", cmakedisable = "BZip2", cmakeinclude = "BZIP2_INCLUDE_DIR"})
add_dep({conf = "png", pkg = "libpng", cmakewith = "PNG", cmakeinclude = "PNG_PNG_INCLUDE_DIR", cmakelib = "PNG_LIBRARY"})
add_dep({conf = "woff2", pkg = "brotli", cmakewith = "BROTLI", cmakedisable = "BrotliDec", cmakeinclude = "BROTLIDEC_INCLUDE_DIRS", cmakelib = "BROTLIDEC_LIBRARIES"})
add_dep({conf = "zlib", cmakewith = "ZLIB", cmakeinclude = "ZLIB_INCLUDE_DIR", cmakelib = "ZLIB_LIBRARY"})
import("package.tools.cmake").install(package, configs)
end)

Loading…
Cancel
Save