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.
24 lines
1021 B
24 lines
1021 B
package("cereal") |
|
|
|
set_homepage("https://uscilab.github.io/cereal/index.html") |
|
set_description("cereal is a header-only C++11 serialization library.") |
|
set_license("BSD-3-Clause") |
|
|
|
add_urls("https://github.com/USCiLab/cereal/archive/v$(version).tar.gz") |
|
add_versions("1.3.0", "329ea3e3130b026c03a4acc50e168e7daff4e6e661bc6a7dfec0d77b570851d5") |
|
add_versions("1.3.1", "65ea6ddda98f4274f5c10fb3e07b2269ccdd1e5cbb227be6a2fd78b8f382c976") |
|
add_versions("1.3.2", "16a7ad9b31ba5880dac55d62b5d6f243c3ebc8d46a3514149e56b5e7ea81f85f") |
|
|
|
on_install(function (package) |
|
os.cp("include", package:installdir()) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include <fstream> |
|
void test() { |
|
std::ofstream os("out.cereal", std::ios::binary); |
|
cereal::BinaryOutputArchive archive( os ); |
|
} |
|
]]}, {configs = {languages = "c++11"}, includes = "cereal/archives/binary.hpp"})) |
|
end)
|
|
|