From 33a188b044bd7a1880cd64737bb69a14ab9fe077 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 21 Oct 2022 14:19:45 +0800 Subject: [PATCH] add pkgconf (#1560) * add pkgconf * disable harfbuzz * disable harfbuzz --- packages/f/freetype/xmake.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/f/freetype/xmake.lua b/packages/f/freetype/xmake.lua index 43059d740..8fa84eef5 100644 --- a/packages/f/freetype/xmake.lua +++ b/packages/f/freetype/xmake.lua @@ -30,8 +30,12 @@ package("freetype") add_configs("png", {description = "Support PNG compressed OpenType embedded bitmaps", default = false, type = "boolean"}) add_configs("woff2", {description = "Use Brotli library to support decompressing WOFF2 fonts", default = false, type = "boolean"}) add_configs("zlib", {description = "Support reading gzip-compressed font files", default = false, type = "boolean"}) + add_configs("harfbuzz", {description = "Support harfbuzz", default = false, type = "boolean"}) add_deps("cmake") + if is_plat("windows", "mingw") and is_subhost("windows") then + add_deps("pkgconf") + end add_includedirs("include/freetype2") @@ -46,6 +50,7 @@ package("freetype") add_dep("zlib") add_dep("png", "libpng") add_dep("woff2", "brotli") + add_dep("harfbuzz") end) on_install(function (package) @@ -74,6 +79,7 @@ package("freetype") 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 = "harfbuzz", pkg = "harfbuzz", cmakewith = "HARFBUZZ", cmakedisable = "HarfBuzz", cmakeinclude = "HarfBuzz_INCLUDE_DIR", cmakelib = "HarfBuzz_LIBRARY"}) import("package.tools.cmake").install(package, configs) end)