将android ndk构建文件转换为gradle [英] Converting android ndk build files to gradle

查看:77
本文介绍了将android ndk构建文件转换为gradle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何有关将application.mk/android.mk文件转换为基于gradle的build.gradle文件的文档?

Is there any documentation on converting a application.mk/android.mk file to a gradle based build.gradle file?

推荐答案

我制作了一个脚本工具,用于将android.mk构建系统转换为gradle构建系统,因为我想在以下位置测试演示源代码: https://android.googlesource.com/platform/development/+/05523fb0b48280a5364908b00768ec71edb847a2/samples

I made a script tool to convert android.mk building system to gradle building system, because I wanted to test the demo source codes in: https://android.googlesource.com/platform/development/+/05523fb0b48280a5364908b00768ec71edb847a2/samples

但是在搜索整个互联网之后,我发现还没有人这样做.因此,我自己创建了此工具.但是即使使用此工具,由于API版本和功能不匹配,我们也不能确保AndroidSamples中的所有项目都能成功构建和执行.因此,我为 https://android.googlesource.com/platform/创建了自己的项目开发/+/05523fb0b48280a5364908b00768ec71edb847a2/示例 我想一一转换这些演示项目. 现在整个源代码在这里: https://github.com/clockzhong/AndroidSamples 我已经成功地将一些示例转换为gradle构建系统,并在我的android手机上正确执行了它们.但是无论如何,我仍然有一些版本不匹配的问题,我会在项目签入注释中提到它.

But after searching whole internet, I found no one did it yet. So I created this tool by myself. But even with this tool, we couldn't ensure all projects in AndroidSamples could be built and executed successfully because of the API versions and features mismatch. So I created my own projects for https://android.googlesource.com/platform/development/+/05523fb0b48280a5364908b00768ec71edb847a2/samples And I want to convert those demo projects one by one. Now the whole source codes are here: https://github.com/clockzhong/AndroidSamples I already successfully converted some samples into gradle building system and executed them correctly on my android phones. But I still have some version mismatch issues, anyway, I'll mentioned it in the project check-in comments.

这篇关于将android ndk构建文件转换为gradle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆