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.
26 lines
864 B
26 lines
864 B
package("dipp") |
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/01Pollux/dipp") |
|
set_description("C++ Dependency injection inspired inspired by .NET's Microsoft.Extensions.DependencyInjection") |
|
set_license("MIT") |
|
|
|
add_urls("https://github.com/01Pollux/dipp.git") |
|
|
|
add_versions("2024.01.12", "e299326ea441f9df8dc8bcdd79bf3e49acda55fd") |
|
|
|
on_install(function (package) |
|
local configs = { |
|
test = false, |
|
benchmark = false |
|
} |
|
import("package.tools.xmake").install(package, configs) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include <dipp/dipp.hpp> |
|
void test() { |
|
dipp::default_service_provider services({}); |
|
} |
|
]]}, {configs = {languages = "c++20"}})) |
|
end)
|
|
|