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

Chaiscript #include statement mapping in biicode.conf

本文关键字:语句 映射 conf #include biicode Chaiscript      更新时间:2023-10-16

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

#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 以使其与"经典"chaiscript 包含一起使用?

谢谢

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

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

这样,您可以将包含保留为:

#include "chaiscript/chaiscript.hpp"

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

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

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

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