aboutsummaryrefslogtreecommitdiffstats
path: root/files/ant
Commit message (Collapse)AuthorAgeFilesLines
* Misc Ant build fixesXavier Ducrohet2011-11-231-3/+13
| | | | | | | | | | | | - project name on standard build rules - allow override out.final.file - allow passing custom javac parameters - allow note having local.properties as long as sdk.dir is present anyway - -pre-clean target allows custom clean build Bug 21023, 21267, 21465, 21525 Change-Id: I4bee2f8c15fab664b1f4ff54d754920d2487f6c7
* Add nodeps support to install/uninstall.Xavier Ducrohet2011-10-211-6/+18
| | | | Change-Id: Ia03a4c55567680a8365df8a83079c7d370747697
* Fix ant test, ant installt and ant uninstall (for test projects)Xavier Ducrohet2011-10-211-16/+30
| | | | | | Bug http://code.google.com/p/android/issues/detail?id=20979 Change-Id: Id861d493c9b73dcfc9e81bdc8fb6c8b7c8ed0e55
* Fix "ant test".Xavier Ducrohet2011-10-201-1/+1
| | | | Change-Id: If7dab5116ec0351f712aa26673c3b3d36026bb96
* Rename the modifier target only to nodeps.Xavier Ducrohet2011-10-141-6/+6
| | | | Change-Id: I26dc7be4f06758c0be7f4dbcbc358b805ba44945
* Fix NPE when building project with no code.Xavier Ducrohet2011-10-141-1/+1
| | | | | | | | The lack of dex file made the Ant package task throw an NPE. Also some minor typo fix. Change-Id: Ic617ee66017c402f211f5400baf5a00eb7e6cff5
* Improve indirect library dependency support.Xavier Ducrohet2011-10-141-5/+20
| | | | | | | | | | | | | | | | | | | | | Previously with the following setup: Main app depends on Lib1, Lib2. Lib1 and Lib2 both depends on Lib3. Lib3 would be compiled 3 times, as the main app would attempt to build it and then Libr1, and Lib2 would do it too. Of course it wasn't actually built 3 times. After the first time it would do nothing, checking dependencies and do nothing. However, for projects will a lot of libraries and a lot of indirect dependencies this could slow down a lot compilations, as the build would spend its time checking whether to build the same library many times. This ensure that only the main project attempts to build all of its library dependencies (direct and indirect), in the right order of course. When libraries are built they are told (through the "only" target) to not build their dependencies. Change-Id: Ie80f32a96e3c473d897aca5d05bf6fe9ea086884
* Add BuildConfig to ant SDK project.Xavier Ducrohet2011-10-141-29/+84
| | | | | | | | | | | | | | | The BuildConfig class contains a single boolean constant called DEBUG which is true only for debug/instrumented builds. This allows developers to create debug only code that's automatically stripped from release builds. Also fixed some issues with dependency check for other tasks, notably the aapt task that would always find new files due to not filtering out files that are ignored by aapt itself (hidden files, version control files, etc...) Change-Id: I4391a87c064a185d6b337ca46e3a9f0e43c5174d
* Improved RenderScript support in SDK build.Xavier Ducrohet2011-10-101-1/+2
| | | | | | | | - renderscript output is now in bin/res/ instead of res/ - Ant build system properly handle dependencies to only recompile files that need it. Change-Id: Ic2cd4487a26e7a7fcb0b475ee52fa0ccf8a07c0b
* Ant build didn't use -non-constant-id for libraries!Xavier Ducrohet2011-10-061-0/+1
| | | | Change-Id: I966b8796008b87dd3e6101d8c6d09271e2621c52
* Also process and cache the png files in libraries.Xavier Ducrohet2011-09-281-11/+8
| | | | | | | | | | | The png in the libraries were not processed by the crunch step. Because aapt never processes png files anymore (relying on the crunch step to do it), the png files in libraries were never processed. While this is less a problem for standard png files, this completely breaks 9-patches that must be processed to actually behaves as 9-patch. Change-Id: I0a1fe14ea34f6d36a368b456494410945afc3c44
* Make the zip align ant step check timestamp on intput/output.Xavier Ducrohet2011-09-231-13/+9
| | | | | | If the output is more recent than the input, zipalign does nothing. Change-Id: Ic1d7518a28fbb2db8895903e5cd0fd2976931b41
* Add dependency support for ApkBuilder ant step.Xavier Ducrohet2011-09-231-12/+19
| | | | Change-Id: I7230a2aa3df5fab8b420f1ed2f359621fbda7f5a
* Pass -target-api to the renderscript compiler.Xavier Ducrohet2011-09-151-6/+7
| | | | | | | This allows to use a single llvm executable to target all API versions. Change-Id: Ib27f7fc9e54c548d31fc98fc323f439cb99218d5
* Make the dependency graph use extension restrictions per folder.Xavier Ducrohet2011-09-011-2/+1
| | | | | | | | | | | | | | | | Before there was a way to filter touched file by extension(s) but this was for all input folders. Now each input folder can have a different set of extension restrictions. This will allow apkbuilder to use DependencyGraph and extension restriction for all its input folders. Also fixed an issue where aapt would not package the resources if an xml files was touched. This is because it didn't make a difference between compiling the resources for IDs and packaging the resource values. Change-Id: I797d3a24c6c1f999e9d412c4ff8aa826ed16fc09
* Add proper dependency support in the dex step of the Ant-based build.Xavier Ducrohet2011-09-011-18/+14
| | | | | | | | | | The dex step now generates a dependency file that is reused during following builds to check whether dex should occur. Also optimized the part that figures out if any dependencies have been modified/have gone missing. Change-Id: I7f6e915fc7b571ad973260daa506badced3a9c2a
* Add support for proper dependency detection in the aidl ant compilation step.Xavier Ducrohet2011-09-011-4/+7
| | | | | | | | | | Aidl compilation now generates dependency files that are reused on further compilations to only recompile files that needs it based on source files modifications. Also clean up output (and dependency) files when a source file is deleted. Change-Id: I3131463fd7939ffc4b5bbdfa49940e03f0249a28
* Prevent running debug and release targets at the same time.Xavier Ducrohet2011-08-231-12/+26
| | | | | | | This is not possible since they rely on the same properties which cannot be updated after they are set. Change-Id: I2fbc0f53b656f5906c2b026d8fd41d78a4461803
* Renable test coverage from Ant.Xavier Ducrohet2011-08-221-31/+44
| | | | | | | | Added a warning regarding the requirement of a rooted device. Also made it so that the test can be run without having to build and install the packages with just "ant emma test" Change-Id: Id643b5f56585954b91c9c85c3eb33c4ef31c196a
* Don't regenerate R.java if a non xml resource is modified.Xavier Ducrohet2011-08-181-1/+2
| | | | Change-Id: Ie28359234cbb56e14c42274434831e4795bf3ee3
* Rename main_rules.xml to build.xmlXavier Ducrohet2011-08-171-0/+0
| | | | | | | This is the final name. I kept main_rules to make the previous review easier. Change-Id: I3dfcd36a49f2893665e712ed9391acb4486d713e
* New library project mechanism.Xavier Ducrohet2011-08-174-679/+810
| | | | | | | | | | | | | | | | Libraries now generate a jar file that is used by the projects referencing them, instead of having the main projects compile the library source code themselves. This means we can remove the link mechanism that created linked folder in ADT and instead use a container that is lazily initalized to be all the jar files of the libraries. Also merged all 3 Ant build files (main_rules, lib_rules, test_rules) into a single build.xml that can build any kind of projects. Lot's of improvement in there too. Much cleaner. Change-Id: I98307e25cd76722e8595938528e6ef57a7e226ad
* Expose version.name property for aapt task.Tero Saarni2011-08-151-0/+2
| | | | | | | | | | The new property makes it possible to create ant build scripts that programmatically determine and set the versionName attribute during build. Similar property already exists for versionCode. Signed-off-by: Tero Saarni <tero.saarni@gmail.com> Change-Id: Ia36632ae029785563fc7c1bc8937034963016852
* Add support for aapt CrunchCache in ADT and AntJosiah Gaskin2011-07-211-2/+21
| | | | | | | | This change lets ADT and Ant use the crunch cache system set up in change I58271fb2. This commit is separate because sdk and framework are separate git repositories. Change-Id: If2828d157acad0b5adb812001e777c199e3c62fe
* Properly support spaces in ant project directories.Raphael Moll2011-07-111-1/+2
| | | | | | | | | After applying https://review.source.android.com/24515 for the dalvik/dx change, this allows ant project to build correctly on Windows if there's a space in their directory path. Change-Id: I4c6d5f87fae2dcf2955698633a16a0bde501694f
* Fix space-in-dir issue with Proguard for the ant case.Raphael Moll2011-05-121-12/+26
| | | | | | | | | | | | | | | This fixes the proper way to quote the compound paths arguments given to proguard. Each individual path is quoted if it contains spaces. Quoting for -libraryjars fixes the issue for the SDK install path containing a space. Quoting for -injars and the other arguments fixes the issue for the project path containing a space (although the ant build will fail later at the dx phase in this case.) Change-Id: I74283b4f1b19c353c1a5ed36e4d0ec58676b6a79
* Ant tasks and dependency clean up.Xavier Ducrohet2011-02-081-0/+14
| | | | | | | | | | | Give anttasks.jar a proper manifest with jar dependencies. Update the manifest of sdklib.jar with the common.jar dependency. The pre-setup section of build.xml has changed over time and really we should be able to control it so move it in $SDK/tools/ant/pre_setup.xml and import it into build.xml Change-Id: Iab707deccc0cdbe8d1a9db052ee6fb0762853394
* Add renderscript support to the Ant build system.Xavier Ducrohet2011-01-181-2/+25
| | | | Change-Id: Iba1c956d33725716923da89b788f7f8d14524e41
* Fix ant rulesXavier Ducrohet2010-12-062-2/+9
| | | | | | | - utf-8 is default encoding for java files. - make encoding, target, source also overridable in the lib rules. Change-Id: I95a6dfd2a815ea9994638c0a0270381819b75a12
* Fix adb location in ant rules.Xavier Ducrohet2010-10-272-6/+2
| | | | Change-Id: Ia8188de0b8af0ec4474f5c4ca2cec294c077e03f
* Fix external jar support when building with proguard.Xavier Ducrohet2010-10-251-3/+23
| | | | Change-Id: I3dafb284770f475d70a212cbe22cdae6bff36ff7
* In some cases release build is actually a debug build.Xavier Ducrohet2010-09-291-12/+36
| | | | | | | If the manifest sets debuggable=true then this override the release build to be a debug build instead. Change-Id: Ib66bf9053cecfa7c19a02cefdbf187a20bd6da37
* Ant doc on how to replace proguard.Xavier Ducrohet2010-09-271-0/+17
| | | | Change-Id: I27faad2282fbe6cff565d945c2b64d42d31db1fe
* Make it easier to use a different obfuscator.Xavier Ducrohet2010-09-241-37/+34
| | | | Change-Id: I3fb80a8b91482de5117a9e093b2d50010bb99546
* Use proguard for release builds through Ant.Xavier Ducrohet2010-09-241-16/+84
| | | | | | | | | | | | | | | 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
* Make javac ant options configurable.Xavier Ducrohet2010-09-241-1/+8
| | | | Change-Id: I303acdb4fc8de6ba5d8de7c18e020e97fe01e3de
* Fix test ant rules.Xavier Ducrohet2010-09-101-1/+1
| | | | | | They were importing the old name of the main rules. Change-Id: If5d591d48f420e5bd8a24843c99befdbb487cd80
* Support for debug build in Ant.Xavier Ducrohet2010-09-028-1273/+22
| | | | | | | | | | | | | "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
* Add Ant property when in release mode.Xavier Ducrohet2010-08-271-1/+5
| | | | | | Also fix some NPE in usage of ISdkLog.warning Change-Id: Id2803f7692b82d0d2f5dea49f17f916509a7b205
* Improve capability of the post-compile target.Xavier Ducrohet2010-08-231-1/+2
| | | | | | | | | | | | Make the dex target use a different property to read the input folder for classes to dexify. By default the new property has the same value but can be overriden if a post-compile target modify (obfuscate) code into a different location. Merged from master into tools_r7 Change-Id: I1fe2fd2a2678d8c4354702250cea1481f74dd7cf
* Ant support for library depending on other libraries.Xavier Ducrohet2010-06-291-2/+10
| | | | Change-Id: Ief8261327f7917d158fc8ad4dd4e4c3d322bbce2
* Support for aidl files in library project in the Ant build system.Xavier Ducrohet2010-06-282-18/+54
| | | | Change-Id: I3e36e6f4db60d3d979b24c2b88d496f453394127
* Add support for adb.device.arg to the test Ant rules.Xavier Ducrohet2010-05-281-0/+2
| | | | Change-Id: Idfc39bcdd79f17700952bb66ed1b67a840495011
* Override local keystore/alias info when using export project to export.Xavier Ducrohet2010-05-071-0/+1
| | | | Change-Id: If4f188591b8c5154be894fdd1872a182d1b6eadc
* Add support for code-less project.Xavier Ducrohet2010-05-061-50/+90
| | | | Change-Id: I09e8e5b40df3b8da4b34fe4f000e98263ea5bc55
* Move all Ant rules under sdk/files/antXavier Ducrohet2010-05-058-0/+2029
Change-Id: I7533b52a56c00502dce8798bf31ac50444543446