3

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

4

2 回答 2

3

您做得很好,但您也需要编写要求:

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

通过这种方式,您可以将包含内容保留为:

#include "chaiscript/chaiscript.hpp"

PD:这是必要的,因为“bii find”还不适用于此类包含映射。

于 2015-03-15T16:06:06.453 回答
2

我终于找到了解决方案。文件中的[includes]标签biicode.conf仅在依赖项已经存在时才有效。我不得不修改我的代码以包含具有块完整路径的文件:

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

bii deps在调整biicode.conf文件之前启动。

于 2015-03-15T14:23:55.047 回答