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.
35 lines
1.2 KiB
35 lines
1.2 KiB
package("frugally-deep") |
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/Dobiasd/frugally-deep") |
|
set_description("Header-only library for using Keras (TensorFlow) models in C++.") |
|
set_license("MIT") |
|
|
|
add_urls("https://github.com/Dobiasd/frugally-deep/archive/refs/tags/$(version).tar.gz", |
|
"https://github.com/Dobiasd/frugally-deep.git") |
|
|
|
add_versions("v0.15.29", "032cd525d4a7b9b3ebe28fd5e3984ac3e569da496f65d52c81030aabd9d0c52e") |
|
|
|
if is_plat("linux", "bsd") then |
|
add_syslinks("pthread") |
|
end |
|
|
|
add_deps("cmake") |
|
add_deps("functionalplus", "eigen") |
|
add_deps("nlohmann_json", {configs = {cmake = true}}) |
|
|
|
on_install("windows", "macosx", "linux", "mingw", "cross", function (package) |
|
import("package.tools.cmake").install(package) |
|
end) |
|
|
|
on_test(function (package) |
|
local cxflags |
|
if package:is_plat("mingw") then |
|
cxflags = "-Wa,-mbig-obj" |
|
end |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include <fdeep/fdeep.hpp> |
|
void test() { |
|
const auto model = fdeep::load_model("fdeep_model.json"); |
|
} |
|
]]}, {configs = {languages = "c++14", cxflags = cxflags}})) |
|
end)
|
|
|