Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Ant build #8

Open
wants to merge 2 commits into
base: android
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
</description>

<property name="src" location="src"/>
<property name="platform" location="android/platform"/>
<property name="libcore-src" location="${platform}/libcore/dex/src/main/java"/>
<property name="dalvik-dexgen-src" location="${platform}/dalvik/dexgen/src"/>
<property name="dalvik-dx-src" location="${platform}/dalvik/dx/src"/>
<property name="test" location="test"/>
<property name="jsrc" location="${src}/jvm"/>
<property name="jtestsrc" location="${test}/java"/>
Expand All @@ -25,21 +29,27 @@
<property name="clojure.version.label" value="${pom.project.version}"/>
<property name="version.properties" value="${build}/clojure/version.properties"/>

<property name="clojure_jar" location="clojure-${clojure.version.label}.jar"/>
<property name="clojure_noversion_jar" location="clojure.jar"/>
<property name="clojure_jar" location="${target}/clojure-${clojure.version.label}.jar"/>
<property name="clojure_noversion_jar" location="${target}/clojure.jar"/>

<target name="init" depends="clean">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${build}/clojure"/>
<echo file="${version.properties}">version=${clojure.version.label}</echo>
</target>

<target name="compile-java" depends="init"
description="Compile Java sources.">
<javac srcdir="${jsrc}" destdir="${build}" includeJavaRuntime="yes"
includeAntRuntime="false"
debug="true" source="1.6" target="1.6"/>
classpath="${maven.compile.classpath}:${build}"
debug="true" source="1.6" target="1.6">
<src path="${libcore-src}"/>
<src path="${dalvik-dexgen-src}"/>
<src path="${dalvik-dx-src}"/>
<src path="${jsrc}"/>
</javac>
</target>

<target name="compile-clojure"
Expand Down