Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1055)

Unified Diff: content/android/java/content.xml

Issue 10209003: Upstream Android Geolocation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add OWNERS Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/android/java/content.xml
diff --git a/content/android/java/content.xml b/content/android/java/content.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8704c0c626df5384849557a1f445bb13c77b87e3
--- /dev/null
+++ b/content/android/java/content.xml
@@ -0,0 +1,59 @@
+<project name="content" default="dist" basedir=".">
Yaron 2012/04/25 17:26:09 Again, please rebase on 10035034 which added this
John Knottenbelt 2012/04/26 15:14:51 These Java files are not part of the embedder API,
+ <description>
+ Building content/ java source code with ant.
+ </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="dist" location="dist"/>
+ <property name="out.dir" location="${PRODUCT_DIR}/lib.java"/>
+ <!-- TODO(jrg): establish a standard for the intermediate java
+ directories. Settle on a standard once ant/jar build files
+ like this are androidified -->
+ <property name="dest.dir" location="${PRODUCT_DIR}/java/content"/>
+
+ <!-- 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="${out.dir}"/>
+ <mkdir dir="${dest.dir}"/>
+ </target>
+
+ <target name="compile" depends="init"
+ description="compile the source " >
+ <javac srcdir="${src}" destdir="${dest.dir}">
+ <classpath>
+ <path location="${location.base}/android.jar"/>
+ <path location="${PRODUCT_DIR}/chromium_base.jar"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="dist" depends="compile"
+ description="generate the distribution" >
+ <!-- Create the distribution directory -->
+ <mkdir dir="${dist}/lib"/>
+
+ <jar jarfile="${out.dir}/chromium_content.jar" basedir="${dest.dir}"/>
+ </target>
+
+ <target name="clean"
+ description="clean up" >
+ <delete dir="${dest.dir}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>

Powered by Google App Engine
This is Rietveld 408576698