Don't try to build CD-ROM support on Emscripten.

This commit is contained in:
Ryan C. Gordon 2017-07-09 17:28:33 -04:00
parent ffdc55f1e5
commit 083940aef1
2 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,6 @@ echo "Setting up Emscripten SDK environment..."
source "$ENVSCRIPT" source "$ENVSCRIPT"
echo "Setting up..." echo "Setting up..."
set -x
cd "$PHYSFSBASE" cd "$PHYSFSBASE"
rm -rf buildbot rm -rf buildbot
mkdir buildbot mkdir buildbot

View File

@ -61,6 +61,10 @@
# define PHYSFS_PLATFORM_BSD 1 # define PHYSFS_PLATFORM_BSD 1
# define PHYSFS_PLATFORM_UNIX 1 # define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 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__) #elif defined(unix) || defined(__unix__)
# define PHYSFS_PLATFORM_UNIX 1 # define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1 # define PHYSFS_PLATFORM_POSIX 1