我想将我的库项目移植到biicode,但是我的示例使用了对biicode块太大的二进制文件(有12 my的限制),所以我将示例文件夹添加到ignore.bii文件中。问题是,它现在看起来像/ CMakeLists.txt,因为我使用的是包装在
IF(BIICODE)
INIT_BIICODE_BLOCK()
ADD_BIICODE_TARGETS()
ELSE()
#MY OLD CMAKELIST HERE
ENDIF()它实际上构建得很好,但是bii deps仍然试图解决依赖关系。
我该怎么办?我真的不想删除或更改太多的东西来支持biicode,因为这个项目已经在github上了。
编辑:下面是指向该项目的链接:https://github.com/Lectem/libmpo --我在biicode.conf中尝试了一些类似于
[dependencies]
CMakeLists.txt - example/CMakeLists.txt
include/libmpo/mpo.h - jpeglib.h但我明白了:
WARN: Lectem/libmpo/biicode.conf, [dependencies] CMakeLists.txt - example/CMakeLists.txt
There are no files matching pattern example/CMakeLists.txt
WARN: Lectem/libmpo/biicode.conf, [dependencies] include/libmpo/mpo.h - jpeglib.h
There are no files matching pattern jpeglib.h
Lectem/libmpo depends on:
Lectem/libmpo (self)
include/libmpo/cmpo.h
src/cmpo.c (E)
include/libmpo/mpo.h
src/cmpo.c (E)
src/dmpo.c (E)
src/mpo.c (E)
src/cmpo.c
include/libmpo/cmpo.h (I)
src/dmpo.c
include/libmpo/mpo.h (I)
src/mpo.c
include/libmpo/mpo.h (I)
jpeg/jpeg: 0
jpeglib.h
include/libmpo/mpo.h (E)
system:
assert.h
src/cmpo.c
src/mpo.c
stdint.h
include/libmpo/mpo.h
stdio.h
include/libmpo/mpo.h
stdlib.h
include/libmpo/mpo.h
unresolved:
example/CMakeLists.txt
CMakeLists.txt
jpeglib.h
include/libmpo/mpo.h我还试图删除jpeglib.h依赖项,因为我放置了以下宏:
#ifdef BII
#include <jpeg/jpeg/jpeglib.h>
#else
#include <jpeglib.h>
#endif发布于 2015-03-12 23:05:14
没有必要修改源代码,如果您想做这样的检查,它将是#ifdef BIICODE。
因此,保留代码原样,并使用biicode.conf中的includes部分:
[requirements]
jpeg/jpeg: 1
[paths]
include
[includes]
jpeglib.h: jpeg/jpeg诚然,现在限制为12 mb,但您可以在当前大小下使用以下方法添加一个ignore.bii文件:
example/*.mpo
*.pdf然后将ADD_BIICODE_TARGETS宏添加到cmake中就足够了,它将管理所有内容,所以只需在CMakeLists.txt开头添加即可。
IF(BIICODE)
ADD_BIICODE_TARGETS()
return()
ENDIF()确实,biicode中的jpeg lib版本似乎有问题,但在biicode版本jpeg/jpeg: 1中,它被修正并升级为jpeg9,这是biicode.conf中的版本。
将此添加到您的回购,您应该能够只是"bii构建“,并运行生成的例子在bin文件夹内。我已经用MinGW 4.8测试过它,并且工作过。
https://stackoverflow.com/questions/29016941
复制相似问题