Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望能支持android ndk以外的native构建 #11

Open
PumpkinXD opened this issue May 28, 2024 · 1 comment
Open

希望能支持android ndk以外的native构建 #11

PumpkinXD opened this issue May 28, 2024 · 1 comment

Comments

@PumpkinXD
Copy link

你在什么场景下需要该功能?

是这样的,我想把xmake构建的native lib打包进jar(使用jnr/jna/jni或者Project Panama进行加载)
很自然的我想到了本插件
但是直接引用发现本插件跑不通(没有添加prebuild task提示没有prebuild,人为添加后报错与android ndk相关)
目前我是以gradle的一个task调用 jni/build.shjni/build.bat脚本,然后脚本运行 xmake;另一个task负责将构建好的so/dll复制到jar中(由于直接跑 xmake -project=jni 会让native直接跑到build而非jni/build下我只好这样了)

描述可能的解决方案

嗯。。。 我希望能在配置中添加类似于“native_type"的属性,根据这个属性决定是android ndk还是其他类型的native

对于“其他类型” 我希望默认行为类似于maven的NAR插件,具体行为可由使用者通过task自定义

描述你认为的候选方案

No response

其他信息

No response

@waruqi
Copy link
Member

waruqi commented May 28, 2024

暂时不考虑,这个插件主要就是给 android ndk 用的,不做其他用途。。你可以自己 fork 后,自行修改做个定制版。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants