OLD | NEW |
---|---|
(Empty) | |
1 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
jam
2012/04/19 21:56:26
why content/android? we don't have content/win or
Ted C
2012/04/20 01:14:14
I'll let Grace comment on this one as I'm just fol
klobag.chromium
2012/04/20 01:32:25
When we start to upstream Java files, we came up w
jam
2012/04/20 16:15:28
as someone not familiar with android development,
klobag.chromium
2012/04/20 17:13:57
These Java files will be shared by any Android emb
jam
2012/04/20 21:40:03
I see. In that case, how about content/public/andr
| |
2 | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. | |
5 --> | |
6 <project name="Content" default="dist" basedir="."> | |
7 <description> | |
8 building content java source code with ant | |
9 </description> | |
10 <!-- set global properties for this build --> | |
11 <property environment="env"/> | |
12 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> | |
13 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> | |
14 <property name="src" location="."/> | |
15 <property name="out.dir" location="${PRODUCT_DIR}"/> | |
16 <property name="classes.dir" location="${out.dir}/java/${PACKAGE_NAME}"/> | |
17 <!-- TODO(tedchoc): Move out of the main out/ dir ... needs to sync with | |
18 java.gypi output --> | |
19 <property name="jar.dir" location="${out.dir}"/> | |
20 | |
21 <condition property="location.base" | |
22 value="${sdk.dir}" | |
23 else="${sdk.dir}/platforms/android-${sdk.version}"> | |
24 <isset property="env.ANDROID_BUILD_TOP"/> | |
25 </condition> | |
26 | |
27 <target name="init"> | |
28 <!-- Create the time stamp --> | |
29 <tstamp/> | |
30 <!-- Create the build directory structure used by compile --> | |
31 <mkdir dir="${out.dir}"/> | |
32 </target> | |
33 | |
34 <target name="compile" depends="init" | |
35 description="compile the source " > | |
36 <!-- Create the classes output directory --> | |
37 <mkdir dir="${classes.dir}"/> | |
38 | |
39 <!-- Compile the java code from ${src} into ${classes.dir} --> | |
40 <javac srcdir="${src}" destdir="${classes.dir}"> | |
41 <classpath> | |
42 <path location="${location.base}/android.jar"/> | |
43 </classpath> | |
44 </javac> | |
45 </target> | |
46 | |
47 <target name="dist" depends="compile" | |
48 description="generate the distribution" > | |
49 <!-- Create the distribution directory --> | |
50 <mkdir dir="${jar.dir}"/> | |
51 | |
52 <!-- Put everything in ${classes.dir} into the chromium_content.jar file --> | |
53 <jar jarfile="${jar.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${classes.di r}"/> | |
54 </target> | |
55 | |
56 <target name="clean" description="clean up" > | |
57 <!-- Delete the generated content --> | |
58 <delete dir="${classes.dir}"/> | |
59 <delete file="${jar.dir}/chromium_${PACKAGE_NAME}.jar"/> | |
60 </target> | |
61 </project> | |
OLD | NEW |