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.
22 lines
1.1 KiB
22 lines
1.1 KiB
3 years ago
|
package("console-bridge")
|
||
|
|
||
|
set_homepage("https://github.com/ros/console_bridge")
|
||
|
set_description("A ROS-independent package for logging that seamlessly pipes into rosconsole/rosout for ROS-dependent packages.")
|
||
|
set_license("BSD-3-Clause")
|
||
|
|
||
|
add_urls("https://github.com/ros/console_bridge/archive/refs/tags/$(version).tar.gz",
|
||
|
"https://github.com/ros/console_bridge.git")
|
||
|
add_versions("1.0.1", "2ff175a9bb2b1849f12a6bf972ce7e4313d543a2bbc83b60fdae7db6e0ba353f")
|
||
|
|
||
|
add_deps("cmake")
|
||
|
on_install("windows", "macosx", "linux", function (package)
|
||
|
local configs = {"-DCMAKE_INSTALL_LIBDIR=lib", "-DBUILD_TESTING=OFF"}
|
||
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
|
||
|
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
|
||
|
import("package.tools.cmake").install(package, configs)
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:has_cxxtypes("console_bridge::LogLevel", {includes = "console_bridge/console.h"}))
|
||
|
end)
|