c++biicodechaiscript

Chaiscript #include statement mapping in biicode.conf


I want to create a biicode block that depends on the chaiscript block (lefticus/ChaiScript). If I include the chaiscript headers this way

#include <lefticus/ChaiScript/chaiscript/chaiscript.hpp>

bii find works fine. But I would like to include them as

#include <chaiscript/chaiscript.hpp>

so I changed my biicode.conf such as this :

[includes]
    chaiscript/*.hpp: lefticus/ChaiScript

but then I got

florian@florian-VirtualBox:~/dev/ATE$ bii find
INFO: Processing changes...
WARN: There are local unresolved dependencies
They will not be searched in the server
Unresolved: chaiscript/chaiscript.hpp, chaiscript/chaiscript_stdlib.hpp
INFO: Finding missing dependencies in server
INFO: Looking for chaiscript/utility...
WARN: Can't find block candidate for: chaiscript/utility
INFO: Looking for chaiscript/dispatchkit...
WARN: Can't find block candidate for: chaiscript/dispatchkit
INFO: No block candidates found

How do I have to configure biicode to make it work with the "classic" chaiscript includes ?

Thanks


Solution

  • You were doing well but you need to write the requirement too:

    [requirements] 
         lefticus/ChaiScript: 1
    [includes]
         chaiscript/*.hpp: lefticus/ChaiScript
    

    This way you can keep your includes as:

    #include "chaiscript/chaiscript.hpp"
    

    PD: it is necessary because "bii find" don't work yet with such include mapping.