xmake-gradle
xmake-gradle copied to clipboard
A gradle plugin that integrates xmake seamlessly
### Xmake Version 2.7.6 ### Operating System Version and Architecture Windows 11 ### Describe Bug When running `gradlew installDebug` after a C++ change, xmake recompiles the .so binary but it...
### 描述问题 使用 xmake-gradle 编译 JNI, 在 build.gradle, xmake.lua 中配置 debug 模式, 在 jni 的 c++ 代码中设置的断点无效. 对比 CMAKE 工程: 1. CMAKE 工程可以在 project 区显示 CPP 源代码的文件, xmake-gradle 没有显示. 2....
### Xmake Version 1.1.6 ### Operating System Version and Architecture linux mint 21.3 ### Describe Bug FAILURE: Build failed with an exception. * What went wrong: Execution failed for task...
### 你在什么场景下需要该功能? 是这样的,我想把xmake构建的native lib打包进jar(使用jnr/jna/jni或者Project Panama进行加载) 很自然的我想到了本插件 但是直接引用发现本插件跑不通(没有添加prebuild task提示没有prebuild,人为添加后报错与android ndk相关) 目前我是以gradle的一个task调用 `jni/build.sh`或 `jni/build.bat`脚本,然后脚本运行 xmake;另一个task负责将构建好的so/dll复制到jar中(由于直接跑 `xmake -project=jni` 会让native直接跑到`build`而非`jni/build`下我只好这样了) ### 描述可能的解决方案 嗯。。。 我希望能在配置中添加类似于“native_type"的属性,根据这个属性决定是android ndk还是其他类型的native 对于“其他类型” 我希望默认行为类似于[maven的NAR插件](https://github.com/maven-nar/nar-maven-plugin),具体行为可由使用者通过task自定义 ### 描述你认为的候选方案 _No response_ ### 其他信息 _No...
I noticed that the target packages were not installed, like other so file, so I added that. In addition, apart from the target file, no files are deleted in the...