aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks
Commit message (Collapse)AuthorAgeFilesLines
* Add renderscript support to the Ant build system.Xavier Ducrohet2011-01-185-4/+168
| | | | Change-Id: Iba1c956d33725716923da89b788f7f8d14524e41
* Add Ant version check in setup task.Xavier Ducrohet2010-12-081-0/+42
| | | | Change-Id: Id2237ae2fd64a1ccae5b1a1957099c218cdaf9a5
* Fix external jar support when building with proguard.Xavier Ducrohet2010-10-251-20/+21
| | | | Change-Id: I3dafb284770f475d70a212cbe22cdae6bff36ff7
* Merge "Project property cleanup."Xavier Ducrohet2010-10-151-12/+1
|\
| * Project property cleanup.Xavier Ducrohet2010-10-151-12/+1
| | | | | | | | | | | | | | | | | | | | | | Remove obsolete sdk-location on project update, don't use it as backup location anymore (main_rules.xml won't work with it anyway). Remove the old application.package properties since older platforms will use the new rules anyway. Change-Id: I5a5ec3d1289cf793dd0f98fb778bd84086976c52
* | Check for platform-tools presence.Xavier Ducrohet2010-10-131-0/+11
|/ | | | Change-Id: Ieaf6e42bc67829b01ebb0fa799bc615f85fc1a6d
* In some cases release build is actually a debug build.Xavier Ducrohet2010-09-291-5/+25
| | | | | | | If the manifest sets debuggable=true then this override the release build to be a debug build instead. Change-Id: Ib66bf9053cecfa7c19a02cefdbf187a20bd6da37
* Use proguard for release builds through Ant.Xavier Ducrohet2010-09-245-41/+116
| | | | | | | | | | | | | | | This is only activated if default.properties contains a property "proguard.config" with the name of a proguard config file. Some clean-up in the Ant tasks and in the name of the properties used by the rules and the custom tasks to make them clearer. Added a new test app with a project using a jar file as well as a library using a jar file. Change-Id: Ia8f4d873025993d454c0a484e61d47ae679ea79c
* Display error for missing required attributes in ant tasksXavier Ducrohet2010-09-121-0/+8
| | | | Change-Id: I4a9babcda7a541a7defd226e36bb8f74f88853ed
* Support for debug build in Ant.Xavier Ducrohet2010-09-024-238/+66
| | | | | | | | | | | | | "ant debug" now automatically insert debuggable=true in the manifest. Also cleaned up a lot of the Ant stuff (versioned Ant rules, support for importing different rules files based on compatibility computation). This is rendered moot with our new single aapt executable. The ant rules will now evolve alongside aapt, and there will not be mismatch between the two. Change-Id: Iaf309f40e6ab4a0204dfbdb428cfb569bf5ca3b3
* Ant: ensure SDK path ends with dir separator.Raphael Moll2010-08-102-19/+28
| | | | | | SDK Bug: 2906094 Change-Id: Ic4053c97c8dd5a32a2276e22644b5e09c91d52f0
* Ant support for library depending on other libraries.Xavier Ducrohet2010-06-291-26/+138
| | | | Change-Id: Ief8261327f7917d158fc8ad4dd4e4c3d322bbce2
* Support for aidl files in library project in the Ant build system.Xavier Ducrohet2010-06-283-2/+135
| | | | Change-Id: I3e36e6f4db60d3d979b24c2b88d496f453394127
* Move the exceptions out of ApkBuilder.Xavier Ducrohet2010-06-221-3/+3
| | | | Change-Id: I66e767cbd4f3f3521bb994b281140a433f63291f
* New ApkBuilder class.Xavier Ducrohet2010-06-221-102/+95
| | | | | | | | | | | this is meant to replace the one previously in apkbuilder.jar and the one in ADT, while being part of the public sdklib API so that other tools can use it if needed (to deprecate the command line version) Another changelist will rename the ApkBuilder classes inside ADT to make things less confusing. Change-Id: I13f2a09d8d507a85be33af3fe659d175819cb641
* Move Apkbuilder into sdklib.Xavier Ducrohet2010-06-163-5/+3
| | | | Change-Id: I88f7e6101b8c03157a320a6c9d9b7424ffbdc7f5
* Refactoring of ApkBuilder to prepare for its integration into sdklib.Xavier Ducrohet2010-06-151-11/+11
| | | | Change-Id: If75b9262126813769537435546be0ad4e4648ac2
* ADT: Multi-apk export action.Xavier Ducrohet2010-06-151-2/+1
| | | | | | | | | | | This is a first step with no UI. Still needed: - handling signing - add control to how ApkBuilderHelper handles errors to prevent output to the console during export. Change-Id: Id44d708c2b0f5bb52508c33a241bbe921b4297e1
* Export project creation.Xavier Ducrohet2010-06-081-10/+11
| | | | Change-Id: I22b5a1c7225425b387e1fd5b6769b5e9249b7c88
* Rework the multi-apk log file(s).Xavier Ducrohet2010-06-041-163/+193
| | | | | | | | | | | | | Move away from a single log file used for: - tell the dev what file was created with that properties - used to increment minor versionCode for specific apks - used to detect config change from what export to another. There are now three files for each case, with the last two using a never changing filename. Only a new build log file is created at each export. Change-Id: Ia9b464e6ffefe24463a537ee48d0a20a7a004af7
* Add support for locale filters in multi-apk export.Xavier Ducrohet2010-06-021-1/+2
| | | | Change-Id: Ia3faf7a6818de0e579cf491b139a41f4d379935e
* Add support for soft properties in multi-apk export.Xavier Ducrohet2010-06-011-99/+157
| | | | | | First property is split by density. Change-Id: If68bc520ba4014bbd4b144e71d54bc1161a56e2d
* Implement mechanics for supports-screens in the multi-apk export.Xavier Ducrohet2010-06-011-1/+1
| | | | | | | | - detect overlap (apk1 is small, large; apk2 is normal) - detect non-strictly different supports-screens - compareTo orders based on support for higher size. Change-Id: I76251e10c83f1508c9a5b83b638a47b1c0922693
* New log format for multi-apk export.Xavier Ducrohet2010-05-281-16/+2
| | | | | | | Also added support for supports-screens in the log, and fixed supports-screens parsing. Change-Id: I702fb511eb4da0094917d7c0d9fe792f582adeb2
* Add Manifest checks for multi-apk export.Xavier Ducrohet2010-05-271-1/+4
| | | | Change-Id: Ifd0bb892582888b7b6ef6ceb634871c1fb24d6e5
* Refactored most of the multi-apk export out of the ant task into sdklib.Xavier Ducrohet2010-05-271-480/+145
| | | | | | | | This common code will be used by ADT when processing multi-apk export. I also had to improve the API for IAbstractFile/Folder. Change-Id: Ied76f0a9f068223ceaba36124e841f804febfaf8
* Move ApkData into sdklib.Xavier Ducrohet2010-05-261-190/+26
| | | | | | | This is the first step of refactoring common code from MultiApkExportTask into sdklib. Change-Id: Ie82eafa961a80fac7c24d3a65e75648da8af525c
* Fix missing @override.Raphael Moll2010-05-181-7/+13
| | | | | | Also fixes some javadocs. Change-Id: Ic2bc0ae1c822f184bde63b29fdc15d897661c623
* Refactored the Android Manifest into sdklib.Xavier Ducrohet2010-05-121-1/+7
| | | | | | | | | | | | | | | API change to make it use IFileWrapper instead of IFile. Old AndroidManifestParser changed to AndroidManifestHelper which is now mostly wrapper methods to add Eclipse specific parameters. Also moved ADT...AndroidConstants.CLASS_* to sdklib...SdkConstants (needed by the parser) and removed AndroidConstants.FN_ANDROID_MANIFEST since SdkConstants.FN_ANDROID_MANIFEST_XML existed too. Moved the Eclipse implementation of IAbstractFile/Folder Change-Id: I59bdbe90ba9a4c0b5bb2c4c68945b8877d4eed3d
* Add multi-apk export log.Xavier Ducrohet2010-05-111-43/+325
| | | | | | | | The log is used to confirm that new export do not conflict with previous build. The build file can also be used to set per-apk minor version code. Change-Id: Ic5ad98758aa327f6a5bc1d00e66cf5437ac098e4
* Override local keystore/alias info when using export project to export.Xavier Ducrohet2010-05-071-0/+6
| | | | Change-Id: If4f188591b8c5154be894fdd1872a182d1b6eadc
* ApkBuilderTask is now more lenient with missing libs/ folders.Xavier Ducrohet2010-05-071-3/+11
| | | | Change-Id: Ic40c35e7074a91fb40094d3c5e5a605ff1ea2fef
* Fix NPE when a library does not have a libs folder.Xavier Ducrohet2010-05-071-3/+5
| | | | Change-Id: I382fb659073a8d2df8d018acde37d4769ac40cc0
* Add support for code-less project.Xavier Ducrohet2010-05-062-5/+43
| | | | Change-Id: I09e8e5b40df3b8da4b34fe4f000e98263ea5bc55
* Add support for using newer Ant rules distributed by the tools.Xavier Ducrohet2010-05-051-6/+46
| | | | | | | | | | | | | | | | | Right now, the Ant rules are packaged with each platform. This is a problem when we want to release newer versions of the rules, as we would have to respin newer rev for all major platforms just for that. The new mechanism has the Ant rules both in the tools folder and in the platforms. The platform indicates which versions it supports (support is based on the features of external tools such as aapt, aidl and dex). The custom tasks can figure out a newer but still compatible (ie not relying on newer options in aapt/aidl/dex) version from the tools folder and then uses this newer version. Change-Id: I763533ec85fa9647ecf96ac6cbaefbfd1ad68fb0
* Add support for signing in the multi-apk ant build.Xavier Ducrohet2010-05-051-2/+38
| | | | Change-Id: I0b0223b7fa5275995563a1a21192941bd72811cc
* New If/Then/Else custom Ant rules to simplify some Ant rules logic.Xavier Ducrohet2010-05-044-10/+116
| | | | | | | Also cleaned up some attribute of our other custom tasks to conform to the standard convention (all lower case, all those were new in r3) Change-Id: If328a8eb2448d95bee1f1b70928d72fde5014eeb
* First step of multiple apk support.Xavier Ducrohet2010-05-035-223/+659
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New export type project to handle exporting a single app represented by multiple projects (for different minSdkVersion for instance). - Cleaned-up the current Ant tasks and Eclipse builder to not deal with ApkSettings anymore. It's not possible to generate more than one APK in a single pass. The export project will handle this and call out the normal build system to export each variant. Make older (deprecated) attribute actually output a warning. - Ant rules r3 now with support for multi apk export. Lots of clean up, add new properties to be overriden by the multi-apk export task, make older one overrideable too. - Better handling of older rules, older tasks, etc... in the SetupTask used by the normal build. - Add split by ABI to ApkSettings and use it in the new multi apk export. - New custom task for multi-apk export. Replaces SetupTask for export-type projects. Calls out to the project's build.xml after setting/overriding properties. This also override the project's versionCode with a new composite one made of different values. Also uses a different build.xml, so added a new template: build.export.template. Very much a work in progress. Still to do: Add other types of APK split, create/update export projects, export the build log, ... Also, we need to refactor the normal build rules to avoid so much duplication! Change-Id: I57a565c60d097a5eabb40108ae1fa8cb209f2380
* Add ABI filtering and version code injection in the Ant rules and tasks.Xavier Ducrohet2010-04-272-1/+34
| | | | Change-Id: Ic8e41c1ad5343b32d2766427ba271a79c88b3b66
* Add rev 3 of the ant rules.Xavier Ducrohet2010-04-271-4/+8
| | | | | | | For now they are the same as the r2. Also modified SetupTask to deal better with older tools. Change-Id: I22ff809ace3ff81fb6852a707165165a9b4ec88a
* Add support for the new Ant rules files.Xavier Ducrohet2010-03-181-15/+43
| | | | | | | | | | | The new Ant rules files are located in <platform>/ant instead of <platform>/templates Also, the name of the file now include the revision number to make it easier to update them, so the custom task must deal with this. Change-Id: I8fff9656b17c5afad8f22b23052dfca4c598d712
* Disable writting the apk settings.Xavier Ducrohet2010-03-122-4/+2
| | | | | | | | | | This is not fully supported. Its presence in default.properties can be confusing the devs in thinking this is supported. Also removed a useless helper class. Change-Id: Ia26b31e258f53964a437c7bbe202da857796df8e
* Move ant.prop to sdk.prop and up a folder.Xavier Ducrohet2010-03-111-4/+14
| | | | | | | | | | | | | | | | this file is meant to have general sdk properties, not just Ant ones. Also separated the library support from the Ant build version. It's clearer whether or not libraries are supported, and it's not just tied to Ant anyway (ADT needs to know as well). Finally use that new property to do checks on library support in both the custom Ant tasks and ADT. Depends on a CL in development.git (sdk.atree change). Change-Id: I77d229ed3fd60f0468b1d3d31f7cf147b03a32fb
* detect too recent version of the ant rules and display an error.Xavier Ducrohet2010-02-241-1/+45
| | | | | | | | This is to solve the case where a user somehow update a platform component but not the tools. the custom Ant tasks will detect the revision of the ant rules and fail if it's too recent. Change-Id: Ica91a500ca980f9ed5f3a7c4fb09b85a63b8037b
* Move sdklib.internal.io.* into sdklib.ioXavier Ducrohet2010-02-241-1/+1
| | | | | | | Some other "public" API (AndroidManifest) depends on it so it should be public too. Change-Id: I88cd299bbd60df8f4dac5fe029bb52c0c0c2f16c
* Improve the IAbstractFile/Folder classes.Xavier Ducrohet2010-02-231-2/+2
| | | | | | | | - Add setContent to the file class - add listMembers to the folder class - extend java.io.File instead of using a delegate. Change-Id: Ib6434b37c8cceb6661bc6a17ae678a56d2c243f2
* Merge remote branch 'goog/master' into HEADXavier Ducrohet2010-02-231-0/+8
|\
| * Only add gdbserver to the APK if the manifest has debuggable to true.Xavier Ducrohet2010-02-231-0/+8
| | | | | | | | Change-Id: I2411f59f46cdda2e12b1627d450cde6c9cd109d8
* | ADT: Library support: source folder and pre-compiler.Xavier Ducrohet2010-02-231-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first step in the library support. For each library, create a source folder in the main project that is linked to the source folder of the library project. The linked resources use a path variable named after the library in the format: _android_<library name>. These variables are always created when the link is created. For now the link is recreated all the time, but we could do a check and not redo it if it's already done. Additionally, the pre-compiler creates the R class from the res folders of the main and library projects. Some misc fixes/clean-ups: * Fix an issue with the new ProjectState where opening a project would not trigger a load of its target data. * Changed the lock for all SDK operation: - moved the lock in Sdk accessible as Sdk.getLock() - made the few Sdk method that used their own synchronize block use the same lock as all others. * removed the builders project and moved its content to sdklib This was meant as a way to share code between the Eclipse builders and the Ant tasks but sdklib is already used by both, so it's better to put the code in sdklib than have yet another project. Change-Id: Ibfa449c7a809f28e428c03bbda8215969717ecde
* | Check whether the project's target supports libraries.Xavier Ducrohet2010-02-161-2/+12
| | | | | | | | | | | | | | | | Check is done when: - a library is added to a project through "android update project" - a project is compiled through Ant Change-Id: I09993b9aac5ad32a84335647429fc52fa2babaf9