| 12345678910111213141516171819202122232425262728293031 |
- package("plotlypp")
- set_kind("library", {headeronly = true})
- set_homepage("https://github.com/jimmyorourke/plotlypp")
- set_description("Plotly for C++. A C++ interface to the Plotly.js figure spec, for creating interactive data visualizations.")
- set_license("MIT")
- add_urls("https://github.com/jimmyorourke/plotlypp.git")
- add_versions("2026.01.26", "8d9b250cbe1e2415d011af90e00f495def49712d")
- add_deps("cmake")
- add_deps("nlohmann_json", {configs = {cmake = true}})
- on_check("android", function (package)
- local ndk = package:toolchain("ndk"):config("ndkver")
- assert(ndk and tonumber(ndk) > 22, "package(plotlypp >=3.0.0) require ndk version > 22")
- end)
- on_install("!wasm and !bsd and !iphoneos", function (package)
- import("package.tools.cmake").install(package, {
- "-DPLOTLYPP_BUILD_EXAMPLES=OFF",
- })
- end)
- on_test(function (package)
- assert(package:check_cxxsnippets({test = [[
- void test() {
- auto figure = plotlypp::Figure();
- }
- ]]}, {configs = {languages = "c++20"}, includes = "plotlypp/figure.hpp"}))
- end)
|