blob: f3d5cfb421c11b70f32f79b3e7983176612fc3df [file] [log] [blame]
David 'Digit' Turner5ad95c52009-05-27 14:20:44 +02001Android NDK ChangeLog:
David 'Digit' Turner979c98c2009-05-20 16:08:19 +02002
David 'Digit' Turner979c98c2009-05-20 16:08:19 +02003-------------------------------------------------------------------------------
David 'Digit' Turnereef791e2010-01-13 16:50:57 -08004android-ndk-r3
David 'Digit' Turner1dbeeca2009-09-24 15:48:44 -07005
6IMPORTANT BUG FIXES:
7
David 'Digit' Turnera78a7752009-10-01 16:38:44 -07008- Fix build/host-setup.sh to execute as a Bourne shell script (again)
9
David 'Digit' Turnerf5862d82009-11-18 18:05:55 -080010- Make target shared libraries portable to systems that don't use the exact
11 same toolchain. This is needed due to differences in libgcc.a implementations
12 between gcc 4.2.1 and 4.4.0. This change ensures that generated machine
13 code doesn't depend on helper functions provided by the Android platform
14 runtime.
David 'Digit' Turnercc230ba2009-10-01 16:44:54 -070015
David 'Digit' Turner27ad1ef2009-10-22 16:59:10 -070016
17IMPORTANT CHANGES:
18
David 'Digit' Turnerf5862d82009-11-18 18:05:55 -080019- Support for hardware FPU. This is through the new 'armeabi-v7a' ABI
20 corresponding to ARMv7-a class devices.
21
22 Note that by default, the NDK will still generate machine code for the old
23 'armeabi' ABI (ARMv5TE based) which is supported by all official Android
24 system images to date.
25
26 You will need to define APP_ABI in your Application.mk file to change this.
27 See docs/APPLICATION-MK.TXT
28
29 More details about ABIs is now available in docs/CPU-ARCH-ABIS.TXT
30
David 'Digit' Turner43809912010-02-05 14:29:11 -080031- Added a new sample static library, named "cpufeatures" to detect
32 CPU Features at runtime. For now, this can be used to detect the
33 availability of ARM Advanced SIMD (a.k.a. NEON) instruction support
34 at runtime in order to provide optimized code paths for specific
35 operations.
36
37 See docs/CPU-FEATURES.TXT for details.
38
David 'Digit' Turnerf5862d82009-11-18 18:05:55 -080039- GCC 4.4.0 is now used by default by the NDK. It generates better code than
40 GCC 4.2.1, which was used in previous releases. However, the compiler's C++
41 frontend is also a lot more pedantic regarding certain template constructs
42 and will even refuse to build some of them.
43
44 For this reason, the NDK also comes with GCC 4.2.1 prebuilt binaries, and
45 you can force its usage by defining NDK_TOOLCHAIN in your environment to
46 the value 'arm-eabi-4.2.1'. For example:
47
48 export NDK_TOOLCHAIN=arm-eabi-4.2.1
49 make APP=hello-jni
50
51 Note that only the 'armeabi' ABI is supported by the 4.2.1 toolchain. We
52 recommend switching to 4.2.1 *only* if you encounter compilation problems
53 with 4.4.0.
54
55 The 4.2.1 prebuilt binaries will probably be removed from a future release
56 of the Android NDK, we thus *strongly* invite you to fix your code if such
57 problems happen.
58
59- Support for OpenGL ES 2.0. This is through the new 'android-5' platform to
60 reflect Android 2.0 (previously the Eclair branch). This is merely a copy
David 'Digit' Turner27ad1ef2009-10-22 16:59:10 -070061 of android-4 that also includes headers and libraries for OpenGL ES 2.0.
62
63 See the sample named "hello-gl2" for a *very* basic demonstration. Note that
David 'Digit' Turnerf5862d82009-11-18 18:05:55 -080064 OpenGL ES 2.0 is currently *not* available from Java, and must be used
65 through native code exclusively.
David 'Digit' Turner27ad1ef2009-10-22 16:59:10 -070066
David 'Digit' Turnera13e8902009-12-09 15:46:07 -080067 IMPORTANT: OpenGL ES 2.0 is not supported in the Android emulator at this
68 time. Running/testing any native code that depends on it thus
69 requires a real device.
70
David 'Digit' Turnercb96cdd2009-11-23 16:12:12 -080071- The NDK build script will now remove installed binaries from the application
72 project's path before starting the build. This ensures that:
73
74 - if the build fails for some reason, a stale/obsolete file is not left in
75 your application project tree by mistake.
76
77 - if you change the target ABI, a stale/obsolete file is not left into the
78 folder corresponding to the old ABI.
79
David 'Digit' Turner27ad1ef2009-10-22 16:59:10 -070080
David 'Digit' Turnereef791e2010-01-13 16:50:57 -080081- Updated the STABLE-APIS.TXT document to clarify the OpenGL ES 1.0/1.1/2.0
82 issues regarding specific devices (i.e. 1.0 supported everywhere, 1.1 and
83 2.0 on specific devices only, need for <uses-feature> tag in manifest).
84
85
David 'Digit' Turner854f8202009-10-14 15:22:11 -070086OTHER FIXES & CHANGES:
87
David 'Digit' Turnerf5862d82009-11-18 18:05:55 -080088- Actually use the awk version detected by host-setup.sh during the build.
89
David 'Digit' Turner854f8202009-10-14 15:22:11 -070090- Added --prebuilt-ndk=FILE option to build/tools/make-release.sh script to
91 package a new experimental NDK package archive from the current source tree
92 plus the toolchain binaries of an existing NDK release package. E.g.:
93
94 build/tools/make-release.sh \
95 --prebuilt-ndk=/path/to/android-ndk-1.6_r1-linux-x86.zip
96
97 will generate a new NDK package in /tmp/ndk-release that contains the most
98 up-to-date build scripts, plus the toolchain binaries from 1.6_r1 (which
99 are not in the git repository).
100
101 Also added the --no-git option to collect all sources from the current
102 NDK root directory, instead of the list given by 'git ls-files'. This can
103 be useful if you don't want to checkout the whole 'platform/development'
104 project from repo and still work on the NDK.
105
106 This change is to help people easily package experimental NDK releases to
107 test and distribute fixes and improvements.
108
David 'Digit' Turner1db46622009-10-15 13:29:06 -0700109- Remove bash-isms from build/tools/build-toolchain.sh. Now it's possible to
110 build it with the 'dash' shell on Debian-based systems (tested on Ubuntu 8.04)
111
David 'Digit' Turnerf7aa22a2009-10-20 15:33:40 -0700112- Remove bash-ism from build/tools/build-ndk-sysroot.sh
113
David 'Digit' Turner898b43f2009-10-20 15:25:40 -0700114- Refresh C library headers for all platforms:
115
116 - make <endian.h> simply include <sys/endian.h>
117 - make <stdint.h> properly declare 64-bit integer types with a C99 compiler
118 - add missing <sys/types.h> to <strings.h>
119 - add GLibc-compatible macro aliases (st_atimensec, st_mtimensec and
120 st_ctimensec) to <stat.h>
121 - add missing declaration for tzset() in <time.h>
122
David 'Digit' Turnerf5862d82009-11-18 18:05:55 -0800123- Added build/tools/download-toolchain-sources.sh, a script that allows you
124 to download the toolchain sources from the official open-source repository
125 at android.git.kernel.org and nicely package them into a tarball that can
126 later be used by build/tools/build-toolchain.sh to rebuild the prebuilt
127 binaries for your system.
128
129- Updated build/tools/build-toolchain.sh to support the tarballs generated
130 by download-toolchain-sources.sh with the --package=<file> option. This
131 also builds both gcc 4.2.1 and 4.4.0, adding support for armeabi-v7a to
132 gcc 4.4.0.
133
David 'Digit' Turner1dbeeca2009-09-24 15:48:44 -0700134-------------------------------------------------------------------------------
David 'Digit' Turner902706a2009-08-14 20:51:58 +0200135android-ndk-1.6_r1
David 'Digit' Turnerfadee812009-06-29 12:28:04 +0200136
David 'Digit' Turnereee16752009-07-29 19:04:44 +0200137IMPORTANT BUG FIXES:
138
David 'Digit' Turnerfadee812009-06-29 12:28:04 +0200139- Fix build/host-setup.sh to:
David 'Digit' Turnerd6ec1722009-06-29 16:13:25 +0200140 * execute as a Bourne shell script
David 'Digit' Turnerfadee812009-06-29 12:28:04 +0200141 * remove unused host gcc dependency
142 * improve Windows host auto-detection
David 'Digit' Turnerd6ec1722009-06-29 16:13:25 +0200143 * add GNU Make version check
David 'Digit' Turnereee16752009-07-29 19:04:44 +0200144 * add Nawk/Gawk check
David 'Digit' Turnerd6ec1722009-06-29 16:13:25 +0200145 * ensure that the script is run from $NDKROOT as build/host-setup.sh
David 'Digit' Turnereee16752009-07-29 19:04:44 +0200146 * add --help, --verbose, --no-awk-check and --no-make-check options
David 'Digit' Turnerfadee812009-06-29 12:28:04 +0200147
David 'Digit' Turnera046aad2009-06-29 16:33:30 +0200148- Properly add sysroot library search path at build time. This makes a line
149 in Android.mk like:
150
151 LOCAL_LDLIBS := -lz
152
153 Actually work correctly, instead of having the linker complaining that it
David 'Digit' Turner7ec528c2009-07-22 13:34:54 +0200154 could not find the corresponding libz.so library. Also clear LOCAL_LDLIBS
155 in $(CLEAR_VARS) script.
David 'Digit' Turnera046aad2009-06-29 16:33:30 +0200156
David 'Digit' Turnereee16752009-07-29 19:04:44 +0200157
David 'Digit' Turner1dbeeca2009-09-24 15:48:44 -0700158IMPORTANT CHANGES:
David 'Digit' Turnereee16752009-07-29 19:04:44 +0200159
160- The 'sources' directory is gone. The NDK build system now looks for
161 $(APP_PROJECT_PATH)/jni/Android.mk by default. You can override this with
162 the new APP_BUILD_SCRIPT variable in Application.mk
163
164 For example, the 'hello-jni' sample uses the following files:
165
166 apps/hello-jni/project/jni/Android.mk
167 apps/hello-jni/project/jni/hello-jni.c
168
169 The 'apps/<name>' directory is still needed in this release though.
170
171- Change LOCAL_CFLAGS / LOCAL_CPPFLAGS to work as in the full Android build
172 system. This means that:
173
174 - LOCAL_CFLAGS is now used for *both* C and C++ sources (was only for C)
175 - LOCAL_CPPFLAGS is now used for C++ sources only (was for both C and C++)
176 - LOCAL_CXXFLAGS is used like LOCAL_CPPFLAGS but is considered obsolete.
177 (will disappear in next release)
178
179 Also fixed APP_CPPFLAGS / APP_CFLAGS / APP_CXXFLAGS correspondingly.
180
181- Rename build/platforms/android-1.5 to build/platforms/android-3 to match
182 the Android API level instead of the marketing speak.
183
184 Also add a new build/platforms/android-4, and make the build system select
185 which platform to use based on the content of the project file named
186 $(APP_PROJECT_PATH)/default.properties.
187
188- Add OpenGL ES 1.x headers and libraries to the android-4 stable APIs.
189 (NOTE: they are *not* available for android-3)
190
191 Also provide a small port of the "San Angeles Observation" demo to show
192 how to make a simple Android application that uses them.
193
194
195OTHER FIXES & CHANGES
196
David 'Digit' Turnera046aad2009-06-29 16:33:30 +0200197- Generate thumb binaries by default.
198
David 'Digit' Turner67d8edd2009-06-29 16:44:31 +0200199- Add support for LOCAL_ARM_MODE in Android.mk.
200
201- Add support for the '.arm' suffix in source file names to force the
202 compilation of a single source in arm (32-bit) mode.
203
David 'Digit' Turnera046aad2009-06-29 16:33:30 +0200204- Generate proper unoptimized versions of binaries when APP_OPTIM := debug
205
David 'Digit' Turner6c01aba2009-06-29 16:48:56 +0200206- Add support for LOCAL_C_INCLUDES in Android.mk
David 'Digit' Turnera046aad2009-06-29 16:33:30 +0200207
David 'Digit' Turner7f0688d2009-07-20 15:38:48 +0200208- Fix compilation of assembler files (e.g. foo.S)
209
David 'Digit' Turnerfadee812009-06-29 12:28:04 +0200210-------------------------------------------------------------------------------
David 'Digit' Turnerfdc5ea22009-07-24 17:56:51 +0200211android-ndk-1.5_r1 released.