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.
30 lines
1.1 KiB
30 lines
1.1 KiB
package("watcher") |
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/e-dant/watcher") |
|
set_description("Filesystem watcher. Works anywhere. Simple, efficient and friendly.") |
|
set_license("MIT") |
|
|
|
set_urls("https://github.com/e-dant/watcher/archive/refs/tags/release/$(version).tar.gz", |
|
"https://github.com/e-dant/watcher.git") |
|
|
|
add_versions("0.9.5", "41b74d138eec106c35a99e7544def599453a8bf4cf4887ad627e1c9e3355287c") |
|
|
|
if is_plat("linux", "bsd") then |
|
add_syslinks("pthread") |
|
elseif is_plat("macosx") then |
|
add_frameworks("CoreFoundation", "CoreServices") |
|
end |
|
|
|
on_install("windows", "linux", "macosx", "mingw", "msys", "android", "cross", function (package) |
|
os.cp("include", package:installdir()) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include <wtr/watcher.hpp> |
|
void test() { |
|
auto cb = [](wtr::event const& ev) {}; |
|
auto watcher = wtr::watch(".", cb); |
|
} |
|
]]}, {configs = {languages = "c++17"}})) |
|
end)
|
|
|