Skip to content

jbatnozic/libzt-conan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libzt-conan

Conan recipe for ZeroTier SDK.

Latest version: 3.0.1

Note: The recipe in folder Conan1.x is for use with conan versions older than 2.0.0 and this recipe has version 2.2.0. It is no longer supported and will not be updated.

Currently tested only on: MacOS, Ubuntu and Windows.

License

MIT (see LICENSE). The licence applies ONLY to the recipe files themselves (the ones in this repository), and NOT to the library being packaged (libzt).

Instructions

Getting the package

The package artifacts are not stored in any global repository, so you will have to build the package locally yourself.

To do that, first download the repository. Then, if you are using a conan version older than 2.0.0, cd into Conan1.x, and if you're using conan version 2.0.0 or newer, cd into Conan2.x. Finally, run the following command from your terminal:

# Conan 1.x way:
conan create . @<user>/<channel> --profile=<profile> --build=outdated

# Conan 2.x way:
conan create . --profile=<profile> --user=<user> --channel=<channel> --build=missing

You can choose the user and channel arbitrarily, however, for compatibility with other Conan packages created by me, I recommend that you use user jbatnozic and channel stable.

For profile, use default or one of your own.

Note: If Conan can't resolve the dependency libcurl (only needed if using the Central API), you need to add the remote where it can be found:

conan remote add conancenter https://center.conan.io

Consuming the package

Consumed through a conanfile (.txt or .py) like any other Conan package. Supports both build-types (Debug and Release) as you'd excpect.

The only supported options are fPIC (except on Windows), shared and centralapi (controls whether ZeroTier Central API is enabled and included). All three are boolean (True/False).

Warning: Central API is currently in the experimental stage (on the libzt side) so there's no guarantee that it will work properly or even build if you enable it.

Also see

ZTCpp, a user-friendly C++ wrapper over libzt. Also available as a Conan package.

About

Conan recipe for ZeroTier SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published