使用gradle-native cpp-application和cpp-library插件构建一个cpp应用程序

时间:2018-09-29 16:15:54

标签: c++ gradle multi-module gradle-native

我尝试使用gradle-native(cpp-application和cpp-library插件)成功构建简单的cpp项目。

我想对更复杂的对象使用gradle-native,但是不幸的是我失败了...即使试图在gradle-native / samples上模拟样本! 我已经花了几个小时:(

这就是我想做的事情:

server (cpp-application) -> depends on driver or factory
driver (cpp-library) 
  |---core (cpp-library)
  |---alsa (cpp-libary with linux operating system) -> depends on core
  |---asio (cpp-library with windows operating system) -> depends on core
  |---factory (the resulting library which should use either linux or windows library) -> depends either on alsa, either on asio according to the operating system

server (cpp-application) -> depends on driver
driver (cpp-library)
  |---core (cpp-library)
  |---alsa (cpp-libary with linux operating system) -> depends on core
  |---asio (cpp-library with windows operating system) -> depends on core
  |---src/ (the resulting library which should use either linux or windows          library) -> depends either on alsa, either on asio according to the operating system

请问有人可以解决吗? 谢谢 ! 问候

0 个答案:

没有答案