History log of /ndk/build/core/build-all.mk
Revision Date Author Comments
62e94189bb3a26ea1f31e8e0cf921d9cb9b5c91e 05-Jan-2012 David 'Digit' Turner <digit@google.com> cygwin: better auto dependency detection.

This patch fixes the way we convert GCC-generated dependency
files from Windows to Cygwin path conventions.

The old script assumed that the cygwin drive prefix was always
"/cygdrive" and didn't support drive-less mounts at all. In these
cases, the converted dependency files didn't include valid paths,
making the dependency detection not work (i.e. updating a header
would not force the rebuild of the source files that include it).

We fix this by parsing the cygwin mount command and generating
a special temporary shell script that can properly make the
conversion of dependency files in all cases.

Change-Id: Ic557bad63873817cf2c19338eaffc10d8ea4e6e8
25afde53541e5d84e6227504838972d72cbfa99b 25-Nov-2011 David 'Digit' Turner <digit@google.com> ndk-build.cmd: Fix automatic dependency issue.

This patch fixes a bug that happens only in native Windows builds
(i.e. using ndk-build.cmd): the auto-generated dependency files
were ignored by the build system.

The directories listed in ALL_DEPENDENCY_DIRS can have a trailing
slash at the end. On native Windows, the GNU Make wildcard command
doesn't recognize double slashes in patterns and thus returns an
empty string.

Fix this by getting rid of the trailing slash when it is there.

Change-Id: I4428d72bd87b27287513d08aca473ff045f2cbf6
ad1afc5e66ab40201947a3178eba975515b0d73c 14-Oct-2011 David 'Digit' Turner <digit@google.com> Add win32 native build support

This patch is adds support to "native" (i.e. Cygwin-less) Windows
NDK build through the new 'ndk-build.cmd' Windows shell script.

Just call it from the cmd.exe command-line, when in your project
path. The script takes the same arguments than 'ndk-build'.

+ Adds the source of a new tiny Windows-specific command-line
"echo" program. The reason for this is that the 'echo' that
comes with cmd.exe is too weird and will not work properly
when invoked from make (e.g. it can't deal with double-quoted
strings properly: it will print the double-quotes in the
output).

+ build/tools/build-host-toolbox.sh: new script to rebuild the
'echo' program on Windows. The idea is that the 'toolbox' may
contain other command-line programs like "cp" or "mkdir" in
the future, to avoid relying on the not-so-robust cmd.exe
versions of these commands (del, md, xcopy), if necessary.

+ Make build-host-prebuilts.sh call build-host-toolbox.sh
when generating Windows binaries, and package-release.sh
unpack the corresponding archive when generating the
Windows packages.

+ build-funcs.sh can now be used to build host binaries too.

+ docs/CHANGES.html: document new native win32 build support.

Change-Id: I4d30f6c6532ae84deb95e7e5f595af76b97d9257
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
7a6b17ae18e87e522a4449eff37800421a8bb6ab 22-Sep-2010 David 'Digit' Turner <digit@google.com> Add prebuilt static library support.

This is done with the new PREBUILT_STATIC_LIBRARY include script.

+ Simplify prebuilts dependencies by removing LOCAL_PREBUILTS.
You can now simply list your prebuilts into LOCAL_STATIC_LIBRARIES
and/or LOCAL_SHARED_LIBRARIES.

+ pretty-print paths during install build commands.

Change-Id: I4aca605fc6f818d9669343c6aefc419a78ee0df2
6a8948dccbcde263f30c9d83ba09de47a2e19395 10-Jul-2010 David 'Digit' Turner <digit@google.com> Add support for module imports.

See docs/IMPORT-MODULE.TXT for details. You can now define NDK_MODULE_PATH
in your environment to list directories that will be searched when the new
function 'import-module' is called.

The goal is to avoid hard-coding third-party module paths into your
project tree.

Change-Id: I6f260299876d29e0492109b86824acab318e104e
4013467963a9051585d23d6a0b157685605d2aa6 09-Jul-2010 David 'Digit' Turner <digit@google.com> Add support for prebuilt shared libraries.

Change-Id: I56de52c9206741c8300fb84e92602f75765f44a4
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