parent
592d1f0782
commit
83687807b0
1 changed files with 30 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||||||
|
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) |
Loading…
Reference in new issue