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.
29 lines
1.0 KiB
29 lines
1.0 KiB
12 months ago
|
package("smoothcpp")
|
||
|
|
||
|
set_homepage("https://github.com/heheda123123/smoothcpp")
|
||
|
set_description("Easy to use first cross platform cpp library. Intended as a supplement to the c++ standard library.")
|
||
|
set_license("MIT")
|
||
|
|
||
|
set_urls("https://github.com/heheda123123/smoothcpp.git")
|
||
|
add_versions("2023.12.20", "1ac3b09aaf2c4529d5f2bc1f4a6689c77228f02a")
|
||
|
|
||
|
on_install("windows", "mingw", "linux", "macosx", function (package)
|
||
|
local configs = {}
|
||
|
if package:config("shared") then
|
||
|
configs.kind = "shared"
|
||
|
end
|
||
|
import("package.tools.xmake").install(package, configs)
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:check_cxxsnippets({test = [[
|
||
|
#include "scpp/string/string.h"
|
||
|
#include <iostream>
|
||
|
|
||
|
void test() {
|
||
|
bool a = (scpp::to_lower("aAaAAbb") == "aaaaabb");
|
||
|
std::cout << a << std::endl;
|
||
|
}
|
||
|
]]}, {configs = {languages = "c++17"}}))
|
||
|
end)
|