aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-07-14Fixing problem with spaces in ndk-build arguments.android-sdk-tools_r7android-adt-0.9.9android-adt-0.9.8tools_r9tools_r8tools_r7froyo-plus-aospAdrian Taylor
ndk-build accepts command-line arguments which are passed to the underlying "make" process. For example: ndk-build EXTRA_CFLAGS=-DDOG Previously, these extra arguments could not contain spaces: ndk-build EXTRA_CFLAGS="-DDOG -DCAT" # fails This change fixes that issue. Change-Id: I907d6dbb73db1608f1628c930649564a2aa39456
2010-06-25cpu-features.h only exists for ARMBruce Beare
Change-Id: I515c631421a83db21fad63fc8a394e927f028adf Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
2010-06-23reconcile with open-source snapshotThe Android Open Source Project
Change-Id: I009dadf38c3f3a8d49ff75a1dd489f34441361b0
2010-06-17ndk-build: fix Cygwin make auto-detection.android-cts-2.2_r8android-cts-2.2_r7android-cts-2.2_r6android-cts-2.2_r5android-cts-2.2_r4android-cts-2.2_r3android-cts-2.2_r2android-cts-2.2_r1froyoDavid 'Digit' Turner
Change-Id: I695ea8e09e55a48ddb23f35cd26c91e96966cb6a
2010-06-09Don't Include cpufeatures in sim-engandroid-sdk-2.2_r2android-2.2_r1.3android-2.2_r1.2android-2.2_r1.1android-2.2_r1android-2.2.3_r2.1android-2.2.3_r2android-2.2.3_r1android-2.2.2_r1android-2.2.1_r2android-2.2.1_r1froyo-releaseBrian Muramatsu
Bug 2713199 ...to fix the build. Change-Id: If5deba8c3b054b0d1085604d98a60f2b08b5f2a2
2010-06-09Merge "Include cpufeatures in ndk/Android.mk" into froyoBrian Muramatsu
2010-06-08Merge "ndk-build: On Windows, check that a Cygwin-compatible GNU Make is ↵David 'Digit' Turner
being used." into froyo
2010-06-08ndk-build: On Windows, check that a Cygwin-compatible GNU Make is being used.David 'Digit' Turner
It looks like that many NDK developers on Windows have some sort of other GNU Make program installed in their path (e.g. because they installed another IDE or Developer Environment), and that conflicts badly with our build scripts. Also fix a tiny bug where the debuggable flag was lost when building the modules. Change-Id: I2d26131b08cf19959122abdefec9a22955d2a89c
2010-06-08Include cpufeatures in ndk/Android.mkBrian Muramatsu
Bug 2713199 Include the cpufeatures Android.mk since this library will be needed by CTS to test the Build.CPU_ABI constants. This approach is favored over putting the include line in the CTS tests Android.mk. Change-Id: I350cdb82351174f6dd91b7f77fb8e0ece00a9090
2010-06-08Fix simple doc typo (LOCAL_DEFAULT_CPP_EXTENSION => LOCAL_CPP_EXTENSION)David 'Digit' Turner
Change-Id: I993a974c6ce42114441153c384536cb3dcbfed87
2010-06-07Set optimization mode to 'debug' automatically for debuggable applications.David 'Digit' Turner
As a convenience to NDK users, many who are not used to debugging native code at all and will find that gdb cannot set breakpoints properly or dump local variables by default strange. This also moves the computation of APP_MANIFEST and APP_DEBUGGABLE to add-application.mk which is just more logical. Change-Id: Ia801f3aeda6a87d91d92bfc618c2620afd1470aa
2010-06-07ndk-gdb: fix to work properly with cygwin path madness.David 'Digit' Turner
Change-Id: Ia7e750f9042d4ed93f6cb8193dfc5d4f67857c17
2010-06-04ndk-gdb: fix to work properly with OS X's BSD awkDavid 'Digit' Turner
"gensub()" is a GNUAwk-ism that should not be used. Change-Id: I2df89efc165c84034594b98327921f9461188a76
2010-06-02Warn about unsupported source file extensions in LOCAL_SRC_FILES.David 'Digit' Turner
The previous behaviour was to silently ignore these source files, which confused several NDK users. Change-Id: I0decb18af9ee6d1c210813d2046e7d3f71c20763
2010-06-01Place generated binaries under $PROJECT/obj/ndk/ instead of $PROJECT/bin/ndk/David 'Digit' Turner
Change-Id: Ia76b2aa2cab588b89b2bbaa09ef7c7046491f33f
2010-06-01Make the AndroidManifest.xml optional when using ndk-build.David 'Digit' Turner
Several people have reported they used the NDK to generate static libraries only and that they don't have a manifest when doing so (the old "make APP=<name>" method worked fine). Change-Id: I4bf4ea0708e954e253b7ed65a8680887031d5347
2010-06-01ndk-gdb: check target device API level + proper filtering of adb shell output.David 'Digit' Turner
Change-Id: I2472ac149e6b6a435a864e7a10109306322b512c
2010-06-01ndk/build/tools: fix improper mktemp usageDavid 'Digit' Turner
Change-Id: I592b025ebdf2181a80f5c7014fb40d3cdcd8e2ca
2010-05-14Fix C headers for all platforms.David 'Digit' Turner
See docs/CHANGES.TXT for a detailed list of changes. These are mainly cosmetic and to reflect new declarations for android-8. Change-Id: I152dcee6ae6b1fd9368fe5d468443dd9fee459db
2010-05-10Move samples from apps/<name>/project to samples/<name>android-sdk-2.2_r1David 'Digit' Turner
Update documentation accordingly Note: removes obsolete unit tests under apps/unit-tests/ + fix --verbose option in build/tools/rebuild-all-prebuilt.sh + add NX support to x86-4.2.1 toolchain config file + update .gitignore Change-Id: I3c8e6185ad41f103a425387d7618ab3e73182fdc
2010-05-07Fix windows NDK build - add runtime check for Cygwin 1.5David 'Digit' Turner
Change-Id: I73107f2f72ec3b3486e59f80b942f041cf65b02d
2010-05-06ndk-gdb: Improve detection of common user errors. Clarify some error messages.android-sdk-tools_r6David 'Digit' Turner
Change-Id: If72f42324848823a01cffcad56c304b5c7e46d7d
2010-05-06Clarify Windows requirements for the NDK release.David 'Digit' Turner
We only support Cygwin 1.7 at this point, which is not completely compatible with 1.5 (now obsolete) due to a different way to implement symbolic links (among other things). Change-Id: Ib321bdbbad50cde24eb1e4ccbeec8fdf8d0aca86
2010-05-03Enable the NX (No Execute) security feature for all NDK-generated machine ↵David 'Digit' Turner
code on ARM. Change-Id: Ic25be4e8a83e741040c7944251688dcdcc97838b Question: shall we enable it for x86 too?
2010-05-03Fix --package option processing in build/tools/download-toolchain-sources.shDavid 'Digit' Turner
Also fix common option processing on OS X. Its 'expr' command works slightly differently from Linux. Change-Id: I7d79b8cea1b14eb8f0efe67f5fb08db342bbbf84
2010-05-03Add <android/bitmap.h> / libjnigraphics.so to it.David 'Digit' Turner
Change-Id: Ib33601fd74e097edacf2dbe3e73d75153cd65c36 Also contain a new sample under samples/bitmap-plasma. This one cannot be built with 'make APP=<name>' so use 'ndk-build' instead.
2010-05-01Add android-8 sysroot to the NDK. For now, this is a simple copy of android-5.David 'Digit' Turner
Later patch will add <android/bitmap.h> / libjnigraphics.so. Change-Id: I0a0095710d25d2dabfa56072f78211517c01b9ec
2010-04-30Merge "Add --start, --launch=<name> and --launch-list options to ndk-gdb." ↵David 'Digit' Turner
into froyo
2010-04-29Add --start, --launch=<name> and --launch-list options to ndk-gdb.David 'Digit' Turner
Move all awk scripts to build/awk/ and rework them a bit Add build/awk/xmlparser.awk to parse XML files into something that is easier to process with awk. Its output is used by several scripts now (extract-debuggable.awk, extract-package-name.awk and the new extract-launchable.awk). Also update documentation. Change-Id: I50507abbb2b438aeea25a4e0521e6bf69ad86603
2010-04-27Fix rebuild-all-prebuilt.sh, and add --try-x86 option.David 'Digit' Turner
--try-x86 is used to enable the build of the x86-4.2.1 toolchain. Change-Id: Ie018d5c1e2ebb082058f522058a643a00825b70a
2010-04-27Merge "Support .s raw assembly source files in LOCAL_SRC_FILES too." into froyoDavid 'Digit' Turner
2010-04-27Support .s raw assembly source files in LOCAL_SRC_FILES too.David 'Digit' Turner
Change-Id: Id17875ebc6dd4e9719b7ad179921e44a5246f596
2010-04-27Allow <cpu-features.h> to be properly included from C++David 'Digit' Turner
Change-Id: I25086bd56550cabf3153524cfed35ee7b9256680
2010-04-26Rework toolchain binaries build scripts.David 'Digit' Turner
Remove build-toolchain.sh and now provide rebuild-all-prebuilts.sh Change-Id: I558c95d1667d1283be9b3a075ad0565e05da0dc5
2010-04-26Add ndk-gdb script to the NDK.David 'Digit' Turner
This is a helper script used to launch a native debugging session. To use it, follow these steps: 1. Make your application debuggable 2. Build the machine code with 'ndk-build' (make APP=<name> is not supported) 3. Build the package with ant or the ADT Eclipse plugin 4. Install it on your device/emulator 5. Launch it 6. Run 'ndk-gdb' from your application project directory. Change-Id: Ie3b0557e70cefa0080075a34ad0ca46bebef3c42 NOTE: To work properly, a modified gdbserver binary must be used (one that binds to Unix sockets instead of TCP ones). Patch upcoming.
2010-04-15Simplify build system with the 'ndk-build' script.David 'Digit' Turner
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
2010-04-09Make APP_MODULES optional in Application.mk.David 'Digit' Turner
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
2010-04-09NDK snapshot from development/ndk/The Android Open Source Project
Change-Id: I154f2fd3828ffd937c82410f5f9995402d7be15e
2010-04-08Merge "Remove annoying compiler warning when building C++ sources using ↵David 'Digit' Turner
va_list types." into froyo
2010-04-08Remove annoying compiler warning when building C++ sources using va_list types.David 'Digit' Turner
Change-Id: I0da78a785cd3b045b38beb2ff91d784c5e128c3a
2010-04-08Extract the debuggable flag from the application's manifest andDavid 'Digit' Turner
only copy the gdbserver binary to $PROJECT/libs/<abi> if it is set to TRUE. Change-Id: I06bc0c0c7993d93d7ee22b9b055b10ad8ef3cd86
2010-04-08Perform auto-detection of host platform in build scripts.David 'Digit' Turner
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
2010-04-07Add two awk scripts that will be used by the ndk debugging helper scripts.David 'Digit' Turner
Change-Id: I9b1d6f39fd33f5b7cbc2e875a292f5901780ce26
2010-04-06Copy the gdbserver binary from the toolchain to the proper locationDavid 'Digit' Turner
for debuggable applications. This ensures that the binary will be embedded in the final .apk, unpacked by the PackageManager into /data/data/<package>/lib and later invokable through the 'run-as' tool. Change-Id: Ib1efc832dc02926204b05836b90f78adb9c3365b
2010-04-06Merge "Refine download function to support ftp, ssh with <machine>:<path> ↵David 'Digit' Turner
and file://<path>" into froyo
2010-04-05Refine download function to support ftp, ssh with <machine>:<path> and ↵David 'Digit' Turner
file://<path> This is a preliminary change to further toolchain build scripts modifications Change-Id: I47758a23d916bc59f4b60eca83bcc6d6c2332203
2010-04-05Properly select the toolchain based on the ABIs we want to build for.David Turner
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
2010-04-05Fix APP parsing.David Turner
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.
2010-04-02Move common functions from build tool scripts to ndk-common.shDavid 'Digit' Turner
Also add build/tools/build-ccache.sh to rebuild ccache prebuilt binary (for future use in the NDK to speedup rebuilds). Change-Id: I10373c0d3f0e42b768c7e28d45e73e182fd6a299
2010-04-02Remove obsolete script from NDK build process.David 'Digit' Turner
After this change, we no longer require running a shell script during the build process. This makes us less dependent on Cygwin and is a small step towards integrating the NDK into the SDK properly. Change-Id: I62d7e200b47c8138abb39aaf9eb0f52d3f124bdf