Moved to CMake!

This commit is contained in:
Ryan C. Gordon 2007-03-10 06:32:52 +00:00
parent 7fc64a99cc
commit 6cdd5b5e57
35 changed files with 303 additions and 3544 deletions

View File

@ -6,7 +6,7 @@
Cleaned up whitespace/formatting in pocketpc.c. Updated PocketPC Cleaned up whitespace/formatting in pocketpc.c. Updated PocketPC
code to expect UTF-8 strings from the higher level. Changed code to expect UTF-8 strings from the higher level. Changed
PHYSFS_SUPPORTS_LZMA to PHYSFS_SUPPORTS_7Z. Killed some #ifdefs PHYSFS_SUPPORTS_LZMA to PHYSFS_SUPPORTS_7Z. Killed some #ifdefs
in physfs.c. in physfs.c. Moved to CMake...so long, autotools!
11052006 - More 7zip archiver work (thanks, Dennis!). Initial Unicode work. 11052006 - More 7zip archiver work (thanks, Dennis!). Initial Unicode work.
Minor BeOS realpath tweak. Minor BeOS realpath tweak.
09272006 - Reworked 7zip archiver (thanks, Dennis!). 09272006 - Reworked 7zip archiver (thanks, Dennis!).

296
CMakeLists.txt Normal file
View File

@ -0,0 +1,296 @@
# PhysicsFS; a portable, flexible file i/o abstraction.
# Copyright (C) 2007 Ryan C. Gordon.
#
# Please see the file LICENSE in the source's root directory.
PROJECT(PhysicsFS)
SET(PHYSFS_VERSION 1.1.2)
# I hate that they define "WIN32" ... we're about to move to Win64...I hope!
IF(WIN32 AND NOT WINDOWS)
SET(WINDOWS TRUE)
ENDIF(WIN32 AND NOT WINDOWS)
# Bleh, let's do it for "APPLE" too.
IF(APPLE AND NOT MACOSX)
SET(MACOSX TRUE)
ENDIF(APPLE AND NOT MACOSX)
INCLUDE(CheckIncludeFile)
INCLUDE(CheckLibraryExists)
INCLUDE(CheckCSourceCompiles)
INCLUDE_DIRECTORIES(.)
#INCLUDE_DIRECTORIES(platform)
#INCLUDE_DIRECTORIES(archivers)
# Fallback to older Mac OS X on PowerPC to support a wider range of systems...
IF(MACOSX)
IF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
ADD_DEFINITIONS(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -fno-common)
SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} "-mmacosx-version-min=10.2 -framework Carbon -framework IOKit")
ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
ENDIF(MACOSX)
# Add some gcc-specific command lines.
IF(CMAKE_COMPILER_IS_GNUCC)
# Always build with debug symbols...you can strip it later.
ADD_DEFINITIONS(-g -pipe -Wall -Werror -fsigned-char)
CHECK_C_SOURCE_COMPILES("
#if ((defined(__GNUC__)) && (__GNUC__ >= 4))
int main(int argc, char **argv) { int is_gcc4 = 1; return 0; }
#else
#error This is not gcc4.
#endif
" PHYSFS_IS_GCC4)
IF(PHYSFS_IS_GCC4)
ADD_DEFINITIONS(-fvisibility=hidden)
ENDIF(PHYSFS_IS_GCC4)
ENDIF(CMAKE_COMPILER_IS_GNUCC)
# Basic chunks of source code ...
SET(ZLIB_SRCS
zlib123/adler32.c
zlib123/compress.c
zlib123/crc32.c
zlib123/deflate.c
zlib123/gzio.c
zlib123/infback.c
zlib123/inffast.c
zlib123/inflate.c
zlib123/inftrees.c
zlib123/trees.c
zlib123/uncompr.c
zlib123/zutil.c
)
SET(LZMA_SRCS
lzma/7zBuffer.c
lzma/7zCrc.c
lzma/7zDecode.c
lzma/7zExtract.c
lzma/7zHeader.c
lzma/7zIn.c
lzma/7zItem.c
lzma/7zMethodID.c
lzma/LzmaDecode.c
lzma/LzmaStateDecode.c
)
SET(PHYSFS_SRCS
physfs.c
physfs_byteorder.c
physfs_unicode.c
archivers/dir.c
)
# platform layers ...
IF(UNIX)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} platform/posix.c)
IF(BEOS)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} platform/beos.cpp)
SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
ELSE(BEOS)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} platform/unix.c)
# !!! FIXME
# AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
CHECK_INCLUDE_FILE(sys/ucred.h HAVE_UCRED_H)
IF(HAVE_UCRED_H)
ADD_DEFINITIONS(-DPHYSFS_HAVE_SYS_UCRED_H=1)
SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
ENDIF(HAVE_UCRED_H)
CHECK_INCLUDE_FILE(mntent.h HAVE_MNTENT_H)
IF(HAVE_MNTENT_H)
ADD_DEFINITIONS(-DPHYSFS_HAVE_MNTENT_H=1)
SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
ENDIF(HAVE_MNTENT_H)
ENDIF(BEOS)
CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
IF(HAVE_PTHREAD_H)
SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
ELSE(HAVE_PTHREAD_H)
ADD_DEFINITIONS(-DPHYSFS_NO_PTHREADS_SUPPORT=1)
ENDIF(HAVE_PTHREAD_H)
ENDIF(UNIX)
IF(WINDOWS)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} platform/windows.c)
SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
# !!! FIXME: platform/pocketpc.c ... ?
ENDIF(WINDOWS)
IF(NOT PHYSFS_HAVE_CDROM_SUPPORT)
ADD_DEFINITIONS(-DPHYSFS_NO_CDROM_SUPPORT=1)
MESSAGE(WARNING " ***")
MESSAGE(WARNING " *** There is no CD-ROM support in this build!")
MESSAGE(WARNING " *** PhysicsFS will just pretend there are no discs.")
MESSAGE(WARNING " *** This may be fine, depending on how PhysicsFS is used,")
MESSAGE(WARNING " *** but is this what you REALLY wanted?")
MESSAGE(WARNING " *** (Maybe fix CMakeLists.txt, or write a platform driver?)")
MESSAGE(WARNING " ***")
ENDIF(NOT PHYSFS_HAVE_CDROM_SUPPORT)
IF(PHYSFS_HAVE_THREAD_SUPPORT)
ADD_DEFINITIONS(-D_REENTRANT -D_THREAD_SAFE)
ELSE(PHYSFS_HAVE_THREAD_SUPPORT)
MESSAGE(WARNING " ***")
MESSAGE(WARNING " *** There is no thread support in this build!")
MESSAGE(WARNING " *** PhysicsFS will NOT be reentrant!")
MESSAGE(WARNING " *** This may be fine, depending on how PhysicsFS is used,")
MESSAGE(WARNING " *** but is this what you REALLY wanted?")
MESSAGE(WARNING " *** (Maybe fix CMakeLists.txt, or write a platform driver?)")
MESSAGE(WARNING " ***")
ENDIF(PHYSFS_HAVE_THREAD_SUPPORT)
# Archivers ...
OPTION(PHYSFS_ARCHIVE_ZIP "Enable ZIP support" TRUE)
IF(PHYSFS_ARCHIVE_ZIP)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_ZIP=1)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/zip.c)
SET(PHYSFS_NEED_ZLIB TRUE)
ENDIF(PHYSFS_ARCHIVE_ZIP)
OPTION(PHYSFS_ARCHIVE_7Z "Enable 7zip support" TRUE)
IF(PHYSFS_ARCHIVE_7Z)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_7Z=1)
# !!! FIXME: rename to 7z.c?
SET(PHYSFS_SRCS ${PHYSFS_SRCS} ${LZMA_SRCS} archivers/lzma.c)
INCLUDE_DIRECTORIES(lzma)
ADD_DEFINITIONS(-D_LZMA_IN_CB=1)
ADD_DEFINITIONS(-D_LZMA_PROB32=1)
ADD_DEFINITIONS(-D_LZMA_SYSTEM_SIZE_T=1)
ADD_DEFINITIONS(-D_SZ_ONE_DIRECTORY=1)
ENDIF(PHYSFS_ARCHIVE_7Z)
OPTION(PHYSFS_ARCHIVE_GRP "Enable Build Engine GRP support" TRUE)
IF(PHYSFS_ARCHIVE_GRP)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_GRP=1)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/grp.c)
ENDIF(PHYSFS_ARCHIVE_GRP)
OPTION(PHYSFS_ARCHIVE_WAD "Enable Doom WAD support" TRUE)
IF(PHYSFS_ARCHIVE_WAD)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_WAD=1)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/wad.c)
ENDIF(PHYSFS_ARCHIVE_WAD)
OPTION(PHYSFS_ARCHIVE_HOG "Enable Descent I/II HOG support" TRUE)
IF(PHYSFS_ARCHIVE_HOG)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_HOG=1)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/hog.c)
ENDIF(PHYSFS_ARCHIVE_HOG)
OPTION(PHYSFS_ARCHIVE_MVL "Enable Descent I/II MVL support" TRUE)
IF(PHYSFS_ARCHIVE_MVL)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_MVL=1)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/mvl.c)
ENDIF(PHYSFS_ARCHIVE_MVL)
OPTION(PHYSFS_ARCHIVE_QPAK "Enable Quake I/II QPAK support" TRUE)
IF(PHYSFS_ARCHIVE_QPAK)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_QPAK=1)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/qpak.c)
ENDIF(PHYSFS_ARCHIVE_QPAK)
OPTION(PHYSFS_ARCHIVE_MIX "Enable Westwood MIX support" FALSE)
IF(PHYSFS_ARCHIVE_MIX)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_MIX=1)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} archivers/mix.c)
ENDIF(PHYSFS_ARCHIVE_MIX)
# See if some archiver required zlib, and see about using system version.
IF(PHYSFS_NEED_ZLIB)
CHECK_INCLUDE_FILE(zlib.h HAVE_ZLIB_H)
IF(HAVE_ZLIB_H)
CHECK_LIBRARY_EXISTS("z" "inflate" "" HAVE_LIBZ)
IF(HAVE_LIBZ)
SET(HAVE_SYSTEM_ZLIB TRUE)
ENDIF(HAVE_LIBZ)
ENDIF(HAVE_ZLIB_H)
IF(HAVE_SYSTEM_ZLIB)
OPTION(PHYSFS_INTERNAL_ZLIB "Link own zlib instead of system library" FALSE)
ELSE(HAVE_SYSTEM_ZLIB)
SET(PHYSFS_INTERNAL_ZLIB TRUE)
ENDIF(HAVE_SYSTEM_ZLIB)
IF(PHYSFS_INTERNAL_ZLIB)
INCLUDE_DIRECTORIES(zlib123)
ADD_DEFINITIONS(-DZ_PREFIX=1)
SET(PHYSFS_SRCS ${PHYSFS_SRCS} ${ZLIB_SRCS})
ELSE(PHYSFS_INTERNAL_ZLIB)
SET(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} z)
ENDIF(PHYSFS_INTERNAL_ZLIB)
ENDIF(PHYSFS_NEED_ZLIB)
ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
OPTION(PHYSFS_BUILD_TEST "Build test program." TRUE)
MARK_AS_ADVANCED(PHYSFS_BUILD_TEST)
IF(PHYSFS_BUILD_TEST)
CHECK_INCLUDE_FILE(readline/readline.h HAVE_READLINE_H)
CHECK_INCLUDE_FILE(readline/history.h HAVE_HISTORY_H)
IF(HAVE_READLINE_H AND HAVE_HISTORY_H)
SET(CMAKE_REQUIRED_LIBRARIES curses)
CHECK_LIBRARY_EXISTS("readline" "readline" "" HAVE_LIBREADLINE)
CHECK_LIBRARY_EXISTS("readline" "history" "" HAVE_LIBHISTORY)
IF(HAVE_LIBREADLINE AND HAVE_LIBHISTORY)
SET(HAVE_SYSTEM_READLINE TRUE)
SET(TEST_PHYSFS_LIBS ${TEST_PHYSFS_LIBS} " " readline curses)
ADD_DEFINITIONS(-DPHYSFS_HAVE_READLINE=1)
ENDIF(HAVE_LIBREADLINE AND HAVE_LIBHISTORY)
ENDIF(HAVE_READLINE_H AND HAVE_HISTORY_H)
ADD_EXECUTABLE(test_physfs test/test_physfs.c)
TARGET_LINK_LIBRARIES(test_physfs physfs ${TEST_PHYSFS_LIBS} ${OTHER_LDFLAGS})
ENDIF(PHYSFS_BUILD_TEST)
FIND_PACKAGE(Doxygen)
IF(DOXYGEN_FOUND)
ADD_CUSTOM_TARGET(docs ${DOXYGEN_EXECUTABLE} COMMENT "Building documentation")
ELSE(DOXYGEN_FOUND)
MESSAGE(STATUS "Doxygen not found. You won't be able to build documentation.")
ENDIF(DOXYGEN_FOUND)
MACRO(MESSAGE_BOOL_OPTION _NAME _VALUE)
IF(${_VALUE})
MESSAGE(STATUS " ${_NAME}: enabled")
ELSE(${_VALUE})
MESSAGE(STATUS " ${_NAME}: disabled")
ENDIF(${_VALUE})
ENDMACRO(MESSAGE_BOOL_OPTION)
MESSAGE(STATUS "PhysicsFS will build with the following options:")
MESSAGE_BOOL_OPTION("ZIP support" PHYSFS_ARCHIVE_ZIP)
MESSAGE_BOOL_OPTION("7zip support" PHYSFS_ARCHIVE_7Z)
MESSAGE_BOOL_OPTION("GRP support" PHYSFS_ARCHIVE_GRP)
MESSAGE_BOOL_OPTION("WAD support" PHYSFS_ARCHIVE_WAD)
MESSAGE_BOOL_OPTION("HOG support" PHYSFS_ARCHIVE_HOG)
MESSAGE_BOOL_OPTION("MVL support" PHYSFS_ARCHIVE_MVL)
MESSAGE_BOOL_OPTION("QPAK support" PHYSFS_ARCHIVE_QPAK)
MESSAGE_BOOL_OPTION("MIX support" PHYSFS_ARCHIVE_MIX)
MESSAGE_BOOL_OPTION("CD-ROM drive support" PHYSFS_HAVE_CDROM_SUPPORT)
MESSAGE_BOOL_OPTION("Thread safety" PHYSFS_HAVE_THREAD_SUPPORT)
MESSAGE_BOOL_OPTION("Build own zlib" PHYSFS_INTERNAL_ZLIB)
MESSAGE_BOOL_OPTION("Build test program" PHYSFS_BUILD_TEST)
IF(PHYSFS_BUILD_TEST)
MESSAGE_BOOL_OPTION(" Use readline in test program" HAVE_SYSTEM_READLINE)
ENDIF(PHYSFS_BUILD_TEST)
# end of CMakeLists.txt ...

View File

@ -1,169 +0,0 @@
lib_LTLIBRARIES = libphysfs.la
libphysfsincludedir = $(includedir)
libphysfsinclude_HEADERS = \
physfs.h
if BUILD_MACOSX
ZLIB_FILES = zlib123/adler32.c \
zlib123/compress.c \
zlib123/crc32.c \
zlib123/crc32.h \
zlib123/deflate.c \
zlib123/deflate.h \
zlib123/gzio.c \
zlib123/infback.c \
zlib123/inffast.c \
zlib123/inffast.h \
zlib123/inffixed.h \
zlib123/inflate.c \
zlib123/inflate.h \
zlib123/inftrees.c \
zlib123/inftrees.h \
zlib123/trees.c \
zlib123/trees.h \
zlib123/uncompr.c \
zlib123/zconf.h \
zlib123/zlib.h \
zlib123/zutil.c \
zlib123/zutil.h
if BUILD_ZLIB
ZLIB_SRC = $(ZLIB_FILES)
ZLIB_INC = -I$(top_srcdir)/zlib123
ZLIB_EXTRADIST =
else
ZLIB_SRC =
ZLIB_INC =
ZLIB_EXTRADIST = $(ZLIB_FILES)
endif
libphysfs_la_SOURCES = \
physfs.c \
physfs_internal.h \
physfs_byteorder.c \
archivers/dir.c \
archivers/grp.c \
archivers/wad.c \
archivers/hog.c \
archivers/mvl.c \
archivers/zip.c \
archivers/qpak.c \
archivers/mix.c \
platform/unix.c \
platform/posix.c \
$(ZLIB_SRC)
libphysfs_la_INCLUDES = $(ZLIB_INC)
libphysfs_la_LDFLAGS = \
-release $(LT_RELEASE) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
if BUILD_TEST_PHYSFS
bin_PROGRAMS = test_physfs
test_physfs_INCLUDES = -I$(top_srcdir)
test_physfs_LDADD = $(top_srcdir)/libphysfs.la
test_physfs_SOURCES = test/test_physfs.c
TEST_EXTRADIST =
else
TEST_EXTRADIST = test/test_physfs.c
endif
EXTRA_DIST = \
CREDITS \
LICENSE \
CHANGELOG \
INSTALL \
TODO \
Doxyfile \
CWProjects.sit \
physfs.spec \
physfs.dsp \
test_physfs.dsp \
physfs_static.dsp \
physfs.vcproj \
test_physfs.vcproj \
platform/skeleton.c \
platform/macclassic.c \
platform/win32.c \
platform/beos.cpp \
platform/os2.c \
extras/physfsrwops.h \
extras/physfsrwops.c \
extras/physfshttpd.c \
Makefile.am.oldautomake \
Makefile.am.newautomake \
zlib_license_change.txt \
makeos2.cmd \
PBProjects \
$(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
else
SUBDIRS = platform archivers zlib123 lzma . test extras
libphysfs_la_SOURCES = \
physfs.c \
physfs_internal.h \
physfs_unicode.c \
physfs_byteorder.c
if BUILD_ZLIB
ZLIB_LIB = zlib123/libz.la
else
ZLIB_LIB =
endif
if BUILD_LZMA
LZMA_LIB = lzma/liblzma.la
else
LZMA_LIB =
endif
libphysfs_la_LDFLAGS = \
-release $(LT_RELEASE) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
libphysfs_la_LIBADD = \
archivers/libarchivers.la \
platform/libplatform.la \
$(ZLIB_LIB) \
$(LZMA_LIB)
EXTRA_DIST = \
CREDITS \
LICENSE \
CHANGELOG \
INSTALL \
TODO \
Doxyfile \
PBProjects \
CWProjects.sit \
physfsMPW.make \
physfs.spec.in \
physfs.spec \
physfs.dsp \
test_physfs.dsp \
physfs_static.dsp \
physfs.vcproj \
test_physfs.vcproj \
zlib_license_change.txt \
makeos2.cmd
endif
dist-hook:
perl -w -pi -e 'chomp; $$_ .= "\r\n";' $(distdir)/*.dsp $(distdir)/*.vcproj
mkdir $(distdir)/docs
echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
echo >> $(distdir)/docs/README
rm -rf `find $(distdir) -name "CVS" -type d`
rm -rf `find $(distdir) -name ".svn" -type d`

View File

@ -1,56 +0,0 @@
lib_LTLIBRARIES = libphysfs.la
SUBDIRS = platform archivers zlib123 . test extras
libphysfsincludedir = $(includedir)
libphysfsinclude_HEADERS = \
physfs.h
libphysfs_la_SOURCES = \
physfs.c \
physfs_internal.h \
physfs_unicode.c \
physfs_byteorder.c
if BUILD_ZLIB
ZLIB_LIB = zlib123/libz.la
else
ZLIB_LIB =
endif
libphysfs_la_LDFLAGS = \
-release $(LT_RELEASE) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
libphysfs_la_LIBADD = \
archivers/libarchivers.la \
platform/libplatform.la \
$(ZLIB_LIB)
EXTRA_DIST = \
CREDITS \
LICENSE \
CHANGELOG \
INSTALL \
TODO \
Doxyfile \
PBProjects \
CWProjects.sit \
physfsMPW.make \
physfs.spec.in \
physfs.spec \
physfs.dsp \
physfs_static.dsp \
test_physfs.dsp \
physfs.vcproj \
test_physfs.vcproj \
zlib_license_change.txt \
makeos2.cmd
dist-hook:
perl -w -pi -e 'chomp; $$_ .= "\r\n";' $(distdir)/*.dsp $(distdir)/*.vcproj
mkdir $(distdir)/docs
echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
echo >> $(distdir)/docs/README
rm -rf `find $(distdir) -name "CVS" -type d`
rm -rf `find $(distdir) -name ".svn" -type d`

View File

@ -1,25 +0,0 @@
This is an unofficial OS X Project Builder environment to build a physfs Framework.
Built with:
physfs 0.1.9
Project Builder 2.0.1
OS X (10.2 Jaguar)
This project was created by brainlessly mimicking the SDL (Simple Direct Media
Layer) Project Builder projects. The scripts were also shamelessly taken from
SDL as well. There may be errors. Use at your own risk!
This project creates 2 installer packages:
- A physfs framework for development (for people who wish to link to physfs)
- A physfs framework for users (for users who run programs that used the above
package
This project also builds static libraries for physfs (to build physfs and physfsc) but
they are not installed anywhere. If you wish to use them, you will need to
copy them out of the build directory.
Eric Wing <ewing2121@yahoo.com>

View File

@ -1,12 +0,0 @@
EXPORTS = SDL_sound.x
HEADERS = \
../../SDL_sound.h
all: $(EXPORTS)
$(EXPORTS): $(HEADERS)
perl gendef.pl $(HEADERS) >$@ || rm $@
clean:
rm -f $(EXPORTS)

View File

@ -1,20 +0,0 @@
#!/usr/bin/perl
#
# Program to take a set of header files and generate DLL export definitions
while ( ($file = shift(@ARGV)) ) {
if ( ! defined(open(FILE, $file)) ) {
warn "Couldn't open $file: $!\n";
next;
}
$printed_header = 0;
$file =~ s,.*/,,;
while (<FILE>) {
if ( /^__EXPORT__.*\s\**([^\s\(]+)\(/ ) {
print "\t_$1\n";
} elsif ( /^__EXPORT__.*\s\**([^\s\(]+)$/ ) {
print "\t_$1\n";
}
}
close(FILE);
}

View File

@ -1,73 +0,0 @@
_PHYSFS_getLinkedVersion
_PHYSFS_init
_PHYSFS_deinit
_PHYSFS_supportedArchiveTypes
_PHYSFS_freeList
_PHYSFS_getLastError
_PHYSFS_getDirSeparator
_PHYSFS_permitSymbolicLinks
_PHYSFS_getCdRomDirs
_PHYSFS_getBaseDir
_PHYSFS_getUserDir
_PHYSFS_getWriteDir
_PHYSFS_setWriteDir
_PHYSFS_addToSearchPath
_PHYSFS_removeFromSearchPath
_PHYSFS_getSearchPath
_PHYSFS_setSaneConfig
_PHYSFS_mkdir
_PHYSFS_delete
_PHYSFS_getRealDir
_PHYSFS_enumerateFiles
_PHYSFS_exists
_PHYSFS_isDirectory
_PHYSFS_isSymbolicLink
_PHYSFS_getLastModTime
_PHYSFS_openWrite
_PHYSFS_openAppend
_PHYSFS_openRead
_PHYSFS_close
_PHYSFS_read
_PHYSFS_write
_PHYSFS_eof
_PHYSFS_tell
_PHYSFS_seek
_PHYSFS_fileLength
_PHYSFS_setBuffer
_PHYSFS_flush
_PHYSFS_swapSLE16
_PHYSFS_swapULE16
_PHYSFS_swapSLE32
_PHYSFS_swapULE32
_PHYSFS_swapSLE64
_PHYSFS_swapULE64
_PHYSFS_swapSBE16
_PHYSFS_swapUBE16
_PHYSFS_swapSBE32
_PHYSFS_swapUBE32
_PHYSFS_swapSBE64
_PHYSFS_swapUBE64
_PHYSFS_readSLE16
_PHYSFS_readULE16
_PHYSFS_readSBE16
_PHYSFS_readUBE16
_PHYSFS_readSLE32
_PHYSFS_readULE32
_PHYSFS_readSBE32
_PHYSFS_readUBE32
_PHYSFS_readSLE64
_PHYSFS_readULE64
_PHYSFS_readSBE64
_PHYSFS_readUBE64
_PHYSFS_writeSLE16
_PHYSFS_writeULE16
_PHYSFS_writeSBE16
_PHYSFS_writeUBE16
_PHYSFS_writeSLE32
_PHYSFS_writeULE32
_PHYSFS_writeSBE32
_PHYSFS_writeUBE32
_PHYSFS_writeSLE64
_PHYSFS_writeULE64
_PHYSFS_writeSBE64
_PHYSFS_writeUBE64

View File

@ -1,20 +0,0 @@
#!/bin/csh
###
## This script creates "PBProjects.tar.gz" in the parent directory
###
# remove build products
rm -rf build
# remove Finder info files
find . -name ".DS_Store" -exec rm "{}" ";"
# remove user project prefs
find . -name "*.pbxuser" -exec rm "{}" ";"
# create the archive
(cd .. && gnutar -zcvf PBProjects.tar.gz PBProjects)

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +0,0 @@
This is an example portable filesystem.
The API can be found in the file ~/Library/Frameworks/physfs.framework/Headers/physfs.h
The source code is available from:
http://www.icculus.org/physfs/
This library is distributed under the terms of the zlib license: http://www.opensource.org/licenses/zlib-license.php

View File

@ -1,3 +0,0 @@
This package installs the developer version of the physfs library and associated files.
The physfs Framework is installed into ~/Library/Frameworks.

View File

@ -1,19 +0,0 @@
#!/bin/sh
# finish up the installation
# this script should be executed using the sudo command
# this file is copied to physfs.post_install and physfs.post_upgrade
# inside the .pkg bundle
echo "Running post-install script"
umask 022
ROOT=/Developer/Documentation/SDL
echo "Moving physfs.framework to ~/Library/Frameworks"
# move SDL to its proper home, so the target stationary works
mkdir -p ~/Library/Frameworks
/Developer/Tools/CpMac -r $ROOT/physfs.framework ~/Library/Frameworks
rm -rf $ROOT/physfs.framework
echo "Precompiling Header"
# precompile header for speedier compiles
/usr/bin/cc -I $HOME/Library/Frameworks/SDL.framework/Headers -precomp ~/Library/Frameworks/physfs.framework/Headers/physfs.h -o ~/Library/Frameworks/physfs.framework/Headers/physfs.p

View File

@ -1,51 +0,0 @@
#!/bin/sh
# Generic script to create a package with Project Builder in mind
# There should only be one version of this script for all projects!
FRAMEWORK="$1"
VARIANT="$2"
if test "$VARIANT" = "devel" ; then
PACKAGE="$FRAMEWORK-devel"
PACKAGE_RESOURCES="pkg-support/devel-resources"
else
PACKAGE="$FRAMEWORK"
PACKAGE_RESOURCES="pkg-support/resources"
fi
echo "Building package for $FRAMEWORK.framework"
echo "Will fetch resources from $PACKAGE_RESOURCES"
echo "Will create the package $PACKAGE.pkg"
# create a copy of the framework
mkdir -p build/pkg-tmp
/Developer/Tools/CpMac -r "build/$FRAMEWORK.framework" build/pkg-tmp/
if test "$VARIANT" = "standard" ; then
rm -rf "build/pkg-tmp/$FRAMEWORK.framework/Headers"
rm -rf "build/pkg-tmp/$FRAMEWORK.framework/Versions/Current/Headers"
fi
rm -rf build/pkg-tmp/$FRAMEWORK.framework/Resources/pbdevelopment.plist
rm -rf $PACKAGE_RESOURCES/.DS_Store
# create the .pkg
package build/pkg-tmp "pkg-support/$PACKAGE.info" -d build -r "$PACKAGE_RESOURCES"
if test "$VARIANT" = "devel" ; then
# create install scripts
DIR="build/$PACKAGE.pkg"
cp "$DIR/install.sh" "$DIR/$PACKAGE.post_install"
mv "$DIR/install.sh" "$DIR/$PACKAGE.post_upgrade"
# add execute flag to scripts
chmod 755 "$DIR/$PACKAGE.post_install" "$DIR/$PACKAGE.post_upgrade"
fi
# remove temporary files
rm -rf build/pkg-tmp
# compress
(cd build; tar -zcvf "$PACKAGE.pkg.tar.gz" "$PACKAGE.pkg")

View File

@ -1,15 +0,0 @@
Title PhysFS-Devel 1.0.0
Version 1
Description PhysicsFS Library for Mac OS X (http://www.icculus.org/physfs/)
DefaultLocation /Developer/Documentation/physfs
Diskname (null)
DeleteWarning
NeedsAuthorization YES
DisableStop NO
UseUserMask YES
Application NO
Relocatable NO
Required NO
InstallOnly NO
RequiresReboot NO
InstallFat NO

View File

@ -1,15 +0,0 @@
Title PhysFS 1.0.0
Version 1
Description PhysicsFS Library for Mac OS X (http://www.icculus.org/physfs/)
DefaultLocation /Library/Frameworks
Diskname (null)
DeleteWarning
NeedsAuthorization NO
DisableStop NO
UseUserMask NO
Application NO
Relocatable YES
Required NO
InstallOnly NO
RequiresReboot NO
InstallFat NO

View File

@ -1,6 +0,0 @@
This is an example portable file system.
The source code is available from:
http://www.icculus.org/physfs/
This library is distributed under the terms of the zlib license: http://www.opensource.org/licenses/zlib-license.php

View File

@ -1,3 +0,0 @@
This package installs the physfs library into /Library/Frameworks. You can also install it in
<your home directory>/Library/Frameworks if your access privileges are not high enough.

View File

@ -1,29 +0,0 @@
#!/bin/csh
###
## This script removes the Developer physfs package
###
setenv HOME_DIR ~
sudo -v -p "Enter administrator password to remove physfs: "
sudo rm -rf "$HOME_DIR/Library/Frameworks/physfs.framework"
# will only remove the Frameworks dir if empty (since we put it there)
sudo rmdir "$HOME_DIR/Library/Frameworks"
#sudo rm -r "$HOME_DIR/Readme physfs Developer.txt"
sudo rm -r "/Developer/Documentation/physfs"
sudo rm -r "/Developer/Documentation/ManPages/man1/physfs"*
#sudo rm -r "/Developer/ProjectBuilder Extras/Project Templates/Application/physfs Application"
#sudo rm -r "/Developer/ProjectBuilder Extras/Target Templates/physfs"
sudo rm -r "/Library/Receipts/physfs-devel.pkg"
# rebuild apropos database
sudo /usr/libexec/makewhatis
unsetenv HOME_DIR

1
TODO
View File

@ -59,7 +59,6 @@ Stuff:
- Is -Wall enabled? - Is -Wall enabled?
- Make mutexes recursive, so callbacks can call into the API. - Make mutexes recursive, so callbacks can call into the API.
- Archivers need abstracted i/o to read from memory or files (archives in archives?) - Archivers need abstracted i/o to read from memory or files (archives in archives?)
- Move to CMake.
// end of TODO ... // end of TODO ...

View File

@ -1,22 +0,0 @@
noinst_LTLIBRARIES = libarchivers.la
INCLUDES = -I$(top_srcdir)
if BUILD_ZLIB
INCLUDES += -I$(top_srcdir)/zlib123
endif
if BUILD_LZMA
INCLUDES += -I$(top_srcdir)/lzma
endif
libarchivers_la_SOURCES = \
dir.c \
grp.c \
wad.c \
hog.c \
mvl.c \
zip.c \
lzma.c \
qpak.c \
mix.c

View File

@ -21,20 +21,24 @@
#define __PHYSICSFS_INTERNAL__ #define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h" #include "physfs_internal.h"
#ifndef _LZMA_IN_CB
#define _LZMA_IN_CB #define _LZMA_IN_CB
/* Use callback for input data */ /* Use callback for input data */
#endif
/* #define _LZMA_OUT_READ */ /* #define _LZMA_OUT_READ */
/* Use read function for output data */ /* Use read function for output data */
#ifndef _LZMA_PROB32
#define _LZMA_PROB32 #define _LZMA_PROB32
/* It can increase speed on some 32-bit CPUs, /* It can increase speed on some 32-bit CPUs,
but memory usage will be doubled in that case */ but memory usage will be doubled in that case */
#endif
#ifndef _LZMA_SYSTEM_SIZE_T
#define _LZMA_SYSTEM_SIZE_T #define _LZMA_SYSTEM_SIZE_T
/* Use system's size_t. You can use it to enable 64-bit sizes supporting */ /* Use system's size_t. You can use it to enable 64-bit sizes supporting */
#endif
#include "7zIn.h" #include "7zIn.h"
#include "7zCrc.h" #include "7zCrc.h"

View File

@ -1,22 +0,0 @@
#!/bin/sh
set -e
echo "Initial preparation...this can take awhile, so sit tight..."
rm -f Makefile.am
perl -w -e 'use File::Copy; exit 0 if (-f "Makefile.am"); my $x = `automake --version |head -n 1`; chomp($x); $x = 0.0 if ($x !~ s/\A.*?(\d+\.\d+).*\Z/$1/); if ($x < 1.5) { copy("./Makefile.am.oldautomake", "./Makefile.am"); } else { copy("./Makefile.am.newautomake", "./Makefile.am"); }'
aclocal
# MacOS X renames GNU libtool to "glibtool", since they have something
# else called "libtool" already...
if [ -x /usr/bin/glibtoolize ]; then
glibtoolize --automake --copy --force
else
libtoolize --automake --copy --force
fi
autoheader
automake --foreign --add-missing --copy
autoconf
echo "You are now ready to run ./configure ..."

View File

@ -1,598 +0,0 @@
# Process this file with autoconf to produce a configure script.
AC_INIT(physfs.c)
dnl ---------------------------------------------------------------------
dnl System/version info
dnl ---------------------------------------------------------------------
# Making releases:
# MICRO_VERSION += 1;
# INTERFACE_AGE += 1;
# BINARY_AGE += 1;
# if any functions have been added, set INTERFACE_AGE to 0.
# if backwards compatibility has been broken,
# set BINARY_AGE and INTERFACE_AGE to 0.
MAJOR_VERSION=1
MINOR_VERSION=0
MICRO_VERSION=1
INTERFACE_AGE=1
BINARY_AGE=1
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
AC_SUBST(MAJOR_VERSION)
AC_SUBST(MINOR_VERSION)
AC_SUBST(MICRO_VERSION)
AC_SUBST(INTERFACE_AGE)
AC_SUBST(BINARY_AGE)
AC_SUBST(VERSION)
# libtool versioning
LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
LT_REVISION=$INTERFACE_AGE
LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
dnl Detect the canonical host and target build environment
AC_CANONICAL_SYSTEM
dnl Setup for automake
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(physfs, $VERSION)
dnl ---------------------------------------------------------------------
dnl Compilers and other tools
dnl ---------------------------------------------------------------------
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_LIBTOOL_WIN32_DLL
LIBTOOL="libtool"
AM_PROG_LIBTOOL
AC_CHECK_PROG(we_have_sed, sed, yes, no)
dnl ---------------------------------------------------------------------
dnl Debug mode?
dnl ---------------------------------------------------------------------
AC_ARG_ENABLE(debug,
[ --enable-debug enable debug mode [default=no]],
, enable_debug=no)
if test x$enable_debug = xyes; then
if test x$ac_cv_prog_cc_g = xyes; then
PHYSFSCFLAGS="$PHYSFSCFLAGS -g -O0"
else
PHYSFSCFLAGS="$PHYSFSCFLAGS -O0"
fi
PHYSFSCFLAGS="$PHYSFSCFLAGS -Werror -Wall"
AC_DEFINE([DEBUG], 1, [define if debug build is enabled])
AC_DEFINE([DEBUG_CHATTER], 1, [define if debug chatter is enabled])
else
PHYSFSCFLAGS="$PHYSFSCFLAGS -O2"
AC_DEFINE([NDEBUG], 1, [define if debug build is disabled])
fi
dnl ---------------------------------------------------------------------
dnl Have GCC's -fvisibility option?
dnl ---------------------------------------------------------------------
AC_MSG_CHECKING(for GCC -fvisibility=hidden option)
have_gcc_fvisibility=no
visibility_CFLAGS="-fvisibility=hidden"
save_CFLAGS="$CFLAGS"
CFLAGS="$save_CFLAGS $visibility_CFLAGS"
AC_TRY_COMPILE([
int placeholder = 1;
],[
],[
have_gcc_fvisibility=yes
])
AC_MSG_RESULT($have_gcc_fvisibility)
CFLAGS="$save_CFLAGS"
if test x$have_gcc_fvisibility = xyes; then
PHYSFSCFLAGS="$PHYSFSCFLAGS $visibility_CFLAGS"
fi
dnl ---------------------------------------------------------------------
dnl Profile sorts, etc?
dnl ---------------------------------------------------------------------
AC_ARG_ENABLE(profiling,
[ --enable-profiling do algorithm profiling [default=no]],
, enable_profiling=no)
if test x$enable_profiling = xyes; then
AC_DEFINE([PHYSFS_PROFILING], 1, [define to profile sorting, etc algorithms])
fi
dnl ---------------------------------------------------------------------
dnl Build test program?
dnl ---------------------------------------------------------------------
AC_ARG_ENABLE(testprog,
[ --enable-testprog build test program [default=yes]],
, enable_testprog=yes)
dnl ---------------------------------------------------------------------
dnl Checks for libraries.
dnl ---------------------------------------------------------------------
require_zlib="no"
dnl Check for zip archiver inclusion...
AC_ARG_ENABLE(zip,
[ --enable-zip enable ZIP support [default=yes]],
, enable_zip=yes)
if test x$enable_zip = xyes; then
AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled])
require_zlib="yes"
fi
require_lzma="no"
dnl Check for lzma archiver inclusion...
AC_ARG_ENABLE(lzma,
[ --enable-lzma enable lzma support [default=yes]],
, enable_lzma=yes)
if test x$enable_lzma = xyes; then
AC_DEFINE([PHYSFS_SUPPORTS_LZMA], 1, [define if lzma support is enabled])
require_lzma="yes"
fi
dnl Check for grp archiver inclusion...
AC_ARG_ENABLE(grp,
[ --enable-grp enable Build Engine GRP support [default=yes]],
, enable_grp=yes)
if test x$enable_grp = xyes; then
AC_DEFINE([PHYSFS_SUPPORTS_GRP], 1, [define if grp support is enabled])
fi
dnl Check for wad archiver inclusion...
AC_ARG_ENABLE(wad,
[ --enable-wad enable Doom WAD support [default=yes]],
, enable_wad=yes)
if test x$enable_wad = xyes; then
AC_DEFINE([PHYSFS_SUPPORTS_WAD], 1, [define if wad support is enabled])
fi
dnl Check for hog archiver inclusion...
AC_ARG_ENABLE(hog,
[ --enable-hog enable Descent I/II HOG support [default=yes]],
, enable_hog=yes)
if test x$enable_hog = xyes; then
AC_DEFINE([PHYSFS_SUPPORTS_HOG], 1, [define if hog support is enabled])
fi
dnl Check for mvl archiver inclusion...
AC_ARG_ENABLE(mvl,
[ --enable-mvl enable Descent II MVL support [default=yes]],
, enable_mvl=yes)
if test x$enable_mvl = xyes; then
AC_DEFINE([PHYSFS_SUPPORTS_MVL], 1, [define if mvl support is enabled])
fi
dnl Check for qpak archiver inclusion...
AC_ARG_ENABLE(qpak,
[ --enable-qpak enable Quake PAK support [default=yes]],
, enable_qpak=yes)
if test x$enable_qpak = xyes; then
AC_DEFINE([PHYSFS_SUPPORTS_QPAK], 1, [define if qpak support is enabled])
fi
dnl Check for mix archiver inclusion...
AC_ARG_ENABLE(mix,
[ --enable-mix enable Westwood MIX support [default=no]],
, enable_mix=no)
if test x$enable_mix = xyes; then
AC_DEFINE([PHYSFS_SUPPORTS_MIX], 1, [define if mix support is enabled])
fi
dnl Check if we should statically link the included zlib...
AC_ARG_ENABLE(internal-zlib,
[ --enable-internal-zlib use included zlib [default=only if needed]],
, enable_internal_zlib=maybe)
dnl Check for zlib if needed.
have_external_zlib="no"
if test x$enable_internal_zlib != xyes; then
if test x$require_zlib = xyes; then
AC_CHECK_HEADER(zlib.h, have_zlib_hdr=yes)
AC_CHECK_LIB(z, zlibVersion, have_zlib_lib=yes)
if test x$have_zlib_hdr = xyes -a x$have_zlib_lib = xyes; then
have_external_zlib="yes"
fi
fi
fi
AC_MSG_CHECKING([what zlib to use])
dnl no zlib is needed at all if we aren't supporting ZIP files.
if test x$require_zlib = xno; then
enable_internal_zlib="no"
enable_external_zlib="no"
AC_MSG_RESULT([no zlib needed])
else
if test x$enable_internal_zlib = xmaybe; then
if test x$have_external_zlib = xyes; then
enable_internal_zlib="no"
enable_external_zlib="yes"
else
enable_internal_zlib="yes"
enable_external_zlib="no"
fi
else
if test x$enable_internal_zlib = xno -a x$have_external_zlib = xyes; then
enable_internal_zlib="no"
enable_external_zlib="yes"
fi
fi
if test x$enable_internal_zlib = xyes; then
AC_MSG_RESULT([internal zlib])
PHYSFSCFLAGS="$PHYSFSCFLAGS -DZ_PREFIX"
else
if test x$enable_external_zlib = xyes; then
AC_MSG_RESULT([external zlib])
LIBS="$LIBS -lz"
else
AC_MSG_ERROR([Need zlib, but you disabled our copy and have no system lib])
fi
fi
fi
dnl determine if we should include readline support...
AC_ARG_ENABLE(readline,
[ --enable-readline use GNU readline in test program [default=yes]],
, enable_readline=yes)
if test x$enable_readline = xyes; then
AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes)
AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lcurses)
AC_CHECK_HEADER(readline/history.h, have_history_hdr=yes)
AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lcurses)
if test x$have_readline_hdr = xyes -a x$have_readline_lib = xyes; then
if test x$have_history_hdr = xyes -a x$have_history_lib = xyes; then
AC_DEFINE([PHYSFS_HAVE_READLINE], 1, [define if we have readline])
have_readline="yes"
fi
fi
fi
dnl !!! FIXME: Not sure how to detect this...
dnl check for 64-bit llseek()...
dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
if test x$have_llseek = xyes; then
AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
fi
dnl determine if we should use the stubbed pthread code.
AC_ARG_ENABLE(pthreads,
[ --enable-pthreads include POSIX threads support [default=yes]],
, enable_pthreads=yes)
if test x$enable_pthreads = xyes; then
AC_CHECK_HEADER(pthread.h, have_pthread_hdr=yes)
if test x$have_pthread_hdr != xyes; then
enable_pthreads=no
fi
fi
dnl determine if we should use the stubbed CD-ROM detection code.
AC_ARG_ENABLE(cdrom,
[ --enable-cdrom include CD-ROM support [default=yes]],
, enable_cdrom=yes)
if test x$enable_cdrom = xyes; then
dnl reset this and let header detection reenable...
enable_cdrom=no
dnl BSD systems use sys/ucred.h for getting mounted volumes.
dnl Linux and others use mntent.h.
AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
if test x$have_ucred_hdr = xyes; then
AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
enable_cdrom=yes
fi
AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
if test x$have_mntent_hdr = xyes; then
AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
enable_cdrom=yes
fi
fi
dnl determine language.
AC_ARG_ENABLE(language,
[ --enable-language=lang Select natural language. [default=english]],
physfslang=`echo $enable_language |tr A-Z a-z`, physfslang=english)
AC_MSG_CHECKING([if language choice is supported])
physfs_valid_lang=no
if test x$physfslang = xenglish; then
physfs_valid_lang=yes
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_ENGLISH, [define desired natural language])
fi
if test x$physfslang = xgerman; then
physfs_valid_lang=yes
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_GERMAN, [define desired natural language])
fi
if test x$physfslang = xfrench; then
physfs_valid_lang=yes
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_FRENCH, [define desired natural language])
fi
if test x$physfslang = xspanish; then
physfs_valid_lang=yes
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_SPANISH, [define desired natural language])
fi
if test x$physfslang = xportuguese-br; then
physfs_valid_lang=yes
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_PORTUGUESE_BR, [define desired natural language])
fi
if test x$physfslang = xrussian-koi8-r; then
physfs_valid_lang=yes
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_KOI8_R, [define desired natural language])
fi
if test x$physfslang = xrussian-cp1251; then
physfs_valid_lang=yes
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_CP866, [define desired natural language])
fi
if test x$physfslang = xrussian-cp866; then
physfs_valid_lang=yes
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_CP866, [define desired natural language])
fi
if test x$physfslang = xrussian-iso-8859-5; then
physfs_valid_lang=yes
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_ISO_8859_5, [define desired natural language])
fi
if test x$physfslang = xportuguese-br; then
physfs_valid_lang=yes
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_PORTUGUESE_BR, [define desired natural language])
fi
dnl Add other language checks here...
AC_MSG_RESULT([$physfs_valid_lang])
if test x$physfs_valid_lang = xno; then
AC_MSG_WARN([***])
AC_MSG_WARN([*** You've asked for "$physfslang" language support...])
AC_MSG_WARN([*** ...but we don't support that.])
AC_MSG_WARN([*** You could choose another language,])
AC_MSG_WARN([*** but is this what you REALLY wanted?])
AC_MSG_WARN([*** Please see the LANG section of physfs_internal.h])
AC_MSG_WARN([*** for info on writing a translation.])
AC_MSG_WARN([***])
AC_MSG_WARN([*** Currently known languages:])
AC_MSG_WARN([*** --enable-language=english])
AC_MSG_WARN([*** --enable-language=spanish])
AC_MSG_WARN([*** --enable-language=german])
AC_MSG_WARN([*** --enable-language=french])
AC_MSG_WARN([*** --enable-language=spanish])
AC_MSG_WARN([*** --enable-language=portuguese-br])
AC_MSG_WARN([*** --enable-language=russian-koi8-r])
AC_MSG_WARN([*** --enable-language=russian-cp1251])
AC_MSG_WARN([*** --enable-language=russian-cp866])
AC_MSG_WARN([*** --enable-language=russian-iso-8859-5])
AC_MSG_WARN([*** --enable-language=portuguese-br])
AC_MSG_WARN([***])
AC_MSG_ERROR([*** unsupported language. stop.])
fi
have_non_posix_threads=no
AC_MSG_CHECKING([if this is BeOS])
if test x$target_os = xbeos; then
this_is_beos=yes
have_non_posix_threads=yes
enable_cdrom=yes
enable_pthreads=no
LIBS="$LIBS -lroot -lbe"
else
this_is_beos=no
fi
AC_MSG_RESULT([$this_is_beos])
AC_MSG_CHECKING([if this is Cygwin])
if test x$target_os = xcygwin; then
this_is_cygwin=yes
PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32"
enable_cdrom=yes
enable_pthreads=no
have_non_posix_threads=yes
else
this_is_cygwin=no
fi
AC_MSG_RESULT([$this_is_cygwin])
AC_MSG_CHECKING([if this is mingw])
if test x$target_os = xmingw32; then
this_is_mingw=yes
fi
if test x$target_os = xmingw32msvc; then
this_is_mingw=yes
fi
if test x$this_is_mingw = xyes; then
PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32"
enable_cdrom=yes
enable_pthreads=no
have_non_posix_threads=yes
else
this_is_mingw=no
fi
AC_MSG_RESULT([$this_is_mingw])
this_is_macosx=no
if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is MacOS X])
x=`echo $target_os |sed "s/darwin.*/darwin/"`
if test x$x = xdarwin -a x$target_vendor = xapple; then
this_is_macosx=yes
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,IOKit"
fi
AC_MSG_RESULT([$this_is_macosx])
fi
this_is_freebsd=no
if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is FreeBSD])
x=`echo $target_os |tr A-Z a-z |sed "s/.*freebsd.*/freebsd/"`
if test x$x = xfreebsd; then
this_is_freebsd=yes
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread"
fi
AC_MSG_RESULT([$this_is_freebsd])
fi
this_is_openbsd=no
if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is OpenBSD])
x=`echo $target_os |tr A-Z a-z |sed "s/.*openbsd.*/openbsd/"`
if test x$x = xopenbsd; then
this_is_openbsd=yes
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread"
fi
AC_MSG_RESULT([$this_is_openbsd])
fi
this_is_atheos=no
if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is AtheOS])
x=`echo $target_os |tr A-Z a-z |sed "s/.*atheos.*/atheos/"`
if test x$x = xatheos; then
this_is_atheos=yes
enable_cdrom=no
enable_pthreads=no
fi
AC_MSG_RESULT([$this_is_atheos])
fi
this_is_os2=no
if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is OS/2])
x=`echo $target_os |tr A-Z a-z |sed "s/.*os2.*/os2/"`
if test x$x = xos2; then
this_is_os2=yes
have_non_posix_threads=yes
enable_cdrom=yes
enable_pthreads=no
PHYSFSCFLAGS="$PHYSFSCFLAGS -DOS2"
fi
AC_MSG_RESULT([$this_is_os2])
fi
this_is_mint=no
if test x$we_have_sed = xyes; then
AC_MSG_CHECKING([if this is MiNT])
x=`echo $target_os |tr A-Z a-z |sed "s/.*mint.*/mint/"`
if test x$x = xmint; then
this_is_mint=yes
enable_cdrom=no
enable_pthreads=no
fi
AC_MSG_RESULT([$this_is_mint])
fi
dnl Some platform might disable this, so check this down here...
if test x$enable_cdrom != xyes; then
AC_DEFINE([PHYSFS_NO_CDROM_SUPPORT], 1, [define if we have no CD support])
AC_MSG_WARN([***])
AC_MSG_WARN([*** There is no CD-ROM support in this build!])
AC_MSG_WARN([*** PhysicsFS will just pretend there are no discs.])
AC_MSG_WARN([*** This may be fine, depending on how PhysicsFS is used,])
AC_MSG_WARN([*** but is this what you REALLY wanted?])
AC_MSG_WARN([*** (Maybe fix configure.in, or write a platform driver?)])
AC_MSG_WARN([***])
fi
if test x$enable_pthreads != xyes; then
AC_DEFINE([PHYSFS_NO_PTHREADS_SUPPORT], 1, [define if we have no POSIX threads support])
if test x$have_non_posix_threads != xyes; then
AC_MSG_WARN([***])
AC_MSG_WARN([*** There is no thread support in this build!])
AC_MSG_WARN([*** PhysicsFS will NOT be reentrant!])
AC_MSG_WARN([*** This may be fine, depending on how PhysicsFS is used,])
AC_MSG_WARN([*** but is this what you REALLY wanted?])
AC_MSG_WARN([*** (Maybe fix configure.in, or write a platform driver?)])
AC_MSG_WARN([***])
fi
fi
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h assert.h])
# Checks for typedefs, structures, and compiler characteristics.
dnl AC_C_CONST
dnl AC_TYPE_SIZE_T
# Checks for library functions.
# This is only in the bleeding edge autoconf distro...
#AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([memset strrchr])
AC_CHECK_SIZEOF(int, 4)
CFLAGS="$PHYSFSCFLAGS $CFLAGS -D_REENTRANT -D_THREAD_SAFE"
LDFLAGS="$LDFLAGS $PHYSFSLDFLAGS -no-undefined"
dnl Add Makefile conditionals
AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)
AM_CONDITIONAL(BUILD_LZMA, test x$enable_lzma = xyes)
AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes)
AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes)
AM_CONDITIONAL(BUILD_BEOS, test x$this_is_beos = xyes)
AM_CONDITIONAL(BUILD_CYGWIN, test x$this_is_cygwin = xyes)
AM_CONDITIONAL(BUILD_READLINE, test x$have_readline = xyes)
AC_OUTPUT([
Makefile
archivers/Makefile
platform/Makefile
zlib123/Makefile
lzma/Makefile
test/Makefile
extras/Makefile
physfs.spec
])
dnl end of configure.in ...

View File

@ -1,13 +0,0 @@
EXTRA_DIST = \
physfsrwops.c \
physfsrwops.h \
abs-file.h \
physfshttpd.c \
globbing.h \
globbing.c \
selfextract.c \
ignorecase.c \
ignorecase.h \
PhysFS.NET \
physfs_rb

View File

@ -1,6 +0,0 @@
if BUILD_LZMA
noinst_LTLIBRARIES = liblzma.la
liblzma_la_CFLAGS = -D_LZMA_IN_CB -D_LZMA_PROB32 -D_LZMA_SYSTEM_SIZE_T -D_SZ_ONE_DIRECTORY
liblzma_la_SOURCES = 7zBuffer.c 7zCrc.c 7zHeader.c 7zIn.c 7zItem.c \
7zMethodID.c 7zExtract.c 7zDecode.c LzmaDecode.c
endif

View File

@ -1,244 +0,0 @@
# Microsoft Developer Studio Project File - Name="physfs" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
CFG=physfs - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "physfs.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "physfs.mak" CFG="physfs - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "physfs - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "physfs - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "physfs - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Ignore_Export_Lib 0
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MDd /W3 /WX /Gm /ZI /Od /I "." /I "zlibwin32" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "Z_PREFIX" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_WAD" /D "PHYSFS_SUPPORTS_ZIP" /D "PHYSFS_SUPPORTS_QPAK" /D "PHYSFS_SUPPORTS_MVL" /D "PHYSFS_SUPPORTS_HOG" /YX /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /WX /Zi /Od /I "." /I "zlib123" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "Z_PREFIX" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_WAD" /D "PHYSFS_SUPPORTS_ZIP" /D "PHYSFS_SUPPORTS_QPAK" /D "PHYSFS_SUPPORTS_MVL" /D "PHYSFS_SUPPORTS_HOG" /FR /YX /FD /GZ /c
# SUBTRACT CPP /X
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
# SUBTRACT BASE LINK32 /incremental:no
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"../src/Debug/physfs.dll"
# SUBTRACT LINK32 /pdb:none /force
!ELSEIF "$(CFG)" == "physfs - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Ignore_Export_Lib 0
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /WX /O2 /I "." /I "zlibwin32" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_WAD" /D "PHYSFS_SUPPORTS_ZIP" /YX /FD /c
# ADD CPP /nologo /MD /W3 /WX /O2 /I "." /I "zlib123" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHYSFS_EXPORTS" /D "PHYSFS_SUPPORTS_GRP" /D "PHYSFS_SUPPORTS_WAD" /D "PHYSFS_SUPPORTS_ZIP" /D "PHYSFS_SUPPORTS_QPAK" /D "PHYSFS_SUPPORTS_HOG" /D "PHYSFS_SUPPORTS_MVL" /YX /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 zlibwin32\zlibstat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
!ENDIF
# Begin Target
# Name "physfs - Win32 Debug"
# Name "physfs - Win32 Release"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\zlib123\adler32.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\compress.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\crc32.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\deflate.c
# End Source File
# Begin Source File
SOURCE=.\archivers\dir.c
# End Source File
# Begin Source File
SOURCE=.\archivers\grp.c
# End Source File
# Begin Source File
SOURCE=.\archivers\hog.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\inffast.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\inflate.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\inftrees.c
# End Source File
# Begin Source File
SOURCE=.\archivers\mvl.c
# End Source File
# Begin Source File
SOURCE=.\physfs.c
# End Source File
# Begin Source File
SOURCE=.\physfs_byteorder.c
# End Source File
# Begin Source File
SOURCE=.\physfs_unicode.c
# End Source File
# Begin Source File
SOURCE=.\archivers\qpak.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\trees.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\uncompr.c
# End Source File
# Begin Source File
SOURCE=.\archivers\wad.c
# End Source File
# Begin Source File
SOURCE=.\platform\windows.c
# End Source File
# Begin Source File
SOURCE=.\archivers\zip.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\zutil.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\zlib123\deflate.h
# End Source File
# Begin Source File
SOURCE=.\zlib123\infblock.h
# End Source File
# Begin Source File
SOURCE=.\zlib123\infcodes.h
# End Source File
# Begin Source File
SOURCE=.\zlib123\inffast.h
# End Source File
# Begin Source File
SOURCE=.\zlib123\inffixed.h
# End Source File
# Begin Source File
SOURCE=.\zlib123\inftrees.h
# End Source File
# Begin Source File
SOURCE=.\zlib123\infutil.h
# End Source File
# Begin Source File
SOURCE=.\physfs.h
# End Source File
# Begin Source File
SOURCE=.\physfs_internal.h
# End Source File
# Begin Source File
SOURCE=.\zlib123\trees.h
# End Source File
# Begin Source File
SOURCE=.\zlib123\zconf.h
# End Source File
# Begin Source File
SOURCE=.\zlib123\zlib.h
# End Source File
# Begin Source File
SOURCE=.\zlib123\zutil.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project

View File

@ -1,271 +0,0 @@
<?xml version="1.0" encoding = "Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.00"
Name="physfs"
ProjectGUID="{5D67886A-8D97-400E-BF1A-D9873B77ACEA}"
SccProjectName=""
SccLocalPath="">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug Multithreaded DLL|Win32"
OutputDirectory=".\Debug"
IntermediateDirectory=".\Debug"
ConfigurationType="2"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".,zlib123"
PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;_USRDLL;Z_PREFIX;PHYSFS_EXPORTS;PHYSFS_SUPPORTS_GRP;PHYSFS_SUPPORTS_WAD;PHYSFS_SUPPORTS_ZIP;PHYSFS_SUPPORTS_QPAK;PHYSFS_SUPPORTS_HOG;PHYSFS_SUPPORTS_MVL"
ExceptionHandling="FALSE"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
BufferSecurityCheck="TRUE"
DisableLanguageExtensions="FALSE"
ForceConformanceInForLoopScope="TRUE"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=".\Debug/physfs.pch"
AssemblerListingLocation=".\Debug/"
ObjectFile=".\Debug/"
ProgramDataBaseFileName=".\Debug/"
WarningLevel="2"
WarnAsError="TRUE"
SuppressStartupBanner="TRUE"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"
CompileAs="1"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/MACHINE:I386"
ShowProgress="0"
OutputFile=".\Debug/physfs.dll"
Version="0.1.7"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile=".\Debug/physfs.pdb"
OptimizeForWindows98="1"
ImportLibrary=".\Debug/physfs.lib"/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="_DEBUG"
MkTypLibCompatible="TRUE"
SuppressStartupBanner="TRUE"
TargetEnvironment="1"
TypeLibraryName=".\Debug/physfs.tlb"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
</Configuration>
<Configuration
Name="Release Multithreaded DLL|Win32"
OutputDirectory=".\Release"
IntermediateDirectory=".\Release"
ConfigurationType="2"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2"
WholeProgramOptimization="TRUE">
<Tool
Name="VCCLCompilerTool"
GlobalOptimizations="TRUE"
InlineFunctionExpansion="1"
EnableIntrinsicFunctions="TRUE"
FavorSizeOrSpeed="1"
OmitFramePointers="FALSE"
AdditionalIncludeDirectories=".,zlib123"
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;_USRDLL;Z_PREFIX;PHYSFS_EXPORTS;PHYSFS_SUPPORTS_GRP;PHYSFS_SUPPORTS_WAD;PHYSFS_SUPPORTS_ZIP;PHYSFS_SUPPORTS_QPAK;PHYSFS_SUPPORTS_HOG;PHYSFS_SUPPORTS_MVL"
StringPooling="TRUE"
ExceptionHandling="FALSE"
RuntimeLibrary="2"
BufferSecurityCheck="FALSE"
EnableFunctionLevelLinking="TRUE"
DisableLanguageExtensions="FALSE"
ForceConformanceInForLoopScope="TRUE"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=".\Release/physfs.pch"
AssemblerListingLocation=".\Release/"
ObjectFile=".\Release/"
ProgramDataBaseFileName=".\Release/"
WarningLevel="2"
WarnAsError="TRUE"
SuppressStartupBanner="TRUE"
Detect64BitPortabilityProblems="TRUE"
CompileAs="1"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/MACHINE:I386"
ShowProgress="0"
OutputFile=".\Release/physfs.dll"
Version="0.1.7"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
ProgramDatabaseFile=".\Release/physfs.pdb"
OptimizeReferences="2"
EnableCOMDATFolding="2"
OptimizeForWindows98="1"
ImportLibrary=".\Release/physfs.lib"/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="NDEBUG"
MkTypLibCompatible="TRUE"
SuppressStartupBanner="TRUE"
TargetEnvironment="1"
TypeLibraryName=".\Release/physfs.tlb"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
</Configuration>
</Configurations>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
<File
RelativePath=".\zlib123\adler32.c">
</File>
<File
RelativePath=".\zlib123\compress.c">
</File>
<File
RelativePath=".\zlib123\crc32.c">
</File>
<File
RelativePath=".\zlib123\deflate.c">
</File>
<File
RelativePath=".\archivers\dir.c">
</File>
<File
RelativePath=".\archivers\grp.c">
</File>
<File
RelativePath="archivers\hog.c">
</File>
<File
RelativePath=".\zlib123\inffast.c">
</File>
<File
RelativePath=".\zlib123\inflate.c">
</File>
<File
RelativePath=".\zlib123\inftrees.c">
</File>
<File
RelativePath="archivers\mvl.c">
</File>
<File
RelativePath=".\physfs.c">
</File>
<File
RelativePath=".\physfs_byteorder.c">
</File>
<File
RelativePath=".\physfs_unicode.c">
</File>
<File
RelativePath="archivers\qpak.c">
</File>
<File
RelativePath=".\zlib123\trees.c">
</File>
<File
RelativePath=".\zlib123\uncompr.c">
</File>
<File
RelativePath=".\archivers\wad.c">
</File>
<File
RelativePath=".\platform\windows.c">
</File>
<File
RelativePath=".\archivers\zip.c">
</File>
<File
RelativePath=".\zlib123\zutil.c">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl">
<File
RelativePath=".\zlib123\deflate.h">
</File>
<File
RelativePath=".\zlib123\infblock.h">
</File>
<File
RelativePath=".\zlib123\infcodes.h">
</File>
<File
RelativePath=".\zlib123\inffast.h">
</File>
<File
RelativePath=".\zlib123\inffixed.h">
</File>
<File
RelativePath=".\zlib123\inftrees.h">
</File>
<File
RelativePath=".\zlib123\infutil.h">
</File>
<File
RelativePath=".\physfs.h">
</File>
<File
RelativePath=".\physfs_internal.h">
</File>
<File
RelativePath=".\zlib123\trees.h">
</File>
<File
RelativePath=".\zlib123\zconf.h">
</File>
<File
RelativePath=".\zlib123\zlib.h">
</File>
<File
RelativePath=".\zlib123\zutil.h">
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View File

@ -1,194 +0,0 @@
# Microsoft Developer Studio Project File - Name="physfs_static" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=physfs_static - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "physfs_static.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "physfs_static.mak" CFG="physfs_static - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "physfs_static - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "physfs_static - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName "Perforce Project"
# PROP Scc_LocalPath "."
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "physfs_static - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "physfs_static___Win32_Release"
# PROP BASE Intermediate_Dir "physfs_static___Win32_Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "physfs_static_release"
# PROP Intermediate_Dir "physfs_static_release"
# PROP Target_Dir ""
MTL=midl.exe
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# ADD CPP /nologo /G6 /MT /W3 /GX /O2 /I "zlib123" /I "." /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D PHYSFS_SUPPORTS_QPAK=1 /D PHYSFS_SUPPORTS_ZIP=1 /D PHYSFS_SUPPORTS_HOG=1 /D PHYSFS_SUPPORTS_GRP=1 /D PHYSFS_SUPPORTS_WAD=1 /D PHYSFS_SUPPORTS_MVL=1 /D Z_PREFIX=1 /YX /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ELSEIF "$(CFG)" == "physfs_static - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "physfs_static___Win32_Debug"
# PROP BASE Intermediate_Dir "physfs_static___Win32_Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "physfs_static_debug"
# PROP Intermediate_Dir "physfs_static_debug"
# PROP Target_Dir ""
MTL=midl.exe
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
# ADD CPP /nologo /G6 /MTd /W3 /Gm /GX /ZI /Od /I "zlib123" /I "." /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D PHYSFS_SUPPORTS_QPAK=1 /D PHYSFS_SUPPORTS_ZIP=1 /D PHYSFS_SUPPORTS_HOG=1 /D PHYSFS_SUPPORTS_GRP=1 /D PHYSFS_SUPPORTS_WAD=1 /D PHYSFS_SUPPORTS_MVL=1 /D Z_PREFIX=1 /FR /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ENDIF
# Begin Target
# Name "physfs_static - Win32 Release"
# Name "physfs_static - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Group "zlib"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\zlib123\adler32.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\compress.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\crc32.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\deflate.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\infback.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\inffast.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\inflate.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\inftrees.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\trees.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\uncompr.c
# End Source File
# Begin Source File
SOURCE=.\zlib123\zutil.c
# End Source File
# End Group
# Begin Source File
SOURCE=.\archivers\dir.c
# End Source File
# Begin Source File
SOURCE=.\archivers\grp.c
# End Source File
# Begin Source File
SOURCE=.\archivers\hog.c
# End Source File
# Begin Source File
SOURCE=.\archivers\mvl.c
# End Source File
# Begin Source File
SOURCE=.\physfs.c
# End Source File
# Begin Source File
SOURCE=.\physfs_byteorder.c
# End Source File
# Begin Source File
SOURCE=.\physfs_unicode.c
# End Source File
# Begin Source File
SOURCE=.\archivers\qpak.c
# End Source File
# Begin Source File
SOURCE=.\archivers\wad.c
# End Source File
# Begin Source File
SOURCE=.\platform\windows.c
# End Source File
# Begin Source File
SOURCE=.\archivers\zip.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\physfs.h
# End Source File
# Begin Source File
SOURCE=.\physfs_internal.h
# End Source File
# End Group
# End Target
# End Project

View File

@ -1,26 +0,0 @@
noinst_LTLIBRARIES = libplatform.la
INCLUDES = -I$(top_srcdir)
if BUILD_BEOS
libplatform_la_SOURCES = \
posix.c \
beos.cpp
else
libplatform_la_SOURCES = \
unix.c \
windows.c \
posix.c \
os2.c
endif
EXTRA_DIST = \
skeleton.c \
macclassic.c \
windows.c \
pocketpc.c \
unix.c \
os2.c \
beos.cpp

View File

@ -1,14 +0,0 @@
if BUILD_TEST_PHYSFS
bin_PROGRAMS = test_physfs
INCLUDES = -I$(top_srcdir)
if BUILD_READLINE
test_physfs_LDFLAGS="-lreadline -lcurses"
endif
test_physfs_LDADD = ../libphysfs.la
test_physfs_SOURCES = test_physfs.c
endif

View File

@ -1,102 +0,0 @@
# Microsoft Developer Studio Project File - Name="test_physfs" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=test_physfs - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "test_physfs.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "test_physfs.mak" CFG="test_physfs - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "test_physfs - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "test_physfs - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "test_physfs - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 Release\physfs.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
!ELSEIF "$(CFG)" == "test_physfs - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 Debug\physfs.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
!ENDIF
# Begin Target
# Name "test_physfs - Win32 Release"
# Name "test_physfs - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\test\test_physfs.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project

View File

@ -1,141 +0,0 @@
<?xml version="1.0" encoding = "Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.00"
Name="test_physfs"
ProjectGUID="{D22063E7-734D-4246-B78B-4A3CBC536FD7}"
SccProjectName=""
SccLocalPath="">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory=".\Debug"
IntermediateDirectory=".\Debug"
ConfigurationType="1"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="."
PreprocessorDefinitions="WIN32,_DEBUG,_CONSOLE"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\Debug/test_physfs.pch"
AssemblerListingLocation=".\Debug/"
ObjectFile=".\Debug/"
ProgramDataBaseFileName=".\Debug/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
DebugInformationFormat="4"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/MACHINE:I386"
AdditionalDependencies="Debug\physfs.lib odbc32.lib odbccp32.lib"
OutputFile=".\Debug/test_physfs.exe"
LinkIncremental="2"
SuppressStartupBanner="TRUE"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile=".\Debug/test_physfs.pdb"
SubSystem="1"/>
<Tool
Name="VCMIDLTool"
TypeLibraryName=".\Debug/test_physfs.tlb"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory=".\Release"
IntermediateDirectory=".\Release"
ConfigurationType="1"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
InlineFunctionExpansion="1"
AdditionalIncludeDirectories="."
PreprocessorDefinitions="WIN32,NDEBUG,_CONSOLE"
StringPooling="TRUE"
RuntimeLibrary="2"
EnableFunctionLevelLinking="TRUE"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\Release/test_physfs.pch"
AssemblerListingLocation=".\Release/"
ObjectFile=".\Release/"
ProgramDataBaseFileName=".\Release/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/MACHINE:I386"
AdditionalDependencies="Release\physfs.lib odbc32.lib odbccp32.lib"
OutputFile=".\Release/test_physfs.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
ProgramDatabaseFile=".\Release/test_physfs.pdb"
SubSystem="1"/>
<Tool
Name="VCMIDLTool"
TypeLibraryName=".\Release/test_physfs.tlb"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
</Configuration>
</Configurations>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
<File
RelativePath=".\test\test_physfs.c">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl">
</Filter>
<Filter
Name="Resource Files"
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View File

@ -1,29 +0,0 @@
X = adler32.c \
compress.c \
crc32.c \
crc32.h \
deflate.c \
deflate.h \
gzio.c \
infback.c \
inffast.c \
inffast.h \
inffixed.h \
inflate.c \
inflate.h \
inftrees.c \
inftrees.h \
trees.c \
trees.h \
uncompr.c \
zconf.h \
zlib.h \
zutil.c \
zutil.h
if BUILD_ZLIB
noinst_LTLIBRARIES = libz.la
libz_la_SOURCES = $(X)
endif
EXTRA_DIST = $(X)