c++ - 使用 gradle-native cpp-application & cpp-library 插件构建一个 cpp 应用程序
问题描述
我尝试使用 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
请问有人有解决办法吗?谢谢 !问候
解决方案
推荐阅读
- javascript - 通过 CSS 模块生成的类名以一种奇怪的方式生成
- reactjs - 在使用 CRA 创建的 MERN 应用程序上添加服务器端渲染的最佳方法是什么?
- ionic-framework - 无法在 ionic/vue 中使用 Swiper
- c - 为什么链接会影响同一部分中的相对跳转是否需要重定位?
- mongodb - Spring Data MongoDB:结合对象的两个字段进行条件查询
- laravel-8 - Laravel中的错误未定义类常量'index'
- javascript - 如何使用 videojs-contrib-dash 在 videoJs 上更改和显示文本轨道?
- java - 如果 kafka 流应用程序不转发事件会发生什么?
- typescript - Typeorm 改变传递给 create 方法的值,避免这种情况的最佳方法是什么?
- javascript - 我在动画按钮悬停 gif 中有错误