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

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

Issue 10073024: Add NetworkChangeNotifier for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on base chagnes 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
« no previous file with comments | « net/android/OWNERS ('k') | net/android/java/org/chromium/net/NetworkChangeNotifier.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..76dddcc4b105a3facadf23e7dec93bc05672bfae
--- /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.
+ </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/net"/>
+
+ <!-- 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_net.jar" basedir="${dest.dir}"/>
+ </target>
+
+ <target name="clean"
+ description="clean up" >
+ <delete dir="${dest.dir}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>
« no previous file with comments | « net/android/OWNERS ('k') | net/android/java/org/chromium/net/NetworkChangeNotifier.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698