Skip to content

A template of a Conan package manager recipee, for use with the SCons build tool

License

Notifications You must be signed in to change notification settings

olivren/conan-scons-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conan SCons template

A template for a Conan package manager recipe, that uses SCons as its build tool instead of CMake.

This template demonstrates two different uses of SCons when writing a Conan recipe:

  • Use SCons in the test_package part (the part that compiles a sample project to check that the library is correctly packaged and can be linked against)
  • Use SCons to compile the library being packaged.

These two parts are independant one another. For example, it is perfectly fine to package a library built with a Makefile, and use SCons for the test_package part.

This template supports Windows (MSVC) and Linux (GCC), and it supports a release and a debug build type. The version of MSVC is hardcoded, and the coherence between the compiler setting of Conan (compiler, version and arch), and the compiler detected by SCons is not checked.

Inside the root directory, just run conan test_package or conan test_package -s build_type=Debug.

About

A template of a Conan package manager recipee, for use with the SCons build tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published