Skip to content
Open
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions mac-shim/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Scala on Android, for Macs

There are discrepancies in the variable/path names in the Android ant build files. This file replicates Linux variable names for the Mac Android Ant build script. It allows Mac users to build and rund Scala apps using the build-scala.xml file provided by this project.

## To use

1. Include `mac-shim.xml` in your project's root directory
2. Update `build.xml` in your project root to import the mac-shim. Import after the Android build script, but before the Scala build script. See below.
````
<import file="${sdk.dir}/tools/ant/build.xml" />
<import file="mac-shim.xml" />
<import file="build-scala.xml" />
````

24 changes: 24 additions & 0 deletions mac-shim/mac-shim.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="mac-shim">
<!-- This file is intended to fix discrepancies between
named variables on the linux and osx distributions
of the android-sdk/tools/ant/build.xml file -->

<echo message="Declaring variables for Mac compatibility..." level="info" taskname="mac_shim" />
<condition property="extensible.classpath"
value="${tested.project.absolute.dir}/bin/classes"
else="." >
<isset property="tested.project.absolute.dir" />
</condition>
<condition property="extensible.libs.classpath"
value="${tested.project.absolute.dir}/${jar.libs.dir}"
else="${jar.libs.dir}" >
<isset property="tested.project.absolute.dir" />
</condition>
<path id="android.target.classpath">
<path refid="project.target.class.path" />
</path>
<path id="project.libraries.jars" >
<path refid="project.all.jars.path" />
</path>
</project>