Skip to content

v0.1.0

Latest
Compare
Choose a tag to compare
@dreamer-coding dreamer-coding released this 15 Feb 17:05
2152b58

Adding Fossil Sys Dependency

Adding Fossil Sys Dependency With Meson

  1. Install Meson Build System:
    Install Meson version 1.3 or newer:

    python -m pip install meson           # To install Meson
    python -m pip install --upgrade meson # To upgrade Meson
  2. Create a .wrap File:
    Add the fossil-sys.wrap file in your subprojects 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
  3. Integrate the Dependency:
    In your meson.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:

  1. Install CMake:
    Install CMake version 3.13.4 or newer:

    python -m pip install cmake           # To install CMake
    python -m pip install --upgrade cmake # To upgrade CMake
  2. Find and Integrate Fossil CrabDB:
    After installing CMake, you can integrate Fossil Sys as a dependency. Add the following lines to your CMakeLists.txt file:

    # Find Fossil Sys package
    find_package(FossilSys REQUIRED)
    
    # Link the Fossil Sys to your project
    target_link_libraries(your_target FossilSys)
  3. 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 the FossilSys library is correctly linked in your build configuration.

    This will ensure that Fossil Sys is included and properly built with your project.