use pixman in xmake-repo

pull/1846/head
冰雪殇璃陌梦 2 years ago
parent 39a8874ec7
commit 442563f8e8
No known key found for this signature in database
GPG Key ID: EDAD0ED1B9B2559D
  1. 2
      packages/p/pixman/xmake.lua
  2. 5
      packages/r/rlottie/xmake.lua

@ -23,7 +23,7 @@ package("pixman")
add_includedirs("include", "include/pixman-1")
on_install("macosx", "linux", "windows|x64", "windows|x86", "wasm", function (package)
on_install("windows", "linux", "macosx", "android", "iphoneos", "watchos", "wasm", function (package)
local configs = {
"-Dopenmp=disabled",
"-Dlibpng=disabled",

@ -21,16 +21,13 @@ package("rlottie")
add_deps("cmake")
add_deps("freetype", {configs = {zlib = false}})
add_deps("rapidjson ~1.1.0", "stb 2019.02.07")
add_deps("pixman ~0.42.0", "rapidjson ~1.1.0", "stb 2019.02.07")
on_install("windows", "linux", "macosx", "android", "iphoneos", "watchos", "wasm", function (package)
local configs = {}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DLIB_INSTALL_DIR=" .. package:installdir("lib"))
if package:is_arch("arm.*") then
table.insert(configs, "-DARCH=arm")
end
for name, enabled in pairs(package:configs()) do
if not package:extraconf("configs", name, "builtin") then
table.insert(configs, "-DLOTTIE_" .. name:upper() .. "=" .. (enabled and "ON" or "OFF"))

Loading…
Cancel
Save