package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
940 B
20 lines
940 B
package("graphene") |
|
|
|
set_homepage("http://ebassi.github.io/graphene/") |
|
set_description("A thin layer of graphic data types") |
|
set_license("MIT") |
|
|
|
add_urls("https://github.com/ebassi/graphene/releases/download/$(version)/graphene-$(version).tar.xz") |
|
add_versions("1.10.6", "80ae57723e4608e6875626a88aaa6f56dd25df75024bd16e9d77e718c3560b25") |
|
|
|
add_deps("meson", "ninja") |
|
add_includedirs("include/graphene-1.0", "lib/graphene-1.0/include") |
|
on_install("windows", "macosx", "linux", function (package) |
|
local configs = {"-Dinstalled_tests=false", "-Dgobject_types=false", "-Dintrospection=disabled"} |
|
table.insert(configs, "-Ddefault_library=" .. (package:config("shared") and "shared" or "static")) |
|
import("package.tools.meson").install(package, configs) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:has_cfuncs("graphene_matrix_alloc", {includes = "graphene.h"})) |
|
end)
|
|
|