aboutsummaryrefslogtreecommitdiffstats
path: root/build
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Support annotations for backward compatibility."Xavier Ducrohet2012-01-272-0/+4
|\
| * Support annotations for backward compatibility.Xavier Ducrohet2012-01-272-0/+4
| | | | | | | | Change-Id: I7f592876b02c8859781a3b52e422dbebfa92ae8d
* | Win SDK: fix build; build find_java for tools.atreeRaphael Moll2012-01-272-5/+9
|/ | | | Change-Id: I400ea2af6f749c1c4b2048a8cb4f7e2f173b5cf4
* SDK: use new find_java.exe in SDK bat filesRaphael2012-01-261-3/+2
| | | | Change-Id: I9f3fc572c3af6d8457a75cebae1aa6a850511afc
* Projects whitelisted for Windows SDK compilation.Raphael Moll2012-01-261-0/+62
| | | | | | | This replaces the list maintained in build/core/main.mk There's a similar change in development.git at Change Ie6f728bee Change-Id: Ifa8111dbae177258e7d6c7f8058ee1d6edbdc8ce
* SDK: remove find_java.exe from SDK.Raphael Moll2012-01-251-1/+2
| | | | | | That's just temporary till I fix the build. Change-Id: I27c5a9556265467d5317f1775703d7401ed1e079
* Windows: "find_java" exe and lib for android.batRaphael2012-01-251-1/+1
| | | | | | | | | | | | | | | | | | This adds a "find_java.exe" that will be packages in SDK/tools/lib. It will be used by android.bat and the other launchers to locate the best version of java to use for our tools (currently we have a find_java.bat that uses DOS commands to achieve something similar but more limited). In addition this creates a static "findjavalib" that is used by the NSIS installer to locate java and get its version (to complain in case we only find a Java 1.4 or lesser). The goal is for the installer to use the same logic as the tools will use to locate the java binary. Change-Id: Ic2efb388135087bab9687c3332882047fd041b1c
* SDK Windows: more ways to find java.Raphael2012-01-232-4/+1
| | | | | | | | | | | | | Also properly redirect command-line output to the parent shell console. This is experimental. This CL removes "android.exe" from the Windows tools and only keeps android.bat. However in a next CL android.bat will be changed to use 'find_java' to locate the best Java exe around (this is currently done in a bat script) Change-Id: I6e5485fdf59fde9838cf929ff333e1c611ea7bb4
* Fix build: disable tests for manifest-merger.Raphael Moll2012-01-151-2/+3
| | | | Change-Id: Ia36cbcc9b1a8d8ac29a54d610310b1d3e7b63223
* Merge "SDK: Enable tests for manifest-merger."Raphael Moll2012-01-131-7/+10
|\
| * SDK: Enable tests for manifest-merger.Raphael Moll2012-01-121-7/+10
| | | | | | | | Change-Id: I48f74d5d3ff5237388915cb3823be5168903d417
* | Upgrade bundled Proguard to version 4.7Tor Norbye2012-01-112-14/+14
|/ | | | | | | | | | | This changeset switches the build script from picking up the platform version of Proguard (in external/) to the new Proguard 4.7 library in the prebuilts/tools repository. (We now also include examples/ and docs/, but exclude src/ and build/ from the 4.7 distribution.) Change-Id: I6fd32cb568252bc80e85ddb7ae821bc02c22711a
* Lint Java source supportTor Norbye2012-01-091-0/+1
| | | | | | | | | | | | | | | | | This changeset adds Java AST support to Lint. There are new interfaces for Java parser and specialized Java detectors. Java detectors can either visit a full parse tree, or they can register interest in specific methods, or Android resource references, or specific AST node types -- or a combination of these. They will then be invoked during an AST visit with the relevant info. This changeset also rewrites the existing detectors that were using String-based pattern checking on Java files to using real AST traversal instead (and it removes the custom Eclipse-specific unused resource detector since the plain one now does the same AST-based analysis that the Eclipse one did.) Change-Id: I4d85f8b785bf41a88dbb29e7017b9c0f588880bc
* Add the Guava library to the toolsTor Norbye2011-12-051-0/+1
| | | | | | | | | | | | This changeset adds the Guava library to ADT and lint. (It is also a prerequisite for the Lombok AST library which is added by a later CL.) This changeset also uses the library in a few simple ways: It replaces some custom I/O and collections code with calls into the equivalent Guava methods, and it also adds the @Beta annotation on the various "API" classes which are not yet stable. Change-Id: I2f50febfa075c32818404e888578a2e1e447d408
* Add Java Classfile supportTor Norbye2011-12-051-0/+2
| | | | Change-Id: Ifcc1d88dabb07dc05b2e5c934743ad52f9b6dc1d
* SDK: temporarily package both android.bat and android.exeRaphael Moll2011-12-011-2/+2
| | | | | | This is temporary as I continue working on android.exe Change-Id: I60d5206455798e70468c66930c6f3723e18c0198
* Add the SdkController app to the tools component.Xavier Ducrohet2011-11-291-0/+4
| | | | | | (cherry picked from commit e4a6ff53047bba14cf1f6770f20f6d9844ec9817) Change-Id: I01d4d3749b9d724e6db07739f29b8cf2138403bb
* SDK: Switch back to android.bat.Raphael Moll2011-11-281-1/+3
| | | | | | | android.exe is not ready for usage yet. The local sdk parser can still detect both. Change-Id: I597f9b5553628b55703aa12282b2808c0b6d1fb1
* SDK: Switch from android.bat to android.exeRaphael2011-11-142-2/+3
| | | | Change-Id: I549340bdaaf78d6d314992ad2b91e9b45f97d2c2
* Remove uix from the sdk build as it was part of layoutopt.Xavier Ducrohet2011-10-261-1/+0
| | | | Change-Id: I802058210b60e20c9cde1cfeda5dc66d273508b5
* Merge "Remove layoutopt; replaced by the more generic "lint" tool."Tor Norbye2011-10-262-6/+0
|\
| * Remove layoutopt; replaced by the more generic "lint" tool.Tor Norbye2011-10-262-6/+0
| | | | | | | | Change-Id: Ia6dc357106aa49fa5c27c6283eac62c4cc19967b
* | Fix ClassNotFoundException on MonkeyRunner startup.Bill Napier2011-10-211-0/+1
|/ | | | Change-Id: Id81b52ade324fde1c7316b522d482bee83ede840
* Static analyzerTor Norbye2011-10-202-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds a static analyzer, "lint", which looks for various potential bugs in Android projects. It has 3 parts: (1) A library which performs the actual static checks. This library is standalone: it does not depend on Eclipse. (Technically the library has two halves: an API half, for use by third party developers to write additional detectors, and an actual implementation of a bunch of built-in checks.) (2) A command line driver, "lint", which runs the static checks and emits any warnings to standard out. This can be thought of as a replacement for the layoutopt tool. (3) Eclipse integration. Lint errors are added to the Problems view as well as shown as editor annotations. There's an options panel for controlling which detectors are enabled. There's also a quickfix for disabling errors directly within the editor and a marker resolution for disabling them via the Problems view. The static checks are run on an XML file right after it has been saved. (This is optional via a toggle on the same preference page as the detector list.) The static checks are also run when you export an APK, and if any fatal errors are found the export is abandoned. (This is also optional via an option). Finally you can run a full lint through the Android Tools menu, and there's also an action to clear all the lint markers there. There's also a new indicator on the layout editor which shows whether there are lint errors on the associated file, and when clicked brings up a dialog listing the specific errors. This changeset also includes a number of checks: * An accessibility detector which warns about images missing contentDescriptions * A drawable selector detector which warns about state lists where not all states are reachable (e.g. it is not the case that only the last item in the list omits a state qualifier) * A detector finding duplicate ids, not just in the current layout but across included layouts (transitively) as well * All the layoutopt ones ported to Java + DOM * Unit tests for the above. The focus here is on getting the infrastructure in place, and it currently focuses on XML resource files and analyzing them efficiently. See the comment in XmlVisitor for details on that. Change-Id: Ic5f5f37d92bfb96ff901b959aaac24db33552ff7
* SDK: fix typo in atreeRaphael Moll2011-10-061-1/+1
| | | | | | it's hprof, not hprov. sigh. Change-Id: I81a5cb107c18a94fa48c5643a57178407693b83c
* Cherrypick 0a6192 from master. do not merge.Xavier Ducrohet2011-09-281-0/+1
| | | | | | Add support to make identity files from the command line. Change-Id: Ieb11a6ac46790f244786a20ede930768946abc91
* Build AVD Manager.exe as part of Windows SDK.Raphael Moll2011-09-192-2/+5
| | | | | | | Also make sure the sdk manager post install will update the AVD Manager as required. Change-Id: I969899adf69f0ed0ddb1ef079451683dd0ce567f
* Specify the full path to atree for the windows.atreeRaphael2011-09-161-1/+2
| | | | | | | | | Somehow the build server doesn't automatically find atree. In a future CL this should be amended to pass the proper OUT_HOST_EXECUTABLE, being careful that it points to the host/linux dir, not the current Windows one. Change-Id: Ibb78a517c33d46454828a5932408108dadbee497
* Use atree for the Windows SDK. Strip binaries.Raphael2011-09-153-50/+129
| | | | | | | | | | | | | | | | This moves the copy/strip/rm logic for the Windows SDK fro mthe patch_windows_sdk.sh to a regular tools.windows.atree. The bash script is still here to invoke atree and do whatever cleanup we might want to do later. This should make it easier to maintain the Windows SDK by providing a structure similar to tools.atree. This change requires build.git Change-Id: I22aae7a8 to have rm/strip support in atree. Change-Id: Ie6c30979454fb71fc1cb26ab3f6c38acd47bae57
* Copy OpenGLES emulation libraries to SDK installation.David 'Digit' Turner2011-09-133-0/+18
| | | | | | | | | | | | | | | | | This patch ensures that the following host shared libraries are copies to $SDK/tools/lib, when building the SDK: - libOpenglRender - libEGL_translator - libGLES_CM_translator - libGLES_V2_translator Note that the Windows DLL must be copied manually in patch_windows_sdk.sh I didn't find a way to make it work using tools.atree. This has been tested to build the Linux, Windows and OS X SDK images. Change-Id: Idae8fe705befbbcc31e8d4ff71998ea0803b32f1
* Add layoutlib_api.jar to sdk/tests/libtests.Brett Chabot2011-09-011-0/+1
| | | | | | Bug 5249969 Change-Id: I47c8672da6ab40a9ecb9e5e64b42d5f5f8924381
* Remove from tools.atree a file I just removed.Xavier Ducrohet2011-08-171-1/+0
| | | | Change-Id: I181655095b2562cf8ddca81678d907ef9233c9bc
* Package in tools/lib all the new libs required by the new SDKManager.Xavier Ducrohet2011-08-171-0/+5
| | | | Change-Id: If430e817dc82b361c275a98ee38ecbc38348e1ce
* Add emulator-arm to SDK, including Windows SDK.Raphael Moll2011-05-043-6/+10
| | | | | | | | | Also fixes the fact the Windows SDK wasn't building emulator-arm nor emulator-x86. SDK BUG: 4377649 Change-Id: I1450a8c73e0078e69ccd28b220bf37ecd0a6fd5c
* swtmenubar library for the SDK.Raphael Moll2011-04-151-0/+1
| | | | | | | | | | | | | | | | | This little EPL library provides a way for the SDK apps to integrate with the Mac menu bar -- that is correctly hook into the About and Preferences menu items. On other platforms (Windows, Linux), corresponding items are added to the provided menu. The library provides both a Carbon and a Cocoa implementation. However the Cocoa implemented is currently commented out since we only link with a Carbon-aware version of SWT.jar. Added a README that explain how to use this. Change-Id: I4b8457f0269946df056b5dd597c7263da1c4e784
* Add more sdk lib tests to sdk build.Brett Chabot2011-03-241-0/+4
| | | | Change-Id: I09946be68f244922de0ad89d970e53165957fa2b
* Revert "build/tools.atree: Move x86-specific changes to tools.x86.atree"Raphael Moll2011-03-242-25/+4
| | | | This reverts commit 253acabecba0d9f649f04499f6dda980fbe7bf49.
* Merge "Revert "Fix WIN SDK build: don't break if emulator-x86 is missing.""Raphael Moll2011-03-241-2/+1
|\
| * Revert "Fix WIN SDK build: don't break if emulator-x86 is missing."Raphael Moll2011-03-231-2/+1
| | | | | | | | This reverts commit ecd2f055e09ebe5a16244b91af1c6f80cae671a0.
* | Add ddmlib-tests to sdk build in a tests/libtests dir.Brett Chabot2011-03-231-0/+1
|/ | | | Change-Id: Idba9f5b5724926209bbb96bfd75e04dbffa3760c
* Fix WIN SDK build: don't break if emulator-x86 is missing.Raphael Moll2011-03-231-1/+2
| | | | | | | | The core issue is why emulator-x86 is missing from the build. Whilst we investigate why, this will unbreak the build. We should revert this once the emu-x86 is built correctly again. Change-Id: I4852490f1fea91ea18a798be28411f5a57a31a89
* build/tools.atree: Move x86-specific changes to tools.x86.atreeDavid 'Digit' Turner2011-03-232-4/+25
| | | | | | | | | | | | | Unfortunately, the latest x86-specific changes to tools.atree break internal Android builds that depend on this file. This change moves the changes to a different file that is only parsed for x86-specific SDK builds (sdk_x86-eng). It depends on https://review.source.android.com/#change,21957 to allow the AOSP build to pick up tools.x86.atree properly. Change-Id: I163d7fb43aa06609d9b0e4bfbaf56311958ea25e
* Revert "DISABLED 2 lines that break the SDK build (bios.bin in sdk/tools.atree)"Bruce Beare2011-03-221-3/+2
| | | | | | | This reverts commit 147e8b73aefa28ef599628c718060450539b6102. The original commit was merged out of sequence - thus the need for the original revert. All dependent commits are now complete so we can put back in place the original change.
* DISABLED 2 lines that break the SDK build (bios.bin in sdk/tools.atree)Raphael Moll2011-03-071-2/+3
| | | | Change-Id: I7d589782bf898d1ce09d0e29108566f7560019f1
* Merge "Add qemu emulator bios files"David Turner2011-03-041-0/+2
|\
| * Add qemu emulator bios filesBruce Beare2011-02-241-0/+2
| | | | | | | | | | Change-Id: I6f526b920f1d671e016ff8a2cde6f11843283e99 Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* | Fix Windows SDK build.David 'Digit' Turner2011-03-041-1/+1
|/ | | | Change-Id: If9f7d3fc61b5969d84a2cda68dc1ad948c21ae88
* x86 and arm emulators have distinct pathsBruce Beare2011-02-241-1/+2
| | | | | Change-Id: Ieb0aa637c44ff2b9d386b6927c0b8564d1b50621 Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* Add common.jar to the SDK build.Xavier Ducrohet2011-02-081-0/+1
| | | | Change-Id: Idf2ce283466dcc92ba8877d4e8166f2d64b319f4
* SDK: fix win-sdk build errors, make future errors fatal.Raphael2011-02-021-3/+7
| | | | | | | Change the shell script to make any error fatal and actually break the build, like it should. Change-Id: Iee86b79c5b12a109ccb92dbc81d586c54ac68b5f