History log of /ndk/build/core/main.mk
Revision Date Author Comments
18f80b1624fdf4491c674986564f07e486e06c75 03-Jan-2013 Andrew Hsieh <andrewhsieh@google.com> Fix ndk-build and ndk-build.cmd to observe NDK_HOST_32BIT

Also allow NDK_LOG=0 to disable logging, and NDK_HOST_32BIT=0
to disable force-32bit.

Change-Id: I58d87d5ca1fe73eb33c88fee75418849641d2c5a
5b65625ab0a6a50f332b9970a8cca513d9775788 08-Oct-2010 David 'Digit' Turner <digit@google.com> Fix ndk-gdb and add --delay=<seconds> option.

Fix ndk-gdb to _not_ start the activity unless --start or --launch is used.

Add a new option --delay=<seconds> to change the wait delay between the
launch of an activity and its attachement with gdbserver. The default delay
is also changed from 1 to 2 seconds.

Document the system libraries update.

Change-Id: Ia7e8c47221e3741bdc2688e750dae366c5426e67
6724aaa2876f40ad270823bc933edf7552f67436 15-Apr-2010 David 'Digit' Turner <digit@google.com> Simplify build system with the 'ndk-build' script.

There is no need to modify $NDK/apps anymore to build an application.

Now all you need to do is launch $NDK/ndk-build from the project path,
or any of its sub-directory, and the build scripts will handle everything
automatically.

You can also place an optional Application.mk under $PROJECT/jni, but
by default the NDK will build all modules listed in your Android.mk for
the 'armeabi' ABI.

+ Update the documentation

Change-Id: I235c4051d7f00f37d50e6b4bb0e796c0bdaa001d
419390feceb0c39fd3cad8ec6e5253fb74c946a5 09-Apr-2010 David 'Digit' Turner <digit@google.com> Make APP_MODULES optional in Application.mk.

If APP_MODULES is defined, now computes the transitive closure of module dependencies automatically.

+ cleanup some of the build scripts
+ add module database management functions for future work

Change-Id: I4ae14d8a3cbd2240e1efec27c55f8314b618c4d9
a1d764b5d215601e007e01186de0be0db51df900 09-Apr-2010 The Android Open Source Project <initial-contribution@android.com> NDK snapshot from development/ndk/

Change-Id: I154f2fd3828ffd937c82410f5f9995402d7be15e
35f944d26f33fff3e59ab449c991b18260a5fa0b 08-Apr-2010 David 'Digit' Turner <digit@google.com> Perform auto-detection of host platform in build scripts.

This removes build/host-setup.sh and the generated file out/host/config.mk

Also: fix a bug that copied gdbserver into release projects, not debug ones.

Change-Id: Ie3641dadb6148b1a671534d9bbb5e587cd742845
85459717ff102979c1b98f65d23a37538d177d22 05-Apr-2010 David Turner <digit@dhcp-172-28-237-78.par.corp.google.com> Properly select the toolchain based on the ABIs we want to build for.

Before this patch, it was not possible to use the x86-4.2.1 toolchain
without explicitely selecting it with NDK_TOOLCHAIN. Now if all toolchains
are installed, a simple line like the following just works:

APP_ABI := armeabi armeabi-v7a x86

Change-Id: I58ff6dda09a6d1406a83a45af542bba35a3caa40
ec23dc8c1c9510334c7ca33da421adc18e7fa106 05-Apr-2010 David Turner <digit@dhcp-172-28-237-78.par.corp.google.com> Fix APP parsing.

This change modifies the build script so that only the
Application.mk/Android.mk files of the applications listed
by APP are actually parsed.

Also, the error messages displayed when APP is empty or
when it is malformed has been improved.

+ Remove installed binaries when "make APP=<name> clean"
is called.
654c27f00dbcbbb06c57c5d10a4bbb76695f21b4 13-Jan-2010 The Android Open Source Project <initial-contribution@android.com> android-2.1_r1 snapshot
dc5eb127f374f3e4d2c08433bf9d2e220007c05d 24-Nov-2009 David 'Digit' Turner <digit@google.com> Cleanup installed binaries before the NDK build begins.

Ensures that no stale/obsolete shared libraries are left in the
application's project path before the build.

Also fix a minor typo that made the ABI selection process not
work properly in certain cases.
cc049d5a779a6d64ba1dcd29a1ff031ad4891d47 19-Nov-2009 David 'Digit' Turner <digit@google.com> Add support for armeabi-v7a to the NDK.

This patch modifies the NDK build scripts to support the 'armeabi-v7a' ABI.
(For the record, it corresponds to Thumb-2 + FPU support, to speed up native
code on certain devices like the Droid).

To build for this ABI, the Application.mk file should use a line like:

APP_ABI := armeabi-v7a

It is also possible to build for both 'armeabi' and 'armeabi-v7a' by using:

APP_ABI := armeabi armeabi-v7a

This will result in the generation of two distinct shared libraries that both
will be copied to the final application package.

This is dependent on having GCC 4.4.0 prebuilt binaries under
build/prebuilt/<host>/arm-eabi-4.4.0, since gcc 4.2.1 does not support
this new ABI.

Note that this also changes the NDK to use gcc 4.4.0 by default, unless
the user defines NDK_TOOLCHAIN to 'arm-eabi-4.2.1' in its environment to
switch back to the previous one.
f600a6395d24f214ccb9022d807360348947e295 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
19f4e359965dd2c7f1b215e699f152fb7946f1f5 21-Oct-2009 David 'Digit' Turner <digit@google.com> Allow applications to target future API levels

E.g. if an application's default.properties targets android-10
then the build system will default it to the highest supported
API level found in build/platforms (e.g. android-4 currently).
25f47bc03dbe536d2fb4a231316a38a2d0a8ee59 29-Jul-2009 David 'Digit' Turner <digit@google.com> Look for Android.mk in $(APP_PROJECT_PATH)/jni by default.

This gets rid of the 'sources' directory and allows all sources
of a given Android application to be in the same directory tree
without using a symlink trick.

Note that apps/<name>/Application.mk is still required though.
A later release of the NDK will get rid of it too, but the change
is too drastic for the upcoming release.

The change moves various source files from sources into their
app/<name>/project/jni directory as well.

The whole documentation is updated to reflect the change.
5815d77ccd68a5f6f8f7d6f4fa5dfbd05828d33f 29-Jul-2009 David 'Digit' Turner <digit@google.com> Add android-4 sysroot and use project's default.properties to get the right target.

Note that for now, android-4 contains the same things than android-3.
Another patch will add OpenGL ES headers and libraries to it.
61697d20c6e38ce007db1243aebf0a89836c440e 27-Jul-2009 David 'Digit' Turner <digit@google.com> Fix LOCAL_CFLAGS/CPPFLAGS handling to match full Android build system.

Also improve BUILD_SYSTEM directory detection logic in build/core/main.mk
69545a3024ba0087e1993fc8a80e01610b3a0774 24-Jul-2009 David 'Digit' Turner <digit@google.com> Rename ndk/build/platforms/android-1.5 into android-3 to match API levels
a85825c5a2b3427e0361c5bf42e9df5c50f58b66 14-May-2009 David 'Digit' Turner <digit@google.com> Fix bad automatic dependency computations
ae38562d764e4c3541b2c07732274f0c1115fe48 14-May-2009 David 'Digit' Turner <digit@google.com> Fix bad dependency between generated shared libraries and the corresponding installed module.
Also fixes the "make clean" target by the way.
48ef1859ef0bb25547e5aceeedb9b175c6193bc5 07-May-2009 David 'Digit' Turner <digit@google.com> Initial import of new NDK into donut tree