问题描述
我正在研究全部可互操作但具有明显不同的编译/安装步骤的MATLAB,Java和C/C ++组件集合.目前,我们不为MATLAB编译任何内容,对于Java构建和单元测试,请使用maven2,对于C/C ++构建和单元测试,请使用自动工具.
I am working on a collection MATLAB, Java, and C/C++ components that all inter-operate, but have distinctly different compilation/installation steps. We currently don't compile anything for MATLAB, use maven2 for our Java build and unit tests, and use autotools for our C/C++ build and unit tests.
我想使用maven2将所有内容移至单个构建和单元测试系统,但无法找到允许C/C ++代码流保持基于自动工具的插件并将其包装在maven中的插件.建造.必须剥夺自动工具的支持并重新创建Maven中的所有依赖关系很可能会破坏交易,因此我正在寻找一种方法来使Maven和自动工具很好地配合使用,而不必在两者之间进行选择.
I would like to move everything to a single build and unit test system, using maven2, but have not been able to find a plugin that will allow the C/C++ codestream to remain autotools-based and simply wrap it in a maven build. Having to rip out autotools support and recreate all the dependencies in maven is most likely a deal-breaker, so I'm looking for a way for maven and autotools to play nicely together, rather than having to choose between the two.
这是可能的,甚至是理想的吗?有没有我忽略的资源?
Is this possible or even desirable? Are there resources out there that I have overlooked?
推荐答案
您确实忽略了行家 cbuild parent 套件.请查看"make-maven-plugin"部分以了解更多详细信息.
You did overlook the maven cbuild parent suite. take a look at the "make-maven-plugin" section for more details.
这篇关于使用Maven2构建基于自动工具的C/C ++包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!