Skip to content

Commit 3be2fb5

Browse files
committed
Updated mruby to 3.4
1 parent 69aa175 commit 3be2fb5

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

‎agent_lib/CMakeLists.txt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,13 @@ target_clangtidy_setup(agent_lib)
465465

466466
include(../cmake/document.cmake)
467467
if (AGENT_WITH_DOCS AND DOXYGEN_FOUND)
468+
message(WARNING ": Setting up to create documentation")
468469
file(GLOB _tests ${CMAKE_CURRENT_SOURCE_DIR}/../test_package/*.hpp ${CMAKE_CURRENT_SOURCE_DIR}/../test_package/*.cpp)
469470
doxygen_add_docs(docs README.md ${AGENT_SOURCES} ${_tests}
470471
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.." )
471-
install(DIRECTORY "${PROJECT_BINARY_DIR}/Documentation/" DESTINATION "Documentation")
472+
install(DIRECTORY "${PROJECT_BINARY_DIR}/Documentation/" DESTINATION "Documentation")
473+
else()
474+
message(WARNING ": Documentation will not be created")
472475
endif()
473476

474477
target_sources(agent_lib PUBLIC FILE_SET headers

‎conan/mruby/conanfile.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class MRubyConan(ConanFile):
1616
name = "mruby"
17-
version = "3.2.0"
17+
version = "3.4.0"
1818
license = "https://github.com/mruby/mruby/blob/master/LICENSE"
1919
author = "Yukihiro “Matz” Matsumoto"
2020
homepage = "https://mruby.org/"
@@ -37,7 +37,7 @@ class MRubyConan(ConanFile):
3737
_ruby_version_dir = "ruby-{}.{}.0".format(_major, _minor)
3838

3939
def source(self):
40-
get(self, "https://github.com/mruby/mruby/archive/refs/tags/3.2.0.zip", strip_root=True, destination=self.source_folder)
40+
get(self, "https://github.com/mruby/mruby/archive/refs/tags/3.4.0.zip", strip_root=True, destination=self.source_folder)
4141
get(self, "https://github.com/mattn/mruby-onig-regexp/archive/refs/heads/master.zip",
4242
strip_root=True, destination=os.path.join(self.source_folder, 'mrbgems', 'mruby-onig-regexp'))
4343

‎conanfile.py‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class MTConnectAgentConan(ConanFile):
1111
name = "mtconnect_agent"
12-
version = "2.6"
12+
version = "2.7"
1313
url = "https://github.com/mtconnect/cppagent.git"
1414
license = "Apache License 2.0"
1515
settings = "os", "compiler", "arch", "build_type"
@@ -93,14 +93,13 @@ def tool_requires_version(self, package, version):
9393
buf = io.StringIO()
9494
command = f"{package} --version"
9595
res = self.run(command, shell=True, stdout=buf)
96+
self.output.info(f"Command: '{command}' returned {res}")
9697
ver = [0, 0, 0]
9798
if res == 0:
9899
text = buf.getvalue()
99100
self.output.debug(f"{command} returned:\n{text}")
100101
ver = [int(d) for d in re.search(r"\d+\.\d+\.\d+", text).group(0).split('.')]
101102
self.output.info(f"Version of {package} is {ver}")
102-
else:
103-
self.output.info(f"Command: '{command}' returned {res}")
104103

105104
if ver < version:
106105
ver_text = '.'.join([str(x) for x in version])
@@ -112,7 +111,7 @@ def tool_requires_version(self, package, version):
112111
def build_requirements(self):
113112
self.tool_requires_version("cmake", [3, 26, 4])
114113
if self.options.with_docs:
115-
self.tool_requires_version("doxygen", [1, 15, 0])
114+
self.tool_requires_version("doxygen", [1, 16, 0])
116115

117116
def requirements(self):
118117
self.requires("boost/1.88.0", headers=True, libs=True, transitive_headers=True, transitive_libs=True)
@@ -125,7 +124,7 @@ def requirements(self):
125124
self.requires("bzip2/1.0.8", headers=True, libs=True, transitive_headers=True, transitive_libs=True)
126125

127126
if self.options.with_ruby:
128-
self.requires("mruby/3.2.0", headers=True, libs=True, transitive_headers=True, transitive_libs=True)
127+
self.requires("mruby/3.4.0", headers=True, libs=True, transitive_headers=True, transitive_libs=True)
129128

130129
self.requires("gtest/1.17.0", headers=True, libs=True, transitive_headers=True, transitive_libs=True, test=True)
131130

0 commit comments

Comments
 (0)