add package nowide (#1708)
* add package nowide
* fix errors in test snippet
* checks type instead of snippet
avoid external link errors
* Revert "checks type instead of snippet"
This reverts commit 0da03e02fc
.
* fix link issue
* Update xmake.lua
* add mingw option
* simplify grammer
Co-authored-by: ruki <waruqi@gmail.com>
pull/1710/head
parent
6e01ebc372
commit
809ddbbdf1
1 changed files with 29 additions and 0 deletions
@ -0,0 +1,29 @@ |
||||
package("nowide_standalone") |
||||
set_homepage("https://github.com/boostorg/nowide/tree/standalone") |
||||
set_description("C++ implementation of the Python Numpy library") |
||||
set_license("Boost Software License, Version 1.0") |
||||
|
||||
add_urls("https://github.com/boostorg/nowide/releases/download/v$(version)/nowide_standalone_v$(version).tar.gz", |
||||
"https://github.com/boostorg/nowide/tree/standalone") |
||||
add_versions("11.2.0", "1869d176a8af389e4f7416f42bdd15d6a5db3c6e4ae77269ecb071a232304e1d") |
||||
|
||||
add_deps("cmake") |
||||
|
||||
if is_plat("windows", "mingw") then |
||||
add_syslinks("shell32") |
||||
end |
||||
|
||||
on_install("windows", "macosx", "linux", "mingw", function (package) |
||||
import("package.tools.cmake").install(package) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:check_cxxsnippets({test = [[ |
||||
#include <nowide/args.hpp> |
||||
int test(int argc, char **argv) |
||||
{ |
||||
nowide::args _(argc, argv); // Must use an instance! |
||||
return argc; |
||||
} |
||||
]]})) |
||||
end) |
Loading…
Reference in new issue