Skip to content

Commit 7bac0a2

Browse files
committed
move cardboard packages to gvrsdk folder
1 parent 28980f3 commit 7bac0a2

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

libraries/cardboard/build.xml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,25 @@
4444
<target name="dist" depends="build" description="Creates distribution package">
4545
<mkdir dir="dist/tmp/cardboard" />
4646

47-
<!-- copy library files (jar and gstreamer natives) -->
47+
<!-- copy library files (jar and natives) -->
4848
<copy todir="dist/tmp/cardboard/library">
4949
<fileset dir="library" />
50-
</copy>
50+
</copy>
5151

5252
<!-- copy examples -->
5353
<copy todir="dist/tmp/cardboard/examples">
5454
<fileset dir="examples" />
55-
</copy>
55+
</copy>
5656

5757
<!-- copy source -->
5858
<copy todir="dist/tmp/cardboard/src">
5959
<fileset dir="src" />
60-
</copy>
60+
</copy>
61+
62+
<!-- copy GVR SDK (needed by the mode to build the carboard app) -->
63+
<copy todir="dist/tmp/cardboard/gvrsdk">
64+
<fileset dir="gvrsdk" />
65+
</copy>
6166

6267
<!-- copy properties -->
6368
<copy file="library.properties" tofile="dist/tmp/cardboard/library.properties" />

src/processing/mode/android/AndroidBuild.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ public File createProject(boolean wear) throws IOException, SketchException {
353353
////////////////////////////////////////////////////////////////////////
354354
// first step: unpack the cardboard packages in the project's
355355
// libs folder:
356-
File audioZipFile = mode.getContentFile("libraries/cardboard/library/cardboard_audio.zip");
357-
File commonZipFile = mode.getContentFile("libraries/cardboard/library/cardboard_common.zip");
358-
File coreZipFile = mode.getContentFile("libraries/cardboard/library/cardboard_core.zip");
356+
File audioZipFile = mode.getContentFile("libraries/cardboard/gvrsdk/cardboard_audio.zip");
357+
File commonZipFile = mode.getContentFile("libraries/cardboard/gvrsdk/cardboard_common.zip");
358+
File coreZipFile = mode.getContentFile("libraries/cardboard/gvrsdk/cardboard_core.zip");
359359
AndroidMode.extractFolder(audioZipFile, libsFolder, true);
360360
AndroidMode.extractFolder(commonZipFile, libsFolder, true);
361361
AndroidMode.extractFolder(coreZipFile, libsFolder, true);

0 commit comments

Comments
 (0)