Chromium Code Reviews| Index: net/android/java/net.xml |
| diff --git a/net/android/java/net.xml b/net/android/java/net.xml |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7b506de13452f5a057b6c5ac421137a14a94f484 |
| --- /dev/null |
| +++ b/net/android/java/net.xml |
| @@ -0,0 +1,59 @@ |
| +<project name="net" default="dist" basedir="."> |
| + <description> |
| + building net java source code with ant |
|
Ryan Sleevi
2012/04/13 22:37:58
nit?
Building net/ java source code with ant.
Yaron
2012/04/17 16:18:03
Done.
|
| + </description> |
| + <!-- Set global properties for this build --> |
| + <property environment="env"/> |
| + <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> |
| + <!-- TODO(jrg): The apk-runner's version is hardcoded to SDK version 14. These |
| + two should be unified. --> |
| + <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> |
| + <property name="src" location="."/> |
| + <property name="build" location="build"/> |
| + <property name="dist" location="dist"/> |
|
Ryan Sleevi
2012/04/13 22:37:58
Does this mean your generated java files are being
Yaron
2012/04/17 16:18:03
Done.
|
| + |
| + <!-- Set path depending on the type of repository. If ANDROID_BUILD_TOP is |
| + set then build using the provided location. Otherwise, assume the build |
| + is using the released SDK and set the path accordingly. --> |
| + <condition property="location.base" |
| + value="${sdk.dir}" |
| + else="${sdk.dir}/platforms/android-${sdk.version}"> |
| + <isset property="env.ANDROID_BUILD_TOP"/> |
| + </condition> |
| + |
| + <target name="init"> |
| + <!-- Create the time stamp --> |
| + <tstamp/> |
| + <!-- Create the build directory structure used by compile --> |
| + <mkdir dir="${build}"/> |
| + </target> |
| + |
| + <target name="compile" depends="init" |
| + description="compile the source " > |
| + <!-- Compile the java code from ${src} into ${build} --> |
| + <javac srcdir="${src}" destdir="${build}"> |
| + <classpath> |
| + <path location="${location.base}/android.jar"/> |
| + <!-- TODO(yfriedman): This should be added automatically when ant |
| + makefiles are generated. --> |
|
Ryan Sleevi
2012/04/13 22:37:58
Is there a bug (public or private) for this?
It w
Yaron
2012/04/17 16:18:03
Done.
|
| + <path location="../../../base/android/java/dist/lib/chromium_base.jar"/> |
| + </classpath> |
| + </javac> |
| + </target> |
| + |
| + <target name="dist" depends="compile" |
| + description="generate the distribution" > |
| + <!-- Create the distribution directory --> |
| + <mkdir dir="${dist}/lib"/> |
| + |
| + <!-- Put everything in ${build} into the chromium_net.jar file --> |
| + <jar jarfile="${dist}/lib/chromium_net.jar" basedir="${build}"/> |
| + </target> |
| + |
| + <target name="clean" |
| + description="clean up" > |
| + <!-- Delete the ${build} and ${dist} directory trees --> |
| + <delete dir="${build}"/> |
| + <delete dir="${dist}"/> |
| + </target> |
| +</project> |