From 95cf464c5a9f2bb7d6bf3a231862323dcbf854f8 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Fri, 9 Jan 2009 17:51:19 -0800 Subject: auto import from //branches/cupcake/...@125939 --- tools/scripts/android_rules.xml | 227 +++++++++++++----------------- tools/scripts/build.template | 61 +++++--- tools/scripts/default.properties.template | 18 --- 3 files changed, 138 insertions(+), 168 deletions(-) delete mode 100644 tools/scripts/default.properties.template (limited to 'tools/scripts') diff --git a/tools/scripts/android_rules.xml b/tools/scripts/android_rules.xml index bed5f2433..1331696fc 100644 --- a/tools/scripts/android_rules.xml +++ b/tools/scripts/android_rules.xml @@ -1,112 +1,73 @@ - - - - - - - - + - - - - - - + + + + + - - - + - - - + - - - - - - - + + + + + + - + - - + + - - - - + + - - - - + + - - - - + + - - - - - - - - - - - - - - - + + - + + + + + + + Creating output directories if needed... - - + + @@ -116,13 +77,13 @@ - + - + - + - + @@ -130,9 +91,9 @@ Compiling aidl files into Java classes... - - - + + + @@ -141,113 +102,102 @@ - + - Converting compiled files and external libraries into ${outdir}/${dex-file}... + Converting compiled files and external libraries into ${out-folder}/${dex-file}... - - + + - + Packaging resources and assets... - + - + - + - + - - + + Packaging resources... - + - + - + - + - - - - - - - - - + Packaging ${out-debug-package}, and signing it with a debug key... - + - + - + - + - + - + - + Packaging ${out-unsigned-package} for release... - + - + - + - + - + - + - It will need to be signed with jarsigner before being published. + It will need to be signed with jarsigner before it is published. @@ -255,7 +205,7 @@ Installing ${out-debug-package} onto default emulator... - + @@ -264,7 +214,7 @@ - + @@ -273,8 +223,25 @@ Uninstalling ${application-package} from the default emulator... - + - + + + + Android Ant Build. Available targets: + help: Displays this help. + debug: Builds the application and sign it with a debug key. + release: Builds the application. The generated apk file must be + signed before it is published. + install: Installs the debug package onto a running emulator or + device. This can only be used if the application has + not yet been installed. + reinstall: Installs the debug package on a running emulator or + device that already has the application. + The signatures must match. + uninstall: uninstall the application from a running emulator or + device. + diff --git a/tools/scripts/build.template b/tools/scripts/build.template index f04f1d83b..c1afef80d 100644 --- a/tools/scripts/build.template +++ b/tools/scripts/build.template @@ -1,30 +1,51 @@ - + + + + - + by the 'android' tool. This is the place to change some of the default property values + used by the Ant rules. + Here are some properties you may want to change/update: + + application-package + the name of your application package as defined in the manifest. Used by the + 'uninstall' rule. + source-folder + the name of the source folder. Default is 'src'. + out-folder + the name of the output folder. Default is 'bin'. - - + Properties related to the SDK location or the project target should be updated + using the 'android' tool with the 'update' action. - - + This file is an integral part of the build system for your application and + should be checked in in Version Control Systems. - - + --> + - - - - - + + - + + + + + + + + + + diff --git a/tools/scripts/default.properties.template b/tools/scripts/default.properties.template deleted file mode 100644 index 63df494fe..000000000 --- a/tools/scripts/default.properties.template +++ /dev/null @@ -1,18 +0,0 @@ -# This file is automatically generated by activitycreator. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# Instead customize values in a "build.properties" file. - -# location of the SDK -sdk-folder=ANDROID_SDK_FOLDER - -# target mode. Value can be "platform" or "add-on" -target-mode=TARGET_MODE - -# target API level. -target-api=TARGET_API - -# target name, if target-mode=add-on -target-name=TARGET_NAME - -# target platform. This is either the target itself or the platform the add-on is based on. -target-folder=TARGET_FOLDER -- cgit v1.2.3