Create a worktree:
$ cd ~/src
$ qibuild init
$ cd ~/src/world
$ $EDITOR CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(world)
include("qibuild.cmake")
qi_create_lib(world world/world.hpp world/world.cpp)
qi_stage_lib(world)
$ $EDITOR qibuid/modules/ode-config.cmake
clean(ODE)
fpath(ODE ode/ode.h)
flib(ODE ode)
export_lib(ODE)
qi_use_lib(world ODE)
$ cd ~/src/hello
$ $EDITOR qibuild.manifest
[project hello]
depends = world
$ $EDITOR CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(hello)
include("qibuild.cmake")
qi_create_bin(hello main.cpp)
$ cd ~/src
$ qibuild configure hello
Call cmake on world, then hello
$ qibuild make hello
Build world, then hello, automagically
linking `src/hello/build/sdk/bin/hello` with
`src/world/build/sdk/lib/libworld.so`
qi_install_header(world/world.hpp SUBFOLDER world)
$ qibuild package world
<toolchain>
<package
name="world"
url="htpp://example.com/world.tar.gz"
/>
</toolchain>
$ qitoolchain create $NAME htpp://example.com/feed.xml
Add package from htpp://example.com/world.tar.gz to
a toolchain named $NAME
$ qisrc add git@git.example.com/hello.git
Get hello sources from a git repository
$ qibuild configure -c $NAME hello
No need for world sources, using pre-compiled library
from the world package