Skip to content

Commit 985fe3b

Browse files
committed
updated build files
1 parent d9a39ca commit 985fe3b

File tree

6 files changed

+24
-149
lines changed

6 files changed

+24
-149
lines changed

build.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
<!-- path to the main processing repo -->
66
<property name="processing.dir" value="../processing" />
7-
8-
<!-- path to the android sdk -->
9-
<property name="sdk.dir" value="/Users/andres/code/android/android-studio/sdk" />
107

118
<property name="core.jar.path" value="processing-core.zip" />
129
<property name="mode.jar.path" value="mode/AndroidMode.jar" />

core/build.xml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<project default="build" name="Create .zip file for core">
44
<property environment="env" />
55

6+
<!-- path to the android sdk -->
7+
<property name="sdk.dir" value="/Users/andres/code/android/sdk" />
8+
69
<!-- path to the main processing repo -->
710
<property name="processing.dir" value="../../processing" />
811

@@ -18,21 +21,7 @@
1821
<!-- Support version to build the core library -->
1922
<property name="support.version" value="25.2.0" />
2023

21-
<!-- oh ant, you're so cute and convoluted -->
22-
<target name="build" depends="sdk_chatter,actual_build" />
23-
24-
<target name="sdk_chatter" unless="env.ANDROID_SDK">
25-
<echo message="ANDROID_SDK not set, skipping build of processing-core.zip" />
26-
</target>
27-
28-
<target name="sdk_whining">
29-
<available file="${env.ANDROID_SDK}/platforms/${android.platform}/android.jar"
30-
property="andoid-jar-present" />
31-
<fail unless="andoid-jar-present"
32-
message="Android SDK could not be found in ${env.ANDROID_SDK}/platforms/${android.platform}/android.jar" />
33-
</target>
34-
35-
<target name="actual_build" if="env.ANDROID_SDK">
24+
<target name="build">
3625
<taskdef name="methods"
3726
classname="PAppletMethods"
3827
classpath="${processing.dir}/core/methods/methods.jar" />
@@ -43,7 +32,7 @@
4332
target="1.7"
4433
encoding="UTF-8"
4534
includeAntRuntime="false"
46-
bootclasspath="${env.ANDROID_SDK}/platforms/${android.platform}/android.jar;
35+
bootclasspath="${sdk.dir}/platforms/${android.platform}/android.jar;
4736
library/support-compat-${support.version}.jar;
4837
library/support-fragment-${support.version}.jar;
4938
library/support-annotations-${support.version}.jar;

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Set your Android SDK location and version here
2-
sdkdir=/Users/andres/code/android/android-studio/sdk
3-
sdkver=25
2+
sdkdir=/Users/andres/code/android/sdk
3+
sdkver=26

libraries/vr/build.xml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
<?xml version="1.0"?>
22
<project name="Processing VR Library" default="build">
3-
4-
<property name="processing.dir" value="../../../processing" />
53
<property environment="env"/>
4+
5+
<!-- path to the android sdk -->
6+
<property name="sdk.dir" value="/Users/andres/code/android/sdk" />
7+
8+
<!-- path to the main processing repo -->
9+
<property name="processing.dir" value="../../../processing" />
10+
11+
<!-- Android platform to build the core library -->
12+
<property name="android.platform" value="android-26" />
613

714
<target name="clean" description="Clean the build directories">
815
<delete dir="bin" />
916
<delete file="library/vr.jar" />
1017
</target>
1118

12-
<target name="build" depends="sdk_chatter,compile" description="Build VR library for Processing Android" >
19+
<target name="build" depends="compile" description="Build VR library for Processing Android" >
1320
<mkdir dir="library" />
1421
<jar basedir="bin" destfile="library/vr.jar" />
1522
</target>
1623

17-
<target name="sdk_chatter" unless="env.ANDROID_SDK">
18-
<echo message="ANDROID_SDK not set, skipping build." />
19-
</target>
20-
2124
<target name="compile" description="Compile sources">
2225
<condition property="core-built">
2326
<available file="../../processing-core.zip" />
@@ -34,7 +37,7 @@
3437
library/gvr-common.jar;
3538
library/gvr-audio.jar;
3639
../../processing-core.zip;
37-
${env.ANDROID_SDK}/platforms/android-25/android.jar"
40+
${sdk.dir}/platforms/${android.platform}/android.jar"
3841
nowarn="true"
3942
compiler="org.eclipse.jdt.core.JDTCompilerAdapter">
4043
<compilerclasspath path="../../../processing/java/mode/org.eclipse.jdt.core.jar;

processing-android

Lines changed: 0 additions & 117 deletions
This file was deleted.

tools/SDKUpdater/build.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
<property name="processing.dir" value="../../../processing" />
66

77
<!-- path to the android sdk -->
8-
<property name="sdk.dir" value="/Users/andres/code/android/android-studio/sdk" />
8+
<property name="sdk.dir" value="/Users/andres/code/android/sdk" />
9+
10+
<!-- Library version -->
11+
<property name="lib.ver" value="25.3.2" />
912

1013
<target name="clean" description="Clean the build directories">
1114
<delete dir="bin" />
@@ -21,8 +24,8 @@
2124
encoding="UTF-8"
2225
includeAntRuntime="false"
2326
classpath="${processing.dir}/app/bin;
24-
${sdk.dir}/tools/lib/sdklib-25.3.2.jar;
25-
${sdk.dir}/tools/lib/repository-25.3.2.jar"
27+
${sdk.dir}/tools/lib/sdklib-${lib.ver}.jar;
28+
${sdk.dir}/tools/lib/repository-${lib.ver}.jar"
2629
nowarn="true"
2730
compiler="org.eclipse.jdt.core.JDTCompilerAdapter">
2831
<compilerclasspath path="${processing.dir}/java/mode/org.eclipse.jdt.core.jar;

0 commit comments

Comments
 (0)