Source

waffle-multi-proj /

Filename Size Date modified Message
proj-a
proj-b
proj-c
proj-d
waffle [4662a3fbb201]
406 B
68 B
48 B
1.3 KB
3.5 KB

waffle multi-proj testbed

a simple multi-project test using waffle.

projects deps

  • proj-a has no dep.
  • proj-b uses proj-a
  • proj-c uses proj-b
  • proj-d uses proj-c and proj-a

proj-a

has pkg-aaa which:

  • creates a libpkg-aaa library
  • installs a header pkg-aaa/pkg-aaa.h

proj-b

has pkg-bbb which:

  • uses pkg-aaa (to get a function from libpkg-aaa)
  • creates a libpkg-bbb library
  • installs a header pkg-bbb/pkg-bbb.h

proj-c

has pkg-ccc which:

  • uses pkg-aaa and pkg-bbb to get the functions from (resp.) libpkg-aaa and libpkg-bbb
  • creates a libpkg-ccc library
  • installs a header pkg-ccc/pkg-ccc.h

proj-d

dummy.

TODO

  • play with a binary in proj-a/pkg-aaa which would dlopen a library and call some function
  • play with a proj-b/pkg-aaa overidding proj-a/pkg-aaa in proj-c/pkg-ccc

How to play

$ hg clone https://bitbucket.org/binet/waffle-multi-proj
$ cd waffle-multi-proj
$ ./build-projs.py

this will compile and install everything under $sitedir=${HOME}/tmp/opt/mproj

Requirements

  • a C/C++ compiler
  • a not too old python installation (>= 2.6)