Skip to content

Commit 43bfd40

Browse files
committed
gradle and ant builds work
1 parent d83197d commit 43bfd40

File tree

6 files changed

+37
-778
lines changed

6 files changed

+37
-778
lines changed

build.gradle

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ allprojects {
1919

2020
repositories {
2121
jcenter()
22-
flatDir dirs: "$rootDir/core/library"
23-
flatDir dirs: "$rootDir/core/build/libs"
24-
flatDir dirs: "$rootDir/libraries/vr/library"
22+
flatDir dirs: "$rootDir/libs/core/library"
23+
flatDir dirs: "$rootDir/libs/core/build/libs"
24+
flatDir dirs: "$rootDir/libs/vr/library"
2525
flatDir dirs: "$sdkdir/tools/lib"
2626
flatDir dirs: android_platform
2727
flatDir dirs: android_tools_lib
@@ -33,8 +33,8 @@ allprojects {
3333

3434
dependencies {
3535
compile name: 'android'
36-
compile project(":core")
37-
compile project(":libraries:vr")
36+
compile project(":libs:core")
37+
compile project(":libs:vr")
3838
compile group: 'org.processing', name: 'core', version: '3.3.6'
3939
compile group: 'org.processing', name: 'pde', version: '3.3.6'
4040
compile group: 'org.processing', name: 'java-mode', version: '3.3.6'
@@ -70,7 +70,7 @@ task dist {
7070
Files.copy(file("$buildDir/libs/processing-android.jar").toPath(),
7171
file("mode/AndroidMode.jar").toPath(), REPLACE_EXISTING);
7272

73-
Files.copy(file("core/build/libs/processing-core.zip").toPath(),
73+
Files.copy(file("libs/core/build/libs/processing-core.zip").toPath(),
7474
file("$root/processing-core.zip").toPath(), REPLACE_EXISTING);
7575

7676
Files.copy(file("mode.properties").toPath(),
@@ -81,16 +81,16 @@ task dist {
8181
FileUtils.copyDirectory(file("tools/SDKUpdater/src"),
8282
file("$root/tools/SDKUpdater/src"))
8383

84-
FileUtils.copyDirectory(file("libraries/vr/examples"),
85-
file("$root/libraries/vr/examples"))
86-
FileUtils.copyDirectory(file("libraries/vr/gvrsdk"),
87-
file("$root/libraries/vr/gvrsdk"))
88-
FileUtils.copyDirectory(file("libraries/vr/library"),
89-
file("$root/libraries/vr/library"))
90-
FileUtils.copyDirectory(file("libraries/vr/src"),
91-
file("$root/libraries/vr/src"))
92-
Files.copy(file("libraries/vr/library.properties").toPath(),
93-
file("$root/libraries/vr/library.properties").toPath(), REPLACE_EXISTING);
84+
FileUtils.copyDirectory(file("libs/vr/examples"),
85+
file("$root/libs/vr/examples"))
86+
FileUtils.copyDirectory(file("libs/vr/gvrsdk"),
87+
file("$root/libs/vr/gvrsdk"))
88+
FileUtils.copyDirectory(file("libs/vr/library"),
89+
file("$root/libs/vr/library"))
90+
FileUtils.copyDirectory(file("libs/vr/src"),
91+
file("$root/libs/vr/src"))
92+
Files.copy(file("libs/vr/library.properties").toPath(),
93+
file("$root/libs/vr/library.properties").toPath(), REPLACE_EXISTING);
9494

9595
ZipUtil.pack(file("$buildDir/zip"), new File("release/AndroidMode.zip"))
9696
Files.copy(file("mode.properties").toPath(),

build.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
includeAntRuntime="false"
3636
classpath="${processing.dir}/core/library/core.jar;
3737
${processing.dir}/java/mode/JavaMode.jar;
38-
${processing.dir}/java/mode/org.eclipse.core.runtime.jar;
39-
${processing.dir}/app/pde.jar;
40-
mode/gradle-tooling-api-4.4.1.jar"
38+
${processing.dir}/java/mode/org.eclipse.core.runtime.jar;
39+
${processing.dir}/app/pde.jar;
40+
mode/gradle-tooling-api-4.4.1.jar"
4141
debug="on">
4242
<src path="src" />
4343
</javac>
@@ -64,12 +64,12 @@
6464
<include name="theme/**" />
6565
<include name="tools/SDKUpdater/tool/**" />
6666
<include name="tools/SDKUpdater/src/**" />
67-
<include name="libraries/vr/library.properties" />
68-
<include name="libraries/vr/examples/**" />
69-
<include name="libraries/vr/gvrsdk/**" />
70-
<include name="libraries/vr/lib/**" />
71-
<include name="libraries/vr/library/**" />
72-
<include name="libraries/vr/src/**" />
67+
<include name="libs/vr/library.properties" />
68+
<include name="libs/vr/examples/**" />
69+
<include name="libs/vr/gvrsdk/**" />
70+
<include name="libs/vr/lib/**" />
71+
<include name="libs/vr/library/**" />
72+
<include name="libs/vr/src/**" />
7373
<exclude name="**/._*" />
7474
</zipfileset>
7575
</zip>
@@ -79,19 +79,19 @@
7979
</target>
8080

8181
<!-- - - - - - - - - - - - - - - - - - -->
82-
<!-- Subprojects: Core, Libraries -->
82+
<!-- Subprojects: libraries, tools -->
8383
<!-- - - - - - - - - - - - - - - - - - -->
8484

8585
<target name="subprojects-clean">
86-
<subant buildpath="core" target="clean"/>
87-
<subant buildpath="tools/SDKUpdater" target="clean"/>
88-
<subant buildpath="libraries/vr" target="clean"/>
86+
<subant buildpath="libs/core" target="clean"/>
87+
<subant buildpath="libs/vr" target="clean"/>
88+
<subant buildpath="tools/SDKUpdater" target="clean"/>
8989
</target>
9090

9191
<target name="subprojects-build">
92-
<subant buildpath="core" target="build"/>
92+
<subant buildpath="libs/core" target="build"/>
93+
<subant buildpath="libs/vr" target="build"/>
9394
<subant buildpath="tools/SDKUpdater" target="build"/>
94-
<subant buildpath="libraries/vr" target="build"/>
9595
</target>
9696

9797
</project>

0 commit comments

Comments
 (0)