Android NDK 之使用步骤

来源:互联网 发布:如何做好淘宝一件代发 编辑:程序博客网 时间:2024/06/06 01:09

The steps in building an Android NDK app are:

  1. Create a sub-directory called "jni" and place all the native sources here.
  2. Create a "Android.mk" to describe your native sources to the NDK build system.
  3. Build your native code by running the "ndk-build" (in NDK installed directory) script from your project's directory. The build tools copy the stripped, shared libraries needed by your application to the proper location in the application's project directory.
  4. Finally, compile and run your application using the SDK tools in the usual way. The SDK build tools will package the shared libraries in the application's deployable ".apk" file.
0 0
原创粉丝点击