Don't try to build CD-ROM support on Emscripten.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 09 Jul 2017 17:28:33 -0400
changeset 1426 0265fa9cdc4c
parent 1425 176efd35457c
child 1427 7986f0591f70
Don't try to build CD-ROM support on Emscripten.
extras/buildbot-emscripten.sh
src/physfs_platforms.h
--- a/extras/buildbot-emscripten.sh	Sun Jul 09 17:09:40 2017 -0400
+++ b/extras/buildbot-emscripten.sh	Sun Jul 09 17:28:33 2017 -0400
@@ -50,7 +50,6 @@
 source "$ENVSCRIPT"
 
 echo "Setting up..."
-set -x
 cd "$PHYSFSBASE"
 rm -rf buildbot
 mkdir buildbot
--- a/src/physfs_platforms.h	Sun Jul 09 17:09:40 2017 -0400
+++ b/src/physfs_platforms.h	Sun Jul 09 17:28:33 2017 -0400
@@ -61,6 +61,10 @@
 #  define PHYSFS_PLATFORM_BSD 1
 #  define PHYSFS_PLATFORM_UNIX 1
 #  define PHYSFS_PLATFORM_POSIX 1
+#elif defined(__EMSCRIPTEN__)
+#  define PHYSFS_NO_CDROM_SUPPORT 1
+#  define PHYSFS_PLATFORM_UNIX 1
+#  define PHYSFS_PLATFORM_POSIX 1
 #elif defined(unix) || defined(__unix__)
 #  define PHYSFS_PLATFORM_UNIX 1
 #  define PHYSFS_PLATFORM_POSIX 1