We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/wjakob/nanobind
package("nanobind") set_kind("library", {headeronly = true}) set_homepage("https://github.com/wjakob/nanobind") set_description("nanobind: tiny and efficient C++/Python bindings") set_license("BSD-3-Clause") set_urls("https://github.com/wjakob/nanobind/archive/refs/tags/$(version).tar.gz", "https://github.com/wjakob/nanobind.git", {submodules = false}) add_versions("v2.1.0", "c37c53c60ada5fe1c956e24bd4b83af669a2309bf952bd251f36a7d2fa3bacf0") add_deps("cmake") add_deps("robin-map", "python 3.x") on_install(function (package) local configs = { "-DNB_CREATE_INSTALL_RULES=ON", "-DNB_USE_SUBMODULE_DEPS=OFF", "-DNB_TEST=OFF", "-DNB_INSTALL_DATADIR=" .. package:installdir(), } table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release")) import("package.tools.cmake").install(package, configs) os.mv(package:installdir("*.py"), package:installdir("python")) end) on_test(function (package) assert(package:check_cxxsnippets({test = [[ int add(int a, int b) { return a + b; } NB_MODULE(my_ext, m) { m.def("add", &add); } void test() {} ]]}, {configs = {languages = "c++17"}, includes = "nanobind/nanobind.h"})) end)
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
https://github.com/wjakob/nanobind
Describe the solution you'd like
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: