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.

25 lines
840 B

6 years ago
package("nana")
set_homepage("http://nanapro.org")
set_description("A modern C++ GUI library.")
add_urls("https://github.com/cnjinhao/nana/archive/v$(version).tar.gz",
"https://github.com/cnjinhao/nana.git")
add_versions("1.6.2", "5f5cb791dff292e27bfa29d850b93f809a0d91d6044ea7e22ce7ae76a5d8b24e")
6 years ago
--[[ TODO
6 years ago
on_install(function (package)
import("package.tools.cmake").install(package)
6 years ago
end)]]
6 years ago
on_test(function (package)
6 years ago
assert(package:check_cxxsnippets({test = [[
6 years ago
using namespace nana;
form fm;
label lb(fm, rectangle(fm.size()));
lb.caption("Hello, World");
fm.show();
exec();
6 years ago
]]}, {configs = {languages = "c++11"}, includes = {"nana/gui/wvl.hpp", "nana/gui/widgets/label.hpp"}}))
6 years ago
end)