<div dir="ltr">once you have your libraries and java souces... need to put them in an arrangement like the ndk-build script expects (in libs, src, res) and have a build.xml and a androidManifest.xml <div>then just call</div>
<div><br></div><div>ant <debug/release></div><div><br></div><div>this does the packaging, and results in a bin/<build.xml packgae name>-<debug/releease>.apk</div><div><br></div><div>the next useful commands are </div>
<div>adb install <apk name></div><div>adb uninstall <AndroidManifest package name></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 6, 2014 at 6:55 AM, Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey.lists@gmail.com" target="_blank">rcdailey.lists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I have been working on getting CMake working for Android projects. So<br>
far, I have a custom toolchain file to build NDK libraries. I am also<br>
able to generate makefiles for Eclipse, import those projects into<br>
eclipse, and build from eclipse. All seems to be working fine from<br>
that aspect.<br>
<br>
The only part missing is the Java build. I need to build a Java<br>
project and link against the .SO files generated from the NDK library<br>
builds.<br>
<br>
Can someone help me figure out how to integrate this into CMake? Do I<br>
need to have a set of pre-generated java project files (ANT)? Do I<br>
need to use 'android create project' inside my CMake scripts to<br>
generate them on the fly?<br>
<br>
I'm not sure exactly how to plug in the Java piece of the build<br>
process. I'm not familiar with Android development completely, so<br>
detailed directions will be immensely helpful!<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>