Test library with conan and meson
Find a file
2023-07-06 20:34:01 +02:00
include packaged using conan create, added test_package 2023-03-21 21:17:21 +01:00
src packaged using conan create, added test_package 2023-03-21 21:17:21 +01:00
test_package packaged using conan create, added test_package 2023-03-21 21:17:21 +01:00
.gitignore added debug profile 2023-03-17 16:31:02 +01:00
conanfile.py using revision_mode = "scm" to change revision to git commit hash 2023-07-06 20:34:01 +02:00
debug added debug profile 2023-03-17 16:31:02 +01:00
meson.build packaged using conan create, added test_package 2023-03-21 21:17:21 +01:00
README.md added MesonToolchain in recipe 2023-07-06 20:26:17 +02:00

Elemmire

Steps to build

  • Install Conan>=2
conda install -c conda-forge conan
  • Create a conan profile
conan profile detect --force
  • To build the library locally:
    • Install dependencies with conan
    conan install . --build=missing
    
    or for the debug version:
    conan install . --build=missing --profile=debug
    
    • Build with meson
    cd build-release ; conan build .. ; cd ..
    
    or for the debug version:
    cd build-debug ; conan build .. --profile=debug ; cd ..
    
  • To create the package (i.e. build and install it in the conan cache ~/.conan2):
    conan create . --build=missing
    
    or for the debug version:
    conan create . --build=missing --profile=debug
    
    If necessary, use a user and a channel to build as ``elemmire/x.y@user/channel'':
    conan create . --build=missing --user user --channel channel
    
  • Work with the local cache
    • Check installation in the cache:
    conan list elemmire
    
    • To remove from the local cache:
    conan remove elemmire/x.y