OLD | NEW |
---|---|
(Empty) | |
1 <project name="net" default="dist" basedir="."> | |
2 <description> | |
3 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.
| |
4 </description> | |
5 <!-- Set global properties for this build --> | |
6 <property environment="env"/> | |
7 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> | |
8 <!-- TODO(jrg): The apk-runner's version is hardcoded to SDK version 14. These | |
9 two should be unified. --> | |
10 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> | |
11 <property name="src" location="."/> | |
12 <property name="build" location="build"/> | |
13 <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.
| |
14 | |
15 <!-- Set path depending on the type of repository. If ANDROID_BUILD_TOP is | |
16 set then build using the provided location. Otherwise, assume the build | |
17 is using the released SDK and set the path accordingly. --> | |
18 <condition property="location.base" | |
19 value="${sdk.dir}" | |
20 else="${sdk.dir}/platforms/android-${sdk.version}"> | |
21 <isset property="env.ANDROID_BUILD_TOP"/> | |
22 </condition> | |
23 | |
24 <target name="init"> | |
25 <!-- Create the time stamp --> | |
26 <tstamp/> | |
27 <!-- Create the build directory structure used by compile --> | |
28 <mkdir dir="${build}"/> | |
29 </target> | |
30 | |
31 <target name="compile" depends="init" | |
32 description="compile the source " > | |
33 <!-- Compile the java code from ${src} into ${build} --> | |
34 <javac srcdir="${src}" destdir="${build}"> | |
35 <classpath> | |
36 <path location="${location.base}/android.jar"/> | |
37 <!-- TODO(yfriedman): This should be added automatically when ant | |
38 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.
| |
39 <path location="../../../base/android/java/dist/lib/chromium_base.jar"/> | |
40 </classpath> | |
41 </javac> | |
42 </target> | |
43 | |
44 <target name="dist" depends="compile" | |
45 description="generate the distribution" > | |
46 <!-- Create the distribution directory --> | |
47 <mkdir dir="${dist}/lib"/> | |
48 | |
49 <!-- Put everything in ${build} into the chromium_net.jar file --> | |
50 <jar jarfile="${dist}/lib/chromium_net.jar" basedir="${build}"/> | |
51 </target> | |
52 | |
53 <target name="clean" | |
54 description="clean up" > | |
55 <!-- Delete the ${build} and ${dist} directory trees --> | |
56 <delete dir="${build}"/> | |
57 <delete dir="${dist}"/> | |
58 </target> | |
59 </project> | |
OLD | NEW |