diff --git a/docs/html/sdk/ndk/index.jd b/docs/html/sdk/ndk/index.jd index f87e1f6be9763..afbad57094d0a 100644 --- a/docs/html/sdk/ndk/index.jd +++ b/docs/html/sdk/ndk/index.jd @@ -1,18 +1,19 @@ ndk=true -ndk.win_download=android-ndk-r6b-windows.zip -ndk.win_bytes=67670219 -ndk.win_checksum=f496b48fffb6d341303de170a081b812 +ndk.win_download=android-ndk-r7-windows.zip +ndk.win_bytes=81270552 +ndk.win_checksum=55483482cf2b75e8dd1a5d9a7caeb6e5 -ndk.mac_download=android-ndk-r6b-darwin-x86.tar.bz2 -ndk.mac_bytes=52798843 -ndk.mac_checksum=65f2589ac1b08aabe3183f9ed1a8ce8e +ndk.mac_download=android-ndk-r7-darwin-x86.tar.bz2 +ndk.mac_bytes=71262092 +ndk.mac_checksum=817ca5675a1dd44078098e43070f19b6 -ndk.linux_download=android-ndk-r6b-linux-x86.tar.bz2 -ndk.linux_bytes=46532436 -ndk.linux_checksum=309f35e49b64313cfb20ac428df4cec2 +ndk.linux_download=android-ndk-r7-linux-x86.tar.bz2 +ndk.linux_bytes=64884365 +ndk.linux_checksum=bf15e6b47bf50824c4b96849bf003ca3 page.title=Android NDK + @jd:body
+ Android NDK, Revision 7 (November 2011)
+
+ This release of the NDK includes new features to support the Android 4.0 platform as well + as many other additions and improvements:
+ +<OMXAL/OpenMAXAL.h> and
+ <OMXAL/OpenMAXAL_Android.h> headers allow applications targeting
+ API level 14 to perform multimedia output directly from native code by using a new
+ Android-specific buffer queue interface. For more details, see
+ docs/openmaxal/index.html and http://www.khronos.org/openmax/.docs/opensles/index.html and
+ http://www.khronos.org/opensles/.NDK_CCACHE environment variable to ccache (or the path to
+ your ccache binary). When declared, the NDK build system automatically
+ uses CCache when compiling any source file. For example:
+ +export NDK_CCACHE=ccache ++
Note: CCache is not included in the NDK release + so you must have it installed prior to using it. For more information about CCache, see + http://ccache.samba.org.
+APP_ABI to all to indicate that
+ you want to build your NDK modules for all the ABIs supported by your given NDK
+ release. This means that either one of the following two lines in your
+ Application.mk are equivalent with this release:
+ +APP_ABI := all +APP_ABI := armeabi armeabi-v7a x86 ++ +
This also works if you define APP_ABI when calling
+ ndk-build from the command-line, which is a quick way to check that your
+ project builds for all supported ABIs without changing the project's
+ Application.mk file. For example:
+ndk-build APP_ABI=all ++
LOCAL_CPP_FEATURES variable in Android.mk that
+ allows you to declare which C++ features (RTTI or Exceptions) your module uses. This
+ ensures that the final linking works correctly if you have prebuilt modules that depend
+ on these features. See docs/ANDROID-MK.html and
+ docs/CPLUSPLUS-SUPPORT.html for more details.$NDK/ndk-build from your project path, the paths to the source,
+ object, and binary files that are passed to the build commands are significantly
+ shorter now, because they are passed relative to the current directory. This is useful
+ when building projects with a lot of source files, to avoid limits on the maximum
+ command line length supported by your host operating system. The behavior is unchanged
+ if you invoke ndk-build from a sub-directory of your project tree, or if
+ you define NDK_PROJECT_PATH to point to a specific directory.ndk-build.cmd script from the command line from your project path. The
+ script takes exactly the same arguments as the original ndk-build script.
+ The Windows NDK package comes with its own prebuilt binaries for GNU Make, Awk and other
+ tools required by the build. You should not need to install anything else to get a
+ working build system.
+
+ Important: ndk-gdb does not work on
+ Windows, so you still need Cygwin to debug.
This feature is still experimental, so feel free to try it and report issues on the + public bug database or public forum. All samples and unit tests + shipped with the NDK succesfully compile with this feature.
+libs/<abi>) if APP_MODULES is not defined in
+ your Application.mk. For example, if a top-level module foo
+ imports a module bar, then both libfoo.so and
+ libbar.so are copied to the install location. Previously, only
+ libfoo.so was copied, unless you listed bar in your
+ APP_MODULES too. If you define APP_MODULES explicitly, the
+ behavior is unchanged.ndk-gdb now works correctly for activities with multiple categories in
+ their MAIN intent filters.foo imports static library bar that imports static
+ library zoo, the libfoo.so will now be linked against both
+ libbar.a and libzoo.a.docs/NATIVE-ACTIVITY.HTML: Fixed typo. The minimum API level should be
+ 9, not 8 for native activities.docs/STABLE-APIS.html: Added missing documentation listing EGL as a
+ supported stable API, starting from API level 9.download-toolchain-sources.sh: Updated to download the toolchain
+ sources from android.googlesource.com,
+ which is the new location for the AOSP servers.gabi++. More details about it
+ are available in the updated docs/CPLUSPLUS-SUPPORT.html.gnustl_shared that corresponds
+ to the shared library version of GNU libstdc++ v3 (GPLv3 license). See more info at
+ docs/CPLUSPLUS-SUPPORT.htmlLOCAL_CPP_EXTENSION. For
+ example, to compile both foo.cpp and bar.cxx as C++ sources,
+ declare the following:
+ +LOCAL_CPP_EXTENSION := .cpp .cxx ++
The extensions that are available depend on your actual device and GPU drivers,
+ not the platform version the device runs on. The header changes simply add new
+ constants and types to make it easier to use the extensions when they have been
+ probed with eglGetProcAddress() or glGetProcAddress(). The
+ following list describes the newly supported extensions:
GL_OES_vertex_array_objectGL_OES_EGL_image_externalGL_APPLE_texture_2D_limited_npotGL_EXT_blend_minmaxGL_EXT_discard_framebufferGL_EXT_multi_draw_arraysGL_EXT_read_format_bgraGL_EXT_texture_filter_anisotropicGL_EXT_texture_format_BGRA8888GL_EXT_texture_lod_biasGL_IMG_read_formatGL_IMG_texture_compression_pvrtcGL_IMG_texture_env_enhanced_fixed_functionGL_IMG_user_clip_planeGL_IMG_multisampled_render_to_textureGL_NV_fenceGL_QCOM_driver_controlGL_QCOM_extended_getGL_QCOM_extended_get2GL_QCOM_perfmon_global_modeGL_QCOM_writeonly_renderingGL_QCOM_tiled_renderingGL_OES_element_index_uintGL_OES_get_program_binaryGL_OES_mapbufferGL_OES_packed_depth_stencilGL_OES_texture_3DGL_OES_texture_floatGL_OES_texture_float_linearGL_OES_texture_half_float_linearGL_OES_texture_npotGL_OES_vertex_array_objectGL_OES_EGL_image_externalGL_AMD_program_binary_Z400GL_EXT_blend_minmaxGL_EXT_discard_framebufferGL_EXT_multi_draw_arraysGL_EXT_read_format_bgraGL_EXT_texture_format_BGRA8888GL_EXT_texture_compression_dxt1GL_IMG_program_binaryGL_IMG_read_formatGL_IMG_shader_binaryGL_IMG_texture_compression_pvrtcGL_IMG_multisampled_render_to_textureGL_NV_coverage_sampleGL_NV_depth_nonlinearGL_QCOM_extended_getGL_QCOM_extended_get2GL_QCOM_writeonly_renderingGL_QCOM_tiled_renderingEGL_ANDROID_recordableEGL_NV_system_time