Adding Fossil Sys Dependency
Adding Fossil Sys Dependency With Meson
-
Install Meson Build System:
Install Meson version1.3
or newer:python -m pip install meson # To install Meson python -m pip install --upgrade meson # To upgrade Meson
-
Create a
.wrap
File:
Add thefossil-sys.wrap
file in yoursubprojects
directory and include the following content:# ====================== # Git Wrap package definition # ====================== [wrap-git] url = https://github.com/fossillogic/fossil-sys.git revision = v0.1.0 [provide] fossil-sys = fossil_sys_dep
-
Integrate the Dependency:
In yourmeson.build
file, integrate Fossil Sys by adding the following line:dep = dependency('fossil-sys')
Adding Fossil Sys Dependency With CMake
To use Fossil Sys with CMake, follow these steps:
-
Install CMake:
Install CMake version3.13.4
or newer:python -m pip install cmake # To install CMake python -m pip install --upgrade cmake # To upgrade CMake
-
Find and Integrate Fossil CrabDB:
After installing CMake, you can integrate Fossil Sys as a dependency. Add the following lines to yourCMakeLists.txt
file:# Find Fossil Sys package find_package(FossilSys REQUIRED) # Link the Fossil Sys to your project target_link_libraries(your_target FossilSys)
-
Configure Your CMake Project:
Make sure to configure your CMake project to include the necessary paths and dependencies for Fossil Sys. Typically, you’ll want to make sure theFossilSys
library is correctly linked in your build configuration.This will ensure that Fossil Sys is included and properly built with your project.