biicode.conf 中的 Chaiscript #include 语句映射

Chaiscript #include statement mapping in biicode.conf

我想创建一个依赖于 chaiscript 块的 biicode 块 (lefticus/ChaiScript)。如果我以这种方式包含 chaiscript headers

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

bii find 工作正常。但我想将它们包括为

#include <chaiscript/chaiscript.hpp>

所以我改变了我的 biicode.conf 像这样:

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

但后来我得到了

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

我如何配置 biicode 以使其与 "classic" chaiscript include 一起工作?

谢谢

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

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

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

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

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

这样您就可以将包含内容保留为:

#include "chaiscript/chaiscript.hpp"

PD:这是必要的,因为 "bii find" 还不能使用这样的包含映射。