Skip to content

Commit da50348

Browse files
committed
Merge branch 'main' of github.com:viamrobotics/viam-cpp-sdk into conan-windows
2 parents 01a7805 + fe1e847 commit da50348

File tree

14 files changed

+3875
-2222
lines changed

14 files changed

+3875
-2222
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ else()
4141
cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
4242
endif()
4343

44-
set(CMAKE_PROJECT_VERSION 0.13.0)
44+
set(CMAKE_PROJECT_VERSION 0.13.2)
4545

4646
# Identify the project.
4747
project(viam-cpp-sdk

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,20 @@ to change without warning. In particular, using Boost.Log macros such as
9797
`BOOST_LOG_TRIVIAL` or `BOOST_LOG_SEV` is undefined behavior which will likely
9898
fail to output log messages.
9999

100+
## Running Tests
101+
Tests for the SDK are located in `src/viam/sdk/tests`. The CMakeLists.txt file in that directory defines how to build them. When the SDK is built, the test executables are placed in the test folder within your specified build directory (e.g., `build`, if you followed the instructions in [`BUILDING.md`](https://github.com/viamrobotics/viam-cpp-sdk/blob/main/BUILDING.md)). The test executable files can be run individually. To run the entire test suite at once, navigate to the `tests` folder in your build directory and run:
102+
```
103+
ctest
104+
```
105+
Or to avoid navigating all the way to the folder you can specify the test directory, for example:
106+
```
107+
ctest --test-dir build/src/viam/sdk/tests/
108+
```
109+
Additionally, for more useful ctest options explore:
110+
```
111+
ctest --help
112+
```
113+
100114
## License
101115
Copyright 2022 Viam Inc.
102116

conanfile.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from conan import ConanFile
22
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
3+
from conan.tools.build import valid_max_cppstd
34
from conan.tools.files import load
45
from conan.tools.apple import is_apple_os
56
import os
@@ -43,19 +44,24 @@ def configure(self):
4344
self.options[lib].shared = True
4445

4546
def _xtensor_requires(self):
46-
if self.settings.compiler.cppstd in ["14", "gnu14"]:
47+
if valid_max_cppstd(self, 14, False):
4748
return 'xtensor/[>=0.24.3 <0.26.0]'
4849

4950
return 'xtensor/[>=0.24.3]'
5051

5152
def _grpc_requires(self):
52-
if self.settings.compiler.cppstd in ["14", "gnu14"]:
53+
if valid_max_cppstd(self, 14, False):
5354
return 'grpc/[>=1.48.4 <1.70.0]'
5455

5556
return 'grpc/[>=1.48.4]'
5657

5758
def requirements(self):
58-
self.requires('boost/[>=1.74.0]', transitive_headers=True)
59+
if self.settings.os == "Windows":
60+
# This is temporary pending the resolution of a windows compilation
61+
# issue on boost 1.88.0
62+
self.requires('boost/[>=1.74.0 <1.88.0]', transitive_headers=True)
63+
else:
64+
self.requires('boost/[>=1.74.0]', transitive_headers=True)
5965

6066
# The SDK supports older grpc and protobuf, but these are the oldest
6167
# maintained conan packages.
@@ -116,6 +122,8 @@ def package_info(self):
116122

117123
if self.settings.os in ["Linux", "FreeBSD"]:
118124
self.cpp_info.components["viamsdk"].system_libs.extend(["dl", "rt"])
125+
elif self.settings.os == "Windows":
126+
self.cpp_info.components["viamsdk"].system_libs.extend(["ncrypt", "secur32", "ntdll", "userenv"])
119127

120128
self.cpp_info.components["viamapi"].includedirs.append("include/viam/api")
121129

src/viam/api/api_proto_tag.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.1.438
1+
v0.1.444

src/viam/api/app/v1/app.grpc.pb.cc

Lines changed: 152 additions & 105 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/viam/api/app/v1/app.grpc.pb.h

Lines changed: 762 additions & 546 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/viam/api/app/v1/app.pb.cc

Lines changed: 1959 additions & 1385 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)