preparing update of physfs

This commit is contained in:
fysx
2013-12-20 21:19:16 +01:00
parent f95fbc8a70
commit 3a8901d831
579 changed files with 0 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
repo: 7672c9962ce627edaaa67ff54fe4ad8f9a46dc2b
node: 92a35b8603186c536e4cc126458dfc2d2809b19c
branch: stable-2.0
latesttag: release-2.0.2
latesttagdistance: 1
+2
View File
@@ -0,0 +1,2 @@
syntax:glob
cmake-build
+16
View File
@@ -0,0 +1,16 @@
0bb92a5f0fffd2452cc737346e8b796c213a5688 release-0.1.1
2f2afcbd8abd784f738ac45b0368044763d63748 release-0.1.0
3c7cf50a58fbf220154acd4bdfdf00a21f259eb7 release-0.1.8
473b50402f55b2340fc286775d1b78d18a810362 release-0.1.3
60b5f566a2585d78b2ffadd8d9c16299d0340820 release-1.0.0
67aff4091bf129f7167ed87f937b15f31093e19e release-0.1.9
6ad1722bbcaec1265cb74c9b7be13fe02a547d37 release-0.1.7
8f3ccaaea1cd5dc19235882494d6102e5e9176fb release-0.1.2
c966316c89981bea6ccaa2c2909bb303bfeeb82b release-0.1.6
d2f04ab4b4127757234af6b30bfc98ad4ee9cb15 release-0.1.4
d94f1ccac8095509c57ad640d54796aea0d260f0 release-0.1.5
fe0c1d6f40afa6fca09a277a1ade59231f16c66f release-1.1.1
5d70fca3be361258edfb59c3edaba5abe75a1e88 release-2.0.0
df04959950eb3830c39adfa983789f70f86062d7 release-1.1.0
94771621792f838aa4cacf9a1e1f4f86c1cb0711 release-2.0.1
236afd18dd8cae34adb9897024bdcecc1dc8ca5d release-2.0.2
+36
View File
@@ -0,0 +1,36 @@
LOCAL_PATH:= $(call my-dir)
# libogg
include $(CLEAR_VARS)
LOCAL_MODULE := libphysfs
LOCAL_CFLAGS := -fexceptions -g -Dlinux -Dunix \
-DPHYSFS_NO_CDROM_SUPPORT=1 -DAL_ALEXT_PROTOTYPES=1 \
-DHAVE_GCC_DESTRUCTOR=1 -DOPT_GENERIC -DREAL_IS_FLOAT \
-DPHYSFS_SUPPORTS_APK=1 -DPHYSFS_SUPPORTS_ZIP=1 \
-DPHYSFS_SUPPORTS_ZIP=1 -DPHYSFS_SUPPORTS_7Z=1 \
-DPHYSFS_SUPPORTS_GRP=1 -DPHYSFS_SUPPORTS_QPAK=1 \
-DPHYSFS_SUPPORTS_HOG=1 -DPHYSFS_SUPPORTS_MVL=1 \
-DPHYSFS_SUPPORTS_WAD=1
LOCAL_CPPFLAGS := ${LOCAL_CFLAGS}
LOCAL_C_INCLUDES := \
${LOCAL_PATH}
LOCAL_SRC_FILES := \
$(filter-out \
, $(subst $(LOCAL_PATH)/,,\
${LOCAL_PATH}/lzma/C/7zCrc.c \
${LOCAL_PATH}/lzma/C/Compress/Lzma/LzmaDecode.c \
$(wildcard ${LOCAL_PATH}/*.c) \
$(wildcard ${LOCAL_PATH}/lzma/C/Archive/7z/*.c) \
$(wildcard ${LOCAL_PATH}/lzma/C/Compress/Branch/*.c) \
$(wildcard ${LOCAL_PATH}/zlib123/*.c) \
$(wildcard ${LOCAL_PATH}/archivers/*.c) \
$(wildcard ${LOCAL_PATH}/platform/*.c) ))
# $(info libphysfs: include dirs $(LOCAL_C_INCLUDES))
# $(info libphysfs: src files $(LOCAL_SRC_FILES))
include $(BUILD_STATIC_LIBRARY)
+11
View File
@@ -0,0 +1,11 @@
The changelog is no longer maintained by hand. It made sense to have a single
timeline when we were using CVS, but modern revision control tools make this
redundant, at best.
If you want a list of changes, updated in real time, just point your web
browser here:
http://hg.icculus.org/icculus/physfs/
+378
View File
@@ -0,0 +1,378 @@
# This is the CMakeCache file.
# For build in directory: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
########################
# EXTERNAL cache entries
########################
//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar
//For backwards compatibility, what version of CMake commands and
// syntax should this version of CMake try to support.
CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.4
//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=
//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON
//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during Release with Debug Info builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g
//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc
//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local
//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld
//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm
//Path to a program.
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
//Path to a program.
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=PhysicsFS
//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO
//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip
//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF
//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
//Graphviz Dot tool for using Doxygen
DOXYGEN_DOT_EXECUTABLE:FILEPATH=/usr/bin/dot
DOXYGEN_DOT_PATH:FILEPATH=/usr/bin
//Doxygen documentation generation tool (http://www.doxygen.org)
DOXYGEN_EXECUTABLE:FILEPATH=DOXYGEN_EXECUTABLE-NOTFOUND
//Single output directory for building all executables.
EXECUTABLE_OUTPUT_PATH:PATH=
//Path to a file.
HISTORY_H:PATH=HISTORY_H-NOTFOUND
//Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:PATH=
//Enable 7zip support
PHYSFS_ARCHIVE_7Z:BOOL=ON
//Enable Build Engine GRP support
PHYSFS_ARCHIVE_GRP:BOOL=ON
//Enable Descent I/II HOG support
PHYSFS_ARCHIVE_HOG:BOOL=ON
//Enable Descent I/II MVL support
PHYSFS_ARCHIVE_MVL:BOOL=ON
//Enable Quake I/II QPAK support
PHYSFS_ARCHIVE_QPAK:BOOL=ON
//Enable Doom WAD support
PHYSFS_ARCHIVE_WAD:BOOL=ON
//Enable ZIP support
PHYSFS_ARCHIVE_ZIP:BOOL=ON
//Build shared library
PHYSFS_BUILD_SHARED:BOOL=ON
//Build static library
PHYSFS_BUILD_STATIC:BOOL=ON
//Build stdio test program.
PHYSFS_BUILD_TEST:BOOL=ON
//Build wxWidgets test program.
PHYSFS_BUILD_WX_TEST:BOOL=ON
//Value Computed by CMake
PhysicsFS_BINARY_DIR:STATIC=/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
//Value Computed by CMake
PhysicsFS_SOURCE_DIR:STATIC=/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
//Path to a file.
READLINE_H:PATH=READLINE_H-NOTFOUND
//Path to a file.
ZLIB_INCLUDE_DIR:PATH=ZLIB_INCLUDE_DIR-NOTFOUND
//Path to a library.
ZLIB_LIBRARY:FILEPATH=ZLIB_LIBRARY-NOTFOUND
//Dependencies for target
physfs-static_LIB_DEPENDS:STATIC=
//Dependencies for target
physfs_LIB_DEPENDS:STATIC=
//Path to a program.
wxWidgets_CONFIG_EXECUTABLE:FILEPATH=wxWidgets_CONFIG_EXECUTABLE-NOTFOUND
//Path to a program.
wxWidgets_wxrc_EXECUTABLE:FILEPATH=wxWidgets_wxrc_EXECUTABLE-NOTFOUND
########################
# INTERNAL cache entries
########################
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_BUILD_TOOL
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/make
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=3
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
CMAKE_CXX_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
CMAKE_C_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Result of TRY_COMPILE
CMAKE_DETERMINE_CXX_ABI_COMPILED:INTERNAL=TRUE
//Result of TRY_COMPILE
CMAKE_DETERMINE_C_ABI_COMPILED:INTERNAL=TRUE
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
//Install .so files without execute permission.
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake-2.8
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/bin/uname
//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DOXYGEN_DOT_EXECUTABLE
DOXYGEN_DOT_EXECUTABLE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DOXYGEN_DOT_PATH
DOXYGEN_DOT_PATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DOXYGEN_EXECUTABLE
DOXYGEN_EXECUTABLE-ADVANCED:INTERNAL=1
//Have include assert.h
HAVE_ASSERT_H:INTERNAL=1
//Have include mntent.h
HAVE_MNTENT_H:INTERNAL=1
//Have include pthread.h
HAVE_PTHREAD_H:INTERNAL=1
//Have include sys/ucred.h
HAVE_UCRED_H:INTERNAL=
//ADVANCED property for variable: PHYSFS_BUILD_TEST
PHYSFS_BUILD_TEST-ADVANCED:INTERNAL=1
//ADVANCED property for variable: PHYSFS_BUILD_WX_TEST
PHYSFS_BUILD_WX_TEST-ADVANCED:INTERNAL=1
//Test PHYSFS_IS_GCC4
PHYSFS_IS_GCC4:INTERNAL=1
//ADVANCED property for variable: ZLIB_INCLUDE_DIR
ZLIB_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ZLIB_LIBRARY
ZLIB_LIBRARY-ADVANCED:INTERNAL=1
@@ -0,0 +1,44 @@
SET(CMAKE_C_COMPILER "/usr/bin/gcc")
SET(CMAKE_C_COMPILER_ARG1 "")
SET(CMAKE_C_COMPILER_ID "GNU")
SET(CMAKE_C_PLATFORM_ID "Linux")
SET(CMAKE_AR "/usr/bin/ar")
SET(CMAKE_RANLIB "/usr/bin/ranlib")
SET(CMAKE_LINKER "/usr/bin/ld")
SET(CMAKE_COMPILER_IS_GNUCC 1)
SET(CMAKE_C_COMPILER_LOADED 1)
SET(CMAKE_COMPILER_IS_MINGW )
SET(CMAKE_COMPILER_IS_CYGWIN )
IF(CMAKE_COMPILER_IS_CYGWIN)
SET(CYGWIN 1)
SET(UNIX 1)
ENDIF(CMAKE_COMPILER_IS_CYGWIN)
SET(CMAKE_C_COMPILER_ENV_VAR "CC")
IF(CMAKE_COMPILER_IS_MINGW)
SET(MINGW 1)
ENDIF(CMAKE_COMPILER_IS_MINGW)
SET(CMAKE_C_COMPILER_ID_RUN 1)
SET(CMAKE_C_SOURCE_FILE_EXTENSIONS c)
SET(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
SET(CMAKE_C_LINKER_PREFERENCE 10)
# Save compiler ABI information.
SET(CMAKE_C_SIZEOF_DATA_PTR "4")
SET(CMAKE_C_COMPILER_ABI "ELF")
IF(CMAKE_C_SIZEOF_DATA_PTR)
SET(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
ENDIF(CMAKE_C_SIZEOF_DATA_PTR)
IF(CMAKE_C_COMPILER_ABI)
SET(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
ENDIF(CMAKE_C_COMPILER_ABI)
SET(CMAKE_C_HAS_ISYSROOT "")
SET(CMAKE_C_IMPLICIT_LINK_LIBRARIES "c")
SET(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2;/usr/lib/i386-linux-gnu")
@@ -0,0 +1,45 @@
SET(CMAKE_CXX_COMPILER "/usr/bin/c++")
SET(CMAKE_CXX_COMPILER_ARG1 "")
SET(CMAKE_CXX_COMPILER_ID "GNU")
SET(CMAKE_CXX_PLATFORM_ID "Linux")
SET(CMAKE_AR "/usr/bin/ar")
SET(CMAKE_RANLIB "/usr/bin/ranlib")
SET(CMAKE_LINKER "/usr/bin/ld")
SET(CMAKE_COMPILER_IS_GNUCXX 1)
SET(CMAKE_CXX_COMPILER_LOADED 1)
SET(CMAKE_COMPILER_IS_MINGW )
SET(CMAKE_COMPILER_IS_CYGWIN )
IF(CMAKE_COMPILER_IS_CYGWIN)
SET(CYGWIN 1)
SET(UNIX 1)
ENDIF(CMAKE_COMPILER_IS_CYGWIN)
SET(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
IF(CMAKE_COMPILER_IS_MINGW)
SET(MINGW 1)
ENDIF(CMAKE_COMPILER_IS_MINGW)
SET(CMAKE_CXX_COMPILER_ID_RUN 1)
SET(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
SET(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP)
SET(CMAKE_CXX_LINKER_PREFERENCE 30)
SET(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
# Save compiler ABI information.
SET(CMAKE_CXX_SIZEOF_DATA_PTR "4")
SET(CMAKE_CXX_COMPILER_ABI "ELF")
IF(CMAKE_CXX_SIZEOF_DATA_PTR)
SET(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
ENDIF(CMAKE_CXX_SIZEOF_DATA_PTR)
IF(CMAKE_CXX_COMPILER_ABI)
SET(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
ENDIF(CMAKE_CXX_COMPILER_ABI)
SET(CMAKE_CXX_HAS_ISYSROOT "")
SET(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;c")
SET(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2;/usr/lib/i386-linux-gnu")
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,23 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# Relative path conversion top directories.
SET(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2")
SET(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2")
# Force unix paths in dependencies.
SET(CMAKE_FORCE_UNIX_PATHS 1)
# The C and CXX include file search paths:
SET(CMAKE_C_INCLUDE_PATH
"."
"zlib123"
)
SET(CMAKE_CXX_INCLUDE_PATH ${CMAKE_C_INCLUDE_PATH})
SET(CMAKE_Fortran_INCLUDE_PATH ${CMAKE_C_INCLUDE_PATH})
# The C and CXX include file regular expressions for this directory.
SET(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
SET(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
SET(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
SET(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
@@ -0,0 +1,16 @@
Determining if the include file sys/ucred.h exists failed with the following output:
Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o -c /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:23: fatal error: sys/ucred.h: No such file or directory
compilation terminated.
make[1]: Leaving directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTryCompileExec/fast] Error 2
+307
View File
@@ -0,0 +1,307 @@
The system is: Linux - 2.6.38-12-generic-pae - i686
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/gcc
Build flags:
Id flags:
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
The C compiler identification is GNU, found in "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CompilerIdC/a.out"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags:
The output was:
0
CMakeCXXCompilerId.cpp:79:58: warning: deprecated conversion from string constant to char*
CMakeCXXCompilerId.cpp:192:58: warning: deprecated conversion from string constant to char*
CMakeCXXCompilerId.cpp:193:54: warning: deprecated conversion from string constant to char*
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
The CXX compiler identification is GNU, found in "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CompilerIdCXX/a.out"
Determining if the C compiler works passed with the following output:
Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/gcc CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o cmTryCompileExec -rdynamic
make[1]: Leaving directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-2.8/Modules/CMakeCCompilerABI.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/gcc -v CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.o -o cmTryCompileExec -rdynamic
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=i386-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/i386-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/i386-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
COMPILER_PATH=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/
LIBRARY_PATH=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../:/lib/:/usr/lib/:/usr/lib/i386-linux-gnu/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec' '-rdynamic' '-mtune=generic' '-march=i686'
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/collect2 --build-id --eh-frame-hdr -m elf_i386 --hash-style=gnu -export-dynamic -dynamic-linker /lib/ld-linux.so.2 -z relro -o cmTryCompileExec /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crti.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtbegin.o -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../.. -L/usr/lib/i386-linux-gnu CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtend.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crtn.o
make[1]: Leaving directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
Parsed C implicit link information from above output:
link line regex: [^( *|.*[/\])(ld|ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command:/usr/bin/make "cmTryCompileExec/fast"]
ignore line: [/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build]
ignore line: [make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp']
ignore line: [/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1]
ignore line: [Building C object CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.o]
ignore line: [/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-2.8/Modules/CMakeCCompilerABI.c]
ignore line: [Linking C executable cmTryCompileExec]
ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1]
ignore line: [/usr/bin/gcc -v CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.o -o cmTryCompileExec -rdynamic ]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/gcc]
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/lto-wrapper]
ignore line: [Target: i686-linux-gnu]
ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=i386-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/i386-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/i386-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu]
ignore line: [Thread model: posix]
ignore line: [gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ]
ignore line: [COMPILER_PATH=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/]
ignore line: [LIBRARY_PATH=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../:/lib/:/usr/lib/:/usr/lib/i386-linux-gnu/]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec' '-rdynamic' '-mtune=generic' '-march=i686']
link line: [ /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/collect2 --build-id --eh-frame-hdr -m elf_i386 --hash-style=gnu -export-dynamic -dynamic-linker /lib/ld-linux.so.2 -z relro -o cmTryCompileExec /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crti.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtbegin.o -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../.. -L/usr/lib/i386-linux-gnu CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtend.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crtn.o]
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/collect2] ==> ignore
arg [--build-id] ==> ignore
arg [--eh-frame-hdr] ==> ignore
arg [-m] ==> ignore
arg [elf_i386] ==> ignore
arg [--hash-style=gnu] ==> ignore
arg [-export-dynamic] ==> ignore
arg [-dynamic-linker] ==> ignore
arg [/lib/ld-linux.so.2] ==> ignore
arg [-zrelro] ==> ignore
arg [-o] ==> ignore
arg [cmTryCompileExec] ==> ignore
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o] ==> ignore
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crti.o] ==> ignore
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtbegin.o] ==> ignore
arg [-L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2] ==> dir [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2]
arg [-L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../..] ==> dir [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../..]
arg [-L/usr/lib/i386-linux-gnu] ==> dir [/usr/lib/i386-linux-gnu]
arg [CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [-lgcc] ==> lib [gcc]
arg [--as-needed] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
arg [--no-as-needed] ==> ignore
arg [-lc] ==> lib [c]
arg [-lgcc] ==> lib [gcc]
arg [--as-needed] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
arg [--no-as-needed] ==> ignore
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtend.o] ==> ignore
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crtn.o] ==> ignore
remove lib [gcc]
remove lib [gcc_s]
remove lib [gcc]
remove lib [gcc_s]
collapse dir [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2] ==> [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2]
collapse dir [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../..] ==> [/usr/lib/i386-linux-gnu]
collapse dir [/usr/lib/i386-linux-gnu] ==> [/usr/lib/i386-linux-gnu]
implicit libs: [c]
implicit dirs: [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2;/usr/lib/i386-linux-gnu]
Determining if the CXX compiler works passed with the following output:
Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o cmTryCompileExec -rdynamic
make[1]: Leaving directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/CMakeCXXCompilerABI.cpp.o
/usr/bin/c++ -o CMakeFiles/cmTryCompileExec.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-2.8/Modules/CMakeCXXCompilerABI.cpp
Linking CXX executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/c++ -v CMakeFiles/cmTryCompileExec.dir/CMakeCXXCompilerABI.cpp.o -o cmTryCompileExec -rdynamic
Using built-in specs.
COLLECT_GCC=/usr/bin/c++
COLLECT_LTO_WRAPPER=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=i386-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/i386-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/i386-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
COMPILER_PATH=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/
LIBRARY_PATH=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../:/lib/:/usr/lib/:/usr/lib/i386-linux-gnu/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=i686'
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/collect2 --build-id --eh-frame-hdr -m elf_i386 --hash-style=gnu -export-dynamic -dynamic-linker /lib/ld-linux.so.2 -z relro -o cmTryCompileExec /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crti.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtbegin.o -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../.. -L/usr/lib/i386-linux-gnu CMakeFiles/cmTryCompileExec.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtend.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crtn.o
make[1]: Leaving directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
Parsed CXX implicit link information from above output:
link line regex: [^( *|.*[/\])(ld|ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command:/usr/bin/make "cmTryCompileExec/fast"]
ignore line: [/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build]
ignore line: [make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp']
ignore line: [/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1]
ignore line: [Building CXX object CMakeFiles/cmTryCompileExec.dir/CMakeCXXCompilerABI.cpp.o]
ignore line: [/usr/bin/c++ -o CMakeFiles/cmTryCompileExec.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-2.8/Modules/CMakeCXXCompilerABI.cpp]
ignore line: [Linking CXX executable cmTryCompileExec]
ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1]
ignore line: [/usr/bin/c++ -v CMakeFiles/cmTryCompileExec.dir/CMakeCXXCompilerABI.cpp.o -o cmTryCompileExec -rdynamic ]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/c++]
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/lto-wrapper]
ignore line: [Target: i686-linux-gnu]
ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=i386-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/i386-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/i386-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu]
ignore line: [Thread model: posix]
ignore line: [gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ]
ignore line: [COMPILER_PATH=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/]
ignore line: [LIBRARY_PATH=/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../:/lib/:/usr/lib/:/usr/lib/i386-linux-gnu/]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=i686']
link line: [ /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/collect2 --build-id --eh-frame-hdr -m elf_i386 --hash-style=gnu -export-dynamic -dynamic-linker /lib/ld-linux.so.2 -z relro -o cmTryCompileExec /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crti.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtbegin.o -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../.. -L/usr/lib/i386-linux-gnu CMakeFiles/cmTryCompileExec.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtend.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crtn.o]
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/collect2] ==> ignore
arg [--build-id] ==> ignore
arg [--eh-frame-hdr] ==> ignore
arg [-m] ==> ignore
arg [elf_i386] ==> ignore
arg [--hash-style=gnu] ==> ignore
arg [-export-dynamic] ==> ignore
arg [-dynamic-linker] ==> ignore
arg [/lib/ld-linux.so.2] ==> ignore
arg [-zrelro] ==> ignore
arg [-o] ==> ignore
arg [cmTryCompileExec] ==> ignore
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o] ==> ignore
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crti.o] ==> ignore
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtbegin.o] ==> ignore
arg [-L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2] ==> dir [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2]
arg [-L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../..] ==> dir [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../..]
arg [-L/usr/lib/i386-linux-gnu] ==> dir [/usr/lib/i386-linux-gnu]
arg [CMakeFiles/cmTryCompileExec.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
arg [-lstdc++] ==> lib [stdc++]
arg [-lm] ==> lib [m]
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [-lc] ==> lib [c]
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/crtend.o] ==> ignore
arg [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crtn.o] ==> ignore
remove lib [gcc_s]
remove lib [gcc]
remove lib [gcc_s]
remove lib [gcc]
collapse dir [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2] ==> [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2]
collapse dir [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../..] ==> [/usr/lib/i386-linux-gnu]
collapse dir [/usr/lib/i386-linux-gnu] ==> [/usr/lib/i386-linux-gnu]
implicit libs: [stdc++;m;c]
implicit dirs: [/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2;/usr/lib/i386-linux-gnu]
Performing C SOURCE FILE Test PHYSFS_IS_GCC4 succeded with the following output:
Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/src.c.o
/usr/bin/gcc -DPHYSFS_IS_GCC4 -o CMakeFiles/cmTryCompileExec.dir/src.c.o -c /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/gcc -DPHYSFS_IS_GCC4 CMakeFiles/cmTryCompileExec.dir/src.c.o -o cmTryCompileExec -rdynamic
make[1]: Leaving directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
Source file was:
#if ((defined(__GNUC__)) && (__GNUC__ >= 4))
int main(int argc, char **argv) { int is_gcc4 = 1; return 0; }
#else
#error This is not gcc4.
#endif
Determining if the include file mntent.h exists passed with the following output:
Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o -c /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/gcc CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o -o cmTryCompileExec -rdynamic
make[1]: Leaving directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
Determining if the include file pthread.h exists passed with the following output:
Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o -c /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/gcc CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o -o cmTryCompileExec -rdynamic
make[1]: Leaving directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
Determining if the include file assert.h exists passed with the following output:
Change Dir: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o -c /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/gcc CMakeFiles/cmTryCompileExec.dir/CheckIncludeFile.c.o -o cmTryCompileExec -rdynamic
make[1]: Leaving directory `/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/CMakeTmp'
@@ -0,0 +1,2 @@
# Hashes of file build rules.
f4b8ff5ed9ec98004fb3402ffe454dcd CMakeFiles/dist
@@ -0,0 +1,15 @@
SET(CMAKE_SYSTEM "Linux-2.6.38-12-generic-pae")
SET(CMAKE_SYSTEM_NAME "Linux")
SET(CMAKE_SYSTEM_VERSION "2.6.38-12-generic-pae")
SET(CMAKE_SYSTEM_PROCESSOR "i686")
SET(CMAKE_HOST_SYSTEM "Linux-2.6.38-12-generic-pae")
SET(CMAKE_HOST_SYSTEM_NAME "Linux")
SET(CMAKE_HOST_SYSTEM_VERSION "2.6.38-12-generic-pae")
SET(CMAKE_HOST_SYSTEM_PROCESSOR "i686")
SET(CMAKE_CROSSCOMPILING "FALSE")
SET(CMAKE_SYSTEM_LOADED 1)
@@ -0,0 +1,220 @@
#ifdef __cplusplus
# error "A C++ compiler has been selected for C."
#endif
#if defined(__18CXX)
# define ID_VOID_MAIN
#endif
#if defined(__INTEL_COMPILER) || defined(__ICC)
# define COMPILER_ID "Intel"
#elif defined(__clang__)
# define COMPILER_ID "Clang"
#elif defined(__BORLANDC__)
# define COMPILER_ID "Borland"
#elif defined(__WATCOMC__)
# define COMPILER_ID "Watcom"
#elif defined(__SUNPRO_C)
# define COMPILER_ID "SunPro"
#elif defined(__HP_cc)
# define COMPILER_ID "HP"
#elif defined(__DECC)
# define COMPILER_ID "Compaq"
#elif defined(__IBMC__)
# if defined(__COMPILER_VER__)
# define COMPILER_ID "zOS"
# elif __IBMC__ >= 800
# define COMPILER_ID "XL"
# else
# define COMPILER_ID "VisualAge"
# endif
#elif defined(__PGI)
# define COMPILER_ID "PGI"
#elif defined(__PATHSCALE__)
# define COMPILER_ID "PathScale"
#elif defined(__GNUC__)
# define COMPILER_ID "GNU"
#elif defined(_MSC_VER)
# define COMPILER_ID "MSVC"
#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
/* Analog Devices C++ compiler for Blackfin, TigerSHARC and
SHARC (21000) DSPs */
# define COMPILER_ID "ADSP"
/* IAR Systems compiler for embedded systems.
http://www.iar.com
Not supported yet by CMake
#elif defined(__IAR_SYSTEMS_ICC__)
# define COMPILER_ID "IAR" */
/* sdcc, the small devices C compiler for embedded systems,
http://sdcc.sourceforge.net */
#elif defined(SDCC)
# define COMPILER_ID "SDCC"
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
# define COMPILER_ID "MIPSpro"
/* This compiler is either not known or is too old to define an
identification macro. Try to identify the platform and guess that
it is the native compiler. */
#elif defined(__sgi)
# define COMPILER_ID "MIPSpro"
#elif defined(__hpux) || defined(__hpua)
# define COMPILER_ID "HP"
#else /* unknown compiler */
# define COMPILER_ID ""
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
/* Identify known platforms by name. */
#if defined(__linux) || defined(__linux__) || defined(linux)
# define PLATFORM_ID "Linux"
#elif defined(__CYGWIN__)
# define PLATFORM_ID "Cygwin"
#elif defined(__MINGW32__)
# define PLATFORM_ID "MinGW"
#elif defined(__APPLE__)
# define PLATFORM_ID "Darwin"
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
# define PLATFORM_ID "Windows"
#elif defined(__FreeBSD__) || defined(__FreeBSD)
# define PLATFORM_ID "FreeBSD"
#elif defined(__NetBSD__) || defined(__NetBSD)
# define PLATFORM_ID "NetBSD"
#elif defined(__OpenBSD__) || defined(__OPENBSD)
# define PLATFORM_ID "OpenBSD"
#elif defined(__sun) || defined(sun)
# define PLATFORM_ID "SunOS"
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
# define PLATFORM_ID "AIX"
#elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
# define PLATFORM_ID "IRIX"
#elif defined(__hpux) || defined(__hpux__)
# define PLATFORM_ID "HP-UX"
#elif defined(__HAIKU) || defined(__HAIKU__) || defined(_HAIKU)
# define PLATFORM_ID "Haiku"
/* Haiku also defines __BEOS__ so we must
put it prior to the check for __BEOS__
*/
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
# define PLATFORM_ID "BeOS"
#elif defined(__QNX__) || defined(__QNXNTO__)
# define PLATFORM_ID "QNX"
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
# define PLATFORM_ID "Tru64"
#elif defined(__riscos) || defined(__riscos__)
# define PLATFORM_ID "RISCos"
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
# define PLATFORM_ID "SINIX"
#elif defined(__UNIX_SV__)
# define PLATFORM_ID "UNIX_SV"
#elif defined(__bsdos__)
# define PLATFORM_ID "BSDOS"
#elif defined(_MPRAS) || defined(MPRAS)
# define PLATFORM_ID "MP-RAS"
#elif defined(__osf) || defined(__osf__)
# define PLATFORM_ID "OSF1"
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
# define PLATFORM_ID "SCO_SV"
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
# define PLATFORM_ID "ULTRIX"
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
# define PLATFORM_ID "Xenix"
#else /* unknown platform */
# define PLATFORM_ID ""
#endif
/* For windows compilers MSVC and Intel we can determine
the architecture of the compiler being used. This is becase
the compilers do not have flags that can change the architecture,
but rather depend on which compiler is being used
*/
#if defined(_WIN32) && defined(_MSC_VER)
# if defined(_M_IA64)
# define ARCHITECTURE_ID "IA64"
# elif defined(_M_X64) || defined(_M_AMD64)
# define ARCHITECTURE_ID "x64"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#else
# define ARCHITECTURE_ID ""
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
char* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
/*--------------------------------------------------------------------------*/
#ifdef ID_VOID_MAIN
void main() {}
#else
int main(int argc, char* argv[])
{
int require = 0;
require += info_compiler[argc];
require += info_platform[argc];
require += info_arch[argc];
(void)argv;
return require;
}
#endif
Binary file not shown.
@@ -0,0 +1,206 @@
/* This source file must have a .cpp extension so that all C++ compilers
recognize the extension without flags. Borland does not know .cxx for
example. */
#ifndef __cplusplus
# error "A C compiler has been selected for C++."
#endif
#if defined(__COMO__)
# define COMPILER_ID "Comeau"
#elif defined(__INTEL_COMPILER) || defined(__ICC)
# define COMPILER_ID "Intel"
#elif defined(__clang__)
# define COMPILER_ID "Clang"
#elif defined(__BORLANDC__)
# define COMPILER_ID "Borland"
#elif defined(__WATCOMC__)
# define COMPILER_ID "Watcom"
#elif defined(__SUNPRO_CC)
# define COMPILER_ID "SunPro"
#elif defined(__HP_aCC)
# define COMPILER_ID "HP"
#elif defined(__DECCXX)
# define COMPILER_ID "Compaq"
#elif defined(__IBMCPP__)
# if defined(__COMPILER_VER__)
# define COMPILER_ID "zOS"
# elif __IBMCPP__ >= 800
# define COMPILER_ID "XL"
# else
# define COMPILER_ID "VisualAge"
# endif
#elif defined(__PGI)
# define COMPILER_ID "PGI"
#elif defined(__PATHSCALE__)
# define COMPILER_ID "PathScale"
#elif defined(__GNUC__)
# define COMPILER_ID "GNU"
#elif defined(_MSC_VER)
# define COMPILER_ID "MSVC"
#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
/* Analog Devices C++ compiler for Blackfin, TigerSHARC and
SHARC (21000) DSPs */
# define COMPILER_ID "ADSP"
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
# define COMPILER_ID "MIPSpro"
/* This compiler is either not known or is too old to define an
identification macro. Try to identify the platform and guess that
it is the native compiler. */
#elif defined(__sgi)
# define COMPILER_ID "MIPSpro"
#elif defined(__hpux) || defined(__hpua)
# define COMPILER_ID "HP"
#else /* unknown compiler */
# define COMPILER_ID ""
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
/* Identify known platforms by name. */
#if defined(__linux) || defined(__linux__) || defined(linux)
# define PLATFORM_ID "Linux"
#elif defined(__CYGWIN__)
# define PLATFORM_ID "Cygwin"
#elif defined(__MINGW32__)
# define PLATFORM_ID "MinGW"
#elif defined(__APPLE__)
# define PLATFORM_ID "Darwin"
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
# define PLATFORM_ID "Windows"
#elif defined(__FreeBSD__) || defined(__FreeBSD)
# define PLATFORM_ID "FreeBSD"
#elif defined(__NetBSD__) || defined(__NetBSD)
# define PLATFORM_ID "NetBSD"
#elif defined(__OpenBSD__) || defined(__OPENBSD)
# define PLATFORM_ID "OpenBSD"
#elif defined(__sun) || defined(sun)
# define PLATFORM_ID "SunOS"
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
# define PLATFORM_ID "AIX"
#elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
# define PLATFORM_ID "IRIX"
#elif defined(__hpux) || defined(__hpux__)
# define PLATFORM_ID "HP-UX"
#elif defined(__HAIKU) || defined(__HAIKU__) || defined(_HAIKU)
# define PLATFORM_ID "Haiku"
/* Haiku also defines __BEOS__ so we must
put it prior to the check for __BEOS__
*/
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
# define PLATFORM_ID "BeOS"
#elif defined(__QNX__) || defined(__QNXNTO__)
# define PLATFORM_ID "QNX"
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
# define PLATFORM_ID "Tru64"
#elif defined(__riscos) || defined(__riscos__)
# define PLATFORM_ID "RISCos"
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
# define PLATFORM_ID "SINIX"
#elif defined(__UNIX_SV__)
# define PLATFORM_ID "UNIX_SV"
#elif defined(__bsdos__)
# define PLATFORM_ID "BSDOS"
#elif defined(_MPRAS) || defined(MPRAS)
# define PLATFORM_ID "MP-RAS"
#elif defined(__osf) || defined(__osf__)
# define PLATFORM_ID "OSF1"
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
# define PLATFORM_ID "SCO_SV"
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
# define PLATFORM_ID "ULTRIX"
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
# define PLATFORM_ID "Xenix"
#else /* unknown platform */
# define PLATFORM_ID ""
#endif
/* For windows compilers MSVC and Intel we can determine
the architecture of the compiler being used. This is becase
the compilers do not have flags that can change the architecture,
but rather depend on which compiler is being used
*/
#if defined(_WIN32) && defined(_MSC_VER)
# if defined(_M_IA64)
# define ARCHITECTURE_ID "IA64"
# elif defined(_M_X64) || defined(_M_AMD64)
# define ARCHITECTURE_ID "x64"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#else
# define ARCHITECTURE_ID ""
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
char* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
/*--------------------------------------------------------------------------*/
int main(int argc, char* argv[])
{
int require = 0;
require += info_compiler[argc];
require += info_platform[argc];
(void)argv;
return require;
}
Binary file not shown.
@@ -0,0 +1,72 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# The generator used is:
SET(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
# The top level Makefile was generated from the following files:
SET(CMAKE_MAKEFILE_DEPENDS
"CMakeCache.txt"
"CMakeFiles/CMakeCCompiler.cmake"
"CMakeFiles/CMakeCXXCompiler.cmake"
"CMakeFiles/CMakeSystem.cmake"
"CMakeLists.txt"
"/usr/share/cmake-2.8/Modules/CMakeCCompiler.cmake.in"
"/usr/share/cmake-2.8/Modules/CMakeCCompilerABI.c"
"/usr/share/cmake-2.8/Modules/CMakeCInformation.cmake"
"/usr/share/cmake-2.8/Modules/CMakeCXXCompiler.cmake.in"
"/usr/share/cmake-2.8/Modules/CMakeCXXCompilerABI.cpp"
"/usr/share/cmake-2.8/Modules/CMakeCXXInformation.cmake"
"/usr/share/cmake-2.8/Modules/CMakeCommonLanguageInclude.cmake"
"/usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake"
"/usr/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake"
"/usr/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake"
"/usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake"
"/usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake"
"/usr/share/cmake-2.8/Modules/CMakeFindBinUtils.cmake"
"/usr/share/cmake-2.8/Modules/CMakeGenericSystem.cmake"
"/usr/share/cmake-2.8/Modules/CMakeParseArguments.cmake"
"/usr/share/cmake-2.8/Modules/CMakeParseImplicitLinkInfo.cmake"
"/usr/share/cmake-2.8/Modules/CMakeSystem.cmake.in"
"/usr/share/cmake-2.8/Modules/CMakeSystemSpecificInformation.cmake"
"/usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake"
"/usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake"
"/usr/share/cmake-2.8/Modules/CMakeTestCompilerCommon.cmake"
"/usr/share/cmake-2.8/Modules/CMakeUnixFindMake.cmake"
"/usr/share/cmake-2.8/Modules/CheckCSourceCompiles.cmake"
"/usr/share/cmake-2.8/Modules/CheckIncludeFile.c.in"
"/usr/share/cmake-2.8/Modules/CheckIncludeFile.cmake"
"/usr/share/cmake-2.8/Modules/CheckLibraryExists.cmake"
"/usr/share/cmake-2.8/Modules/Compiler/GNU-C.cmake"
"/usr/share/cmake-2.8/Modules/Compiler/GNU-CXX.cmake"
"/usr/share/cmake-2.8/Modules/Compiler/GNU.cmake"
"/usr/share/cmake-2.8/Modules/FindDoxygen.cmake"
"/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake"
"/usr/share/cmake-2.8/Modules/FindPackageMessage.cmake"
"/usr/share/cmake-2.8/Modules/FindZLIB.cmake"
"/usr/share/cmake-2.8/Modules/FindwxWidgets.cmake"
"/usr/share/cmake-2.8/Modules/Platform/Linux-GNU-C.cmake"
"/usr/share/cmake-2.8/Modules/Platform/Linux-GNU-CXX.cmake"
"/usr/share/cmake-2.8/Modules/Platform/Linux-GNU.cmake"
"/usr/share/cmake-2.8/Modules/Platform/Linux.cmake"
"/usr/share/cmake-2.8/Modules/Platform/UnixPaths.cmake"
)
# The corresponding makefile is:
SET(CMAKE_MAKEFILE_OUTPUTS
"Makefile"
"CMakeFiles/cmake.check_cache"
)
# Byproducts of CMake generate step:
SET(CMAKE_MAKEFILE_PRODUCTS
"CMakeFiles/CMakeDirectoryInformation.cmake"
)
# Dependency information for all targets:
SET(CMAKE_DEPEND_INFO_FILES
"CMakeFiles/dist.dir/DependInfo.cmake"
"CMakeFiles/physfs.dir/DependInfo.cmake"
"CMakeFiles/physfs-static.dir/DependInfo.cmake"
"CMakeFiles/test_physfs.dir/DependInfo.cmake"
)
+197
View File
@@ -0,0 +1,197 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# The main recursive all target
all:
.PHONY : all
# The main recursive preinstall target
preinstall:
.PHONY : preinstall
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canoncical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
#=============================================================================
# Target rules for target CMakeFiles/dist.dir
# All Build rule for target.
CMakeFiles/dist.dir/all:
$(MAKE) -f CMakeFiles/dist.dir/build.make CMakeFiles/dist.dir/depend
$(MAKE) -f CMakeFiles/dist.dir/build.make CMakeFiles/dist.dir/build
$(CMAKE_COMMAND) -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 1
@echo "Built target dist"
.PHONY : CMakeFiles/dist.dir/all
# Build rule for subdir invocation for target.
CMakeFiles/dist.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 1
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/dist.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 0
.PHONY : CMakeFiles/dist.dir/rule
# Convenience name for target.
dist: CMakeFiles/dist.dir/rule
.PHONY : dist
# clean rule for target.
CMakeFiles/dist.dir/clean:
$(MAKE) -f CMakeFiles/dist.dir/build.make CMakeFiles/dist.dir/clean
.PHONY : CMakeFiles/dist.dir/clean
# clean rule for target.
clean: CMakeFiles/dist.dir/clean
.PHONY : clean
#=============================================================================
# Target rules for target CMakeFiles/physfs.dir
# All Build rule for target.
CMakeFiles/physfs.dir/all:
$(MAKE) -f CMakeFiles/physfs.dir/build.make CMakeFiles/physfs.dir/depend
$(MAKE) -f CMakeFiles/physfs.dir/build.make CMakeFiles/physfs.dir/build
$(CMAKE_COMMAND) -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
@echo "Built target physfs"
.PHONY : CMakeFiles/physfs.dir/all
# Include target in all.
all: CMakeFiles/physfs.dir/all
.PHONY : all
# Build rule for subdir invocation for target.
CMakeFiles/physfs.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 40
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/physfs.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 0
.PHONY : CMakeFiles/physfs.dir/rule
# Convenience name for target.
physfs: CMakeFiles/physfs.dir/rule
.PHONY : physfs
# clean rule for target.
CMakeFiles/physfs.dir/clean:
$(MAKE) -f CMakeFiles/physfs.dir/build.make CMakeFiles/physfs.dir/clean
.PHONY : CMakeFiles/physfs.dir/clean
# clean rule for target.
clean: CMakeFiles/physfs.dir/clean
.PHONY : clean
#=============================================================================
# Target rules for target CMakeFiles/physfs-static.dir
# All Build rule for target.
CMakeFiles/physfs-static.dir/all:
$(MAKE) -f CMakeFiles/physfs-static.dir/build.make CMakeFiles/physfs-static.dir/depend
$(MAKE) -f CMakeFiles/physfs-static.dir/build.make CMakeFiles/physfs-static.dir/build
$(CMAKE_COMMAND) -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
@echo "Built target physfs-static"
.PHONY : CMakeFiles/physfs-static.dir/all
# Include target in all.
all: CMakeFiles/physfs-static.dir/all
.PHONY : all
# Build rule for subdir invocation for target.
CMakeFiles/physfs-static.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 40
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/physfs-static.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 0
.PHONY : CMakeFiles/physfs-static.dir/rule
# Convenience name for target.
physfs-static: CMakeFiles/physfs-static.dir/rule
.PHONY : physfs-static
# clean rule for target.
CMakeFiles/physfs-static.dir/clean:
$(MAKE) -f CMakeFiles/physfs-static.dir/build.make CMakeFiles/physfs-static.dir/clean
.PHONY : CMakeFiles/physfs-static.dir/clean
# clean rule for target.
clean: CMakeFiles/physfs-static.dir/clean
.PHONY : clean
#=============================================================================
# Target rules for target CMakeFiles/test_physfs.dir
# All Build rule for target.
CMakeFiles/test_physfs.dir/all: CMakeFiles/physfs.dir/all
$(MAKE) -f CMakeFiles/test_physfs.dir/build.make CMakeFiles/test_physfs.dir/depend
$(MAKE) -f CMakeFiles/test_physfs.dir/build.make CMakeFiles/test_physfs.dir/build
$(CMAKE_COMMAND) -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 82
@echo "Built target test_physfs"
.PHONY : CMakeFiles/test_physfs.dir/all
# Include target in all.
all: CMakeFiles/test_physfs.dir/all
.PHONY : all
# Build rule for subdir invocation for target.
CMakeFiles/test_physfs.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 41
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/test_physfs.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles 0
.PHONY : CMakeFiles/test_physfs.dir/rule
# Convenience name for target.
test_physfs: CMakeFiles/test_physfs.dir/rule
.PHONY : test_physfs
# clean rule for target.
CMakeFiles/test_physfs.dir/clean:
$(MAKE) -f CMakeFiles/test_physfs.dir/build.make CMakeFiles/test_physfs.dir/clean
.PHONY : CMakeFiles/test_physfs.dir/clean
# clean rule for target.
clean: CMakeFiles/test_physfs.dir/clean
.PHONY : clean
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
@@ -0,0 +1,4 @@
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/dist.dir
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/test_physfs.dir
@@ -0,0 +1 @@
# This file is generated by cmake for dependency checking of the CMakeCache.txt file
@@ -0,0 +1,24 @@
# The set of languages for which implicit dependencies are needed:
SET(CMAKE_DEPENDS_LANGUAGES
)
# The set of files for implicit dependencies of each language:
# Preprocessor definitions for this target.
SET(CMAKE_TARGET_DEFINITIONS
"PHYSFS_HAVE_MNTENT_H=1"
"_REENTRANT"
"_THREAD_SAFE"
"HAVE_ASSERT_H=1"
"PHYSFS_SUPPORTS_ZIP=1"
"PHYSFS_SUPPORTS_7Z=1"
"PHYSFS_SUPPORTS_GRP=1"
"PHYSFS_SUPPORTS_WAD=1"
"PHYSFS_SUPPORTS_HOG=1"
"PHYSFS_SUPPORTS_MVL=1"
"PHYSFS_SUPPORTS_QPAK=1"
"Z_PREFIX=1"
)
# Targets to which this target links.
SET(CMAKE_TARGET_LINKED_INFO_FILES
)
@@ -0,0 +1,62 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canoncical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
# Utility rule file for dist.
CMakeFiles/dist:
$(CMAKE_COMMAND) -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles $(CMAKE_PROGRESS_1)
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold "Building source tarball '/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/../physfs-2.0.2.tar.gz'..."
hg archive -t tgz /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/../physfs-2.0.2.tar.gz
dist: CMakeFiles/dist
dist: CMakeFiles/dist.dir/build.make
.PHONY : dist
# Rule to build all files generated by this target.
CMakeFiles/dist.dir/build: dist
.PHONY : CMakeFiles/dist.dir/build
CMakeFiles/dist.dir/clean:
$(CMAKE_COMMAND) -P CMakeFiles/dist.dir/cmake_clean.cmake
.PHONY : CMakeFiles/dist.dir/clean
CMakeFiles/dist.dir/depend:
cd /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2 && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2 /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2 /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2 /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2 /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/dist.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/dist.dir/depend
@@ -0,0 +1,8 @@
FILE(REMOVE_RECURSE
"CMakeFiles/dist"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang)
INCLUDE(CMakeFiles/dist.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)
@@ -0,0 +1,2 @@
CMAKE_PROGRESS_1 = 1
@@ -0,0 +1,692 @@
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/dir.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/grp.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/hog.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma.c
stdlib.h
-
string.h
-
time.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
lzma/C/7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma/C/7zCrc.h
lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma/C/Archive/7z/7zIn.h
lzma/C/Archive/7z/7zExtract.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma/C/Archive/7z/7zExtract.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/mvl.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/qpak.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/wad.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/zip.c
stdio.h
-
stdlib.h
-
string.h
-
errno.h
-
time.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/zlib.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.c
7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.h
stddef.h
-
Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../7zCrc.h
stddef.h
-
Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchTypes.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86.h
BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86_2.h
BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaDecode.h
LzmaTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaTypes.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.c
7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
stddef.h
-
../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.c
memory.h
-
string.h
-
7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/LzmaDecode.h
../../Compress/Lzma/LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaDecode.h
../../Compress/Branch/BranchX86.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86.h
../../Compress/Branch/BranchX86_2.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86_2.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.c
7zExtract.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.h
7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.h
7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.c
7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.c
7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.c
7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
7zMethodID.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.c
7zMethodID.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/../../Alloc.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchTypes.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.c
BranchX86.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.h
BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.c
BranchX86_2.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.h
../../Alloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/../../Alloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.h
BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.c
LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.h
LzmaTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaTypes.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_byteorder.c
stdio.h
-
stdlib.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_casefolding.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
stdlib.h
-
assert.h
-
malloc.h
-
alloca.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_unicode.c
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
physfs_casefolding.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_casefolding.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/macosx.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
Carbon/Carbon.h
-
IOKit/storage/IOMedia.h
-
IOKit/storage/IOCDMedia.h
-
IOKit/storage/IODVDMedia.h
-
sys/mount.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/os2.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
os2.h
-
stdio.h
-
stdlib.h
-
errno.h
-
string.h
-
time.h
-
ctype.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/pocketpc.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
stdio.h
-
windows.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/posix.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
stdio.h
-
stdlib.h
-
string.h
-
unistd.h
-
ctype.h
-
sys/types.h
-
sys/stat.h
-
pwd.h
-
dirent.h
-
errno.h
-
fcntl.h
-
linux/unistd.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/unix.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
stdio.h
-
stdlib.h
-
string.h
-
ctype.h
-
unistd.h
-
sys/types.h
-
pwd.h
-
sys/stat.h
-
sys/param.h
-
dirent.h
-
time.h
-
errno.h
-
pthread.h
-
sys/ucred.h
-
sys/mount.h
-
mntent.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/windows.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
windows.h
-
stdio.h
-
stdlib.h
-
string.h
-
errno.h
-
ctype.h
-
time.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/adler32.c
zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/compress.c
zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.c
stdio.h
-
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
limits.h
-
crc32.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.c
deflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.h
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/gzio.c
stdio.h
-
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
stdarg.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/infback.c
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.c
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.c
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffixed.h
stdio.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.c
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.c
deflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.h
ctype.h
-
trees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.h
stdio.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/uncompr.c
zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
windows.h
-
sys/types.h
-
unistd.h
-
unixio.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.c
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
stddef.h
-
string.h
-
stdlib.h
-
errno.h
-
alloc.h
-
malloc.h
-
malloc.h
-
unix.h
-
stdio.h
-
lzma/C/7zCrc.h
stddef.h
-
Types.h
lzma/C/Types.h
lzma/C/Archive/7z/../../Types.h
lzma/C/Archive/7z/7zAlloc.h
stddef.h
-
lzma/C/Archive/7z/7zBuffer.h
stddef.h
-
../../Types.h
lzma/C/Archive/7z/../../Types.h
lzma/C/Archive/7z/7zExtract.h
7zIn.h
lzma/C/Archive/7z/7zIn.h
lzma/C/Archive/7z/7zHeader.h
../../Types.h
lzma/C/Archive/7z/../../Types.h
lzma/C/Archive/7z/7zIn.h
7zHeader.h
lzma/C/Archive/7z/7zHeader.h
7zItem.h
lzma/C/Archive/7z/7zItem.h
7zAlloc.h
lzma/C/Archive/7z/7zAlloc.h
lzma/C/Archive/7z/7zItem.h
7zMethodID.h
lzma/C/Archive/7z/7zMethodID.h
7zHeader.h
lzma/C/Archive/7z/7zHeader.h
7zBuffer.h
lzma/C/Archive/7z/7zBuffer.h
lzma/C/Archive/7z/7zMethodID.h
../../Types.h
lzma/C/Archive/7z/../../Types.h
lzma/C/Types.h
physfs.h
physfs_internal.h
physfs.h
/physfs.h
stdlib.h
-
assert.h
-
malloc.h
-
alloca.h
-
physfs_platforms.h
TargetConditionals.h
-
zlib123/zconf.h
windows.h
-
sys/types.h
-
unistd.h
-
unixio.h
-
zlib123/zlib.h
zconf.h
zlib123/zconf.h
@@ -0,0 +1,68 @@
# The set of languages for which implicit dependencies are needed:
SET(CMAKE_DEPENDS_LANGUAGES
"C"
)
# The set of files for implicit dependencies of each language:
SET(CMAKE_DEPENDS_CHECK_C
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/dir.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/archivers/dir.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/grp.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/archivers/grp.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/hog.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/archivers/hog.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/archivers/lzma.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/mvl.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/archivers/mvl.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/qpak.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/archivers/qpak.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/wad.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/archivers/wad.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/zip.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/archivers/zip.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/7zCrc.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zBuffer.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zHeader.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zMethodID.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86_2.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/lzma/C/Compress/Lzma/LzmaDecode.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/physfs.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_byteorder.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/physfs_byteorder.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_unicode.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/physfs_unicode.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/macosx.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/platform/macosx.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/os2.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/platform/os2.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/pocketpc.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/platform/pocketpc.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/posix.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/platform/posix.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/unix.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/platform/unix.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/windows.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/platform/windows.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/adler32.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/adler32.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/compress.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/compress.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/crc32.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/deflate.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/gzio.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/gzio.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/infback.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/infback.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/inffast.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/inflate.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/inftrees.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/trees.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/uncompr.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/uncompr.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs-static.dir/zlib123/zutil.o"
)
SET(CMAKE_C_COMPILER_ID "GNU")
# Preprocessor definitions for this target.
SET(CMAKE_TARGET_DEFINITIONS
"PHYSFS_HAVE_MNTENT_H=1"
"_REENTRANT"
"_THREAD_SAFE"
"HAVE_ASSERT_H=1"
"PHYSFS_SUPPORTS_ZIP=1"
"PHYSFS_SUPPORTS_7Z=1"
"PHYSFS_SUPPORTS_GRP=1"
"PHYSFS_SUPPORTS_WAD=1"
"PHYSFS_SUPPORTS_HOG=1"
"PHYSFS_SUPPORTS_MVL=1"
"PHYSFS_SUPPORTS_QPAK=1"
"Z_PREFIX=1"
)
# Targets to which this target links.
SET(CMAKE_TARGET_LINKED_INFO_FILES
)
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,49 @@
FILE(REMOVE_RECURSE
"CMakeFiles/physfs-static.dir/physfs.o"
"CMakeFiles/physfs-static.dir/physfs_byteorder.o"
"CMakeFiles/physfs-static.dir/physfs_unicode.o"
"CMakeFiles/physfs-static.dir/platform/os2.o"
"CMakeFiles/physfs-static.dir/platform/pocketpc.o"
"CMakeFiles/physfs-static.dir/platform/posix.o"
"CMakeFiles/physfs-static.dir/platform/unix.o"
"CMakeFiles/physfs-static.dir/platform/macosx.o"
"CMakeFiles/physfs-static.dir/platform/windows.o"
"CMakeFiles/physfs-static.dir/archivers/dir.o"
"CMakeFiles/physfs-static.dir/archivers/grp.o"
"CMakeFiles/physfs-static.dir/archivers/hog.o"
"CMakeFiles/physfs-static.dir/archivers/lzma.o"
"CMakeFiles/physfs-static.dir/archivers/mvl.o"
"CMakeFiles/physfs-static.dir/archivers/qpak.o"
"CMakeFiles/physfs-static.dir/archivers/wad.o"
"CMakeFiles/physfs-static.dir/archivers/zip.o"
"CMakeFiles/physfs-static.dir/lzma/C/7zCrc.o"
"CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zBuffer.o"
"CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o"
"CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o"
"CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zHeader.o"
"CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o"
"CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o"
"CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zMethodID.o"
"CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86.o"
"CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86_2.o"
"CMakeFiles/physfs-static.dir/lzma/C/Compress/Lzma/LzmaDecode.o"
"CMakeFiles/physfs-static.dir/zlib123/adler32.o"
"CMakeFiles/physfs-static.dir/zlib123/compress.o"
"CMakeFiles/physfs-static.dir/zlib123/crc32.o"
"CMakeFiles/physfs-static.dir/zlib123/deflate.o"
"CMakeFiles/physfs-static.dir/zlib123/gzio.o"
"CMakeFiles/physfs-static.dir/zlib123/infback.o"
"CMakeFiles/physfs-static.dir/zlib123/inffast.o"
"CMakeFiles/physfs-static.dir/zlib123/inflate.o"
"CMakeFiles/physfs-static.dir/zlib123/inftrees.o"
"CMakeFiles/physfs-static.dir/zlib123/trees.o"
"CMakeFiles/physfs-static.dir/zlib123/uncompr.o"
"CMakeFiles/physfs-static.dir/zlib123/zutil.o"
"libphysfs.pdb"
"libphysfs.a"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang C)
INCLUDE(CMakeFiles/physfs-static.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)
@@ -0,0 +1,3 @@
FILE(REMOVE_RECURSE
"libphysfs.a"
)
@@ -0,0 +1,239 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
CMakeFiles/physfs-static.dir/archivers/dir.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/dir.c
physfs.h
physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/grp.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/grp.c
physfs.h
physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/hog.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/hog.c
physfs.h
physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/lzma.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma.c
lzma/C/7zCrc.h
lzma/C/Archive/7z/../../Types.h
lzma/C/Archive/7z/7zAlloc.h
lzma/C/Archive/7z/7zBuffer.h
lzma/C/Archive/7z/7zExtract.h
lzma/C/Archive/7z/7zHeader.h
lzma/C/Archive/7z/7zIn.h
lzma/C/Archive/7z/7zItem.h
lzma/C/Archive/7z/7zMethodID.h
lzma/C/Types.h
physfs.h
physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/mvl.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/mvl.c
physfs.h
physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/qpak.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/qpak.c
physfs.h
physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/wad.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/wad.c
physfs.h
physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/zip.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/zip.c
physfs.h
physfs_internal.h
zlib123/zconf.h
zlib123/zlib.h
CMakeFiles/physfs-static.dir/lzma/C/7zCrc.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Types.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zBuffer.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86_2.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zHeader.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zMethodID.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.h
CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86_2.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/../../Alloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.h
CMakeFiles/physfs-static.dir/lzma/C/Compress/Lzma/LzmaDecode.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaTypes.h
CMakeFiles/physfs-static.dir/physfs.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
CMakeFiles/physfs-static.dir/physfs_byteorder.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_byteorder.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
CMakeFiles/physfs-static.dir/physfs_unicode.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_casefolding.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_unicode.c
CMakeFiles/physfs-static.dir/platform/macosx.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/macosx.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs-static.dir/platform/os2.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/os2.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs-static.dir/platform/pocketpc.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/pocketpc.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs-static.dir/platform/posix.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/posix.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs-static.dir/platform/unix.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/unix.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs-static.dir/platform/windows.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/windows.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs-static.dir/zlib123/adler32.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/adler32.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/compress.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/compress.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/crc32.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/deflate.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/gzio.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/gzio.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/infback.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/infback.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/inffast.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/inflate.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/inftrees.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/trees.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/uncompr.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/uncompr.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/zutil.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
@@ -0,0 +1,239 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
CMakeFiles/physfs-static.dir/archivers/dir.o: archivers/dir.c
CMakeFiles/physfs-static.dir/archivers/dir.o: physfs.h
CMakeFiles/physfs-static.dir/archivers/dir.o: physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/grp.o: archivers/grp.c
CMakeFiles/physfs-static.dir/archivers/grp.o: physfs.h
CMakeFiles/physfs-static.dir/archivers/grp.o: physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/hog.o: archivers/hog.c
CMakeFiles/physfs-static.dir/archivers/hog.o: physfs.h
CMakeFiles/physfs-static.dir/archivers/hog.o: physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: archivers/lzma.c
CMakeFiles/physfs-static.dir/archivers/lzma.o: lzma/C/7zCrc.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: lzma/C/Archive/7z/7zExtract.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: lzma/C/Archive/7z/7zIn.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: lzma/C/Archive/7z/7zItem.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: lzma/C/Types.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: physfs.h
CMakeFiles/physfs-static.dir/archivers/lzma.o: physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/mvl.o: archivers/mvl.c
CMakeFiles/physfs-static.dir/archivers/mvl.o: physfs.h
CMakeFiles/physfs-static.dir/archivers/mvl.o: physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/qpak.o: archivers/qpak.c
CMakeFiles/physfs-static.dir/archivers/qpak.o: physfs.h
CMakeFiles/physfs-static.dir/archivers/qpak.o: physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/wad.o: archivers/wad.c
CMakeFiles/physfs-static.dir/archivers/wad.o: physfs.h
CMakeFiles/physfs-static.dir/archivers/wad.o: physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/zip.o: archivers/zip.c
CMakeFiles/physfs-static.dir/archivers/zip.o: physfs.h
CMakeFiles/physfs-static.dir/archivers/zip.o: physfs_internal.h
CMakeFiles/physfs-static.dir/archivers/zip.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/archivers/zip.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/lzma/C/7zCrc.o: lzma/C/7zCrc.c
CMakeFiles/physfs-static.dir/lzma/C/7zCrc.o: lzma/C/7zCrc.h
CMakeFiles/physfs-static.dir/lzma/C/7zCrc.o: lzma/C/Types.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zBuffer.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zBuffer.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zBuffer.o: lzma/C/Archive/7z/7zBuffer.c
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zBuffer.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Compress/Branch/BranchTypes.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Compress/Branch/BranchX86.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Compress/Branch/BranchX86_2.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Compress/Lzma/LzmaDecode.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Compress/Lzma/LzmaTypes.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zDecode.c
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zDecode.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zIn.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zItem.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/../../7zCrc.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zDecode.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zExtract.c
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zExtract.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zIn.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zItem.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zHeader.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zHeader.o: lzma/C/Archive/7z/7zHeader.c
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zHeader.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/../../7zCrc.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zDecode.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zIn.c
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zIn.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zItem.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zItem.c
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zItem.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zMethodID.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zMethodID.o: lzma/C/Archive/7z/7zMethodID.c
CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zMethodID.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86.o: lzma/C/Compress/Branch/BranchTypes.h
CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86.o: lzma/C/Compress/Branch/BranchX86.c
CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86.o: lzma/C/Compress/Branch/BranchX86.h
CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86_2.o: lzma/C/Compress/Branch/../../Alloc.h
CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86_2.o: lzma/C/Compress/Branch/BranchTypes.h
CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86_2.o: lzma/C/Compress/Branch/BranchX86_2.c
CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86_2.o: lzma/C/Compress/Branch/BranchX86_2.h
CMakeFiles/physfs-static.dir/lzma/C/Compress/Lzma/LzmaDecode.o: lzma/C/Compress/Lzma/LzmaDecode.c
CMakeFiles/physfs-static.dir/lzma/C/Compress/Lzma/LzmaDecode.o: lzma/C/Compress/Lzma/LzmaDecode.h
CMakeFiles/physfs-static.dir/lzma/C/Compress/Lzma/LzmaDecode.o: lzma/C/Compress/Lzma/LzmaTypes.h
CMakeFiles/physfs-static.dir/physfs.o: physfs.c
CMakeFiles/physfs-static.dir/physfs.o: physfs.h
CMakeFiles/physfs-static.dir/physfs.o: physfs_internal.h
CMakeFiles/physfs-static.dir/physfs_byteorder.o: physfs.h
CMakeFiles/physfs-static.dir/physfs_byteorder.o: physfs_byteorder.c
CMakeFiles/physfs-static.dir/physfs_byteorder.o: physfs_internal.h
CMakeFiles/physfs-static.dir/physfs_unicode.o: physfs.h
CMakeFiles/physfs-static.dir/physfs_unicode.o: physfs_casefolding.h
CMakeFiles/physfs-static.dir/physfs_unicode.o: physfs_internal.h
CMakeFiles/physfs-static.dir/physfs_unicode.o: physfs_unicode.c
CMakeFiles/physfs-static.dir/platform/macosx.o: platform/macosx.c
CMakeFiles/physfs-static.dir/platform/macosx.o: physfs.h
CMakeFiles/physfs-static.dir/platform/macosx.o: physfs_internal.h
CMakeFiles/physfs-static.dir/platform/macosx.o: physfs_platforms.h
CMakeFiles/physfs-static.dir/platform/os2.o: platform/os2.c
CMakeFiles/physfs-static.dir/platform/os2.o: physfs.h
CMakeFiles/physfs-static.dir/platform/os2.o: physfs_internal.h
CMakeFiles/physfs-static.dir/platform/os2.o: physfs_platforms.h
CMakeFiles/physfs-static.dir/platform/pocketpc.o: platform/pocketpc.c
CMakeFiles/physfs-static.dir/platform/pocketpc.o: physfs.h
CMakeFiles/physfs-static.dir/platform/pocketpc.o: physfs_internal.h
CMakeFiles/physfs-static.dir/platform/pocketpc.o: physfs_platforms.h
CMakeFiles/physfs-static.dir/platform/posix.o: platform/posix.c
CMakeFiles/physfs-static.dir/platform/posix.o: physfs.h
CMakeFiles/physfs-static.dir/platform/posix.o: physfs_internal.h
CMakeFiles/physfs-static.dir/platform/posix.o: physfs_platforms.h
CMakeFiles/physfs-static.dir/platform/unix.o: platform/unix.c
CMakeFiles/physfs-static.dir/platform/unix.o: physfs.h
CMakeFiles/physfs-static.dir/platform/unix.o: physfs_internal.h
CMakeFiles/physfs-static.dir/platform/unix.o: physfs_platforms.h
CMakeFiles/physfs-static.dir/platform/windows.o: platform/windows.c
CMakeFiles/physfs-static.dir/platform/windows.o: physfs.h
CMakeFiles/physfs-static.dir/platform/windows.o: physfs_internal.h
CMakeFiles/physfs-static.dir/platform/windows.o: physfs_platforms.h
CMakeFiles/physfs-static.dir/zlib123/adler32.o: zlib123/adler32.c
CMakeFiles/physfs-static.dir/zlib123/adler32.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/adler32.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/compress.o: zlib123/compress.c
CMakeFiles/physfs-static.dir/zlib123/compress.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/compress.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/crc32.o: zlib123/crc32.c
CMakeFiles/physfs-static.dir/zlib123/crc32.o: zlib123/crc32.h
CMakeFiles/physfs-static.dir/zlib123/crc32.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/crc32.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/crc32.o: zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/deflate.o: zlib123/deflate.c
CMakeFiles/physfs-static.dir/zlib123/deflate.o: zlib123/deflate.h
CMakeFiles/physfs-static.dir/zlib123/deflate.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/deflate.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/deflate.o: zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/gzio.o: zlib123/gzio.c
CMakeFiles/physfs-static.dir/zlib123/gzio.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/gzio.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/gzio.o: zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/infback.o: zlib123/infback.c
CMakeFiles/physfs-static.dir/zlib123/infback.o: zlib123/inffast.h
CMakeFiles/physfs-static.dir/zlib123/infback.o: zlib123/inffixed.h
CMakeFiles/physfs-static.dir/zlib123/infback.o: zlib123/inflate.h
CMakeFiles/physfs-static.dir/zlib123/infback.o: zlib123/inftrees.h
CMakeFiles/physfs-static.dir/zlib123/infback.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/infback.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/infback.o: zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/inffast.o: zlib123/inffast.c
CMakeFiles/physfs-static.dir/zlib123/inffast.o: zlib123/inffast.h
CMakeFiles/physfs-static.dir/zlib123/inffast.o: zlib123/inflate.h
CMakeFiles/physfs-static.dir/zlib123/inffast.o: zlib123/inftrees.h
CMakeFiles/physfs-static.dir/zlib123/inffast.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/inffast.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/inffast.o: zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/inflate.o: zlib123/inffast.h
CMakeFiles/physfs-static.dir/zlib123/inflate.o: zlib123/inffixed.h
CMakeFiles/physfs-static.dir/zlib123/inflate.o: zlib123/inflate.c
CMakeFiles/physfs-static.dir/zlib123/inflate.o: zlib123/inflate.h
CMakeFiles/physfs-static.dir/zlib123/inflate.o: zlib123/inftrees.h
CMakeFiles/physfs-static.dir/zlib123/inflate.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/inflate.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/inflate.o: zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/inftrees.o: zlib123/inftrees.c
CMakeFiles/physfs-static.dir/zlib123/inftrees.o: zlib123/inftrees.h
CMakeFiles/physfs-static.dir/zlib123/inftrees.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/inftrees.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/inftrees.o: zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/trees.o: zlib123/deflate.h
CMakeFiles/physfs-static.dir/zlib123/trees.o: zlib123/trees.c
CMakeFiles/physfs-static.dir/zlib123/trees.o: zlib123/trees.h
CMakeFiles/physfs-static.dir/zlib123/trees.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/trees.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/trees.o: zlib123/zutil.h
CMakeFiles/physfs-static.dir/zlib123/uncompr.o: zlib123/uncompr.c
CMakeFiles/physfs-static.dir/zlib123/uncompr.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/uncompr.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/zutil.o: zlib123/zconf.h
CMakeFiles/physfs-static.dir/zlib123/zutil.o: zlib123/zlib.h
CMakeFiles/physfs-static.dir/zlib123/zutil.o: zlib123/zutil.c
CMakeFiles/physfs-static.dir/zlib123/zutil.o: zlib123/zutil.h
@@ -0,0 +1,8 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# compile C with /usr/bin/gcc
C_FLAGS = -I/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/. -I/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123 -g -pipe -Werror -fsigned-char -Wall -fvisibility=hidden
C_DEFINES = -DPHYSFS_HAVE_MNTENT_H=1 -D_REENTRANT -D_THREAD_SAFE -DHAVE_ASSERT_H=1 -DPHYSFS_SUPPORTS_ZIP=1 -DPHYSFS_SUPPORTS_7Z=1 -DPHYSFS_SUPPORTS_GRP=1 -DPHYSFS_SUPPORTS_WAD=1 -DPHYSFS_SUPPORTS_HOG=1 -DPHYSFS_SUPPORTS_MVL=1 -DPHYSFS_SUPPORTS_QPAK=1 -DZ_PREFIX=1
@@ -0,0 +1,2 @@
/usr/bin/ar cr libphysfs.a CMakeFiles/physfs-static.dir/physfs.o CMakeFiles/physfs-static.dir/physfs_byteorder.o CMakeFiles/physfs-static.dir/physfs_unicode.o CMakeFiles/physfs-static.dir/platform/os2.o CMakeFiles/physfs-static.dir/platform/pocketpc.o CMakeFiles/physfs-static.dir/platform/posix.o CMakeFiles/physfs-static.dir/platform/unix.o CMakeFiles/physfs-static.dir/platform/macosx.o CMakeFiles/physfs-static.dir/platform/windows.o CMakeFiles/physfs-static.dir/archivers/dir.o CMakeFiles/physfs-static.dir/archivers/grp.o CMakeFiles/physfs-static.dir/archivers/hog.o CMakeFiles/physfs-static.dir/archivers/lzma.o CMakeFiles/physfs-static.dir/archivers/mvl.o CMakeFiles/physfs-static.dir/archivers/qpak.o CMakeFiles/physfs-static.dir/archivers/wad.o CMakeFiles/physfs-static.dir/archivers/zip.o CMakeFiles/physfs-static.dir/lzma/C/7zCrc.o CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zBuffer.o CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zHeader.o CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zMethodID.o CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86.o CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86_2.o CMakeFiles/physfs-static.dir/lzma/C/Compress/Lzma/LzmaDecode.o CMakeFiles/physfs-static.dir/zlib123/adler32.o CMakeFiles/physfs-static.dir/zlib123/compress.o CMakeFiles/physfs-static.dir/zlib123/crc32.o CMakeFiles/physfs-static.dir/zlib123/deflate.o CMakeFiles/physfs-static.dir/zlib123/gzio.o CMakeFiles/physfs-static.dir/zlib123/infback.o CMakeFiles/physfs-static.dir/zlib123/inffast.o CMakeFiles/physfs-static.dir/zlib123/inflate.o CMakeFiles/physfs-static.dir/zlib123/inftrees.o CMakeFiles/physfs-static.dir/zlib123/trees.o CMakeFiles/physfs-static.dir/zlib123/uncompr.o CMakeFiles/physfs-static.dir/zlib123/zutil.o
/usr/bin/ranlib libphysfs.a
@@ -0,0 +1,41 @@
CMAKE_PROGRESS_1 = 42
CMAKE_PROGRESS_2 = 43
CMAKE_PROGRESS_3 = 44
CMAKE_PROGRESS_4 = 45
CMAKE_PROGRESS_5 = 46
CMAKE_PROGRESS_6 = 47
CMAKE_PROGRESS_7 = 48
CMAKE_PROGRESS_8 = 49
CMAKE_PROGRESS_9 = 50
CMAKE_PROGRESS_10 = 51
CMAKE_PROGRESS_11 = 52
CMAKE_PROGRESS_12 = 53
CMAKE_PROGRESS_13 = 54
CMAKE_PROGRESS_14 = 55
CMAKE_PROGRESS_15 = 56
CMAKE_PROGRESS_16 = 57
CMAKE_PROGRESS_17 = 58
CMAKE_PROGRESS_18 = 59
CMAKE_PROGRESS_19 = 60
CMAKE_PROGRESS_20 = 61
CMAKE_PROGRESS_21 = 62
CMAKE_PROGRESS_22 = 63
CMAKE_PROGRESS_23 = 64
CMAKE_PROGRESS_24 = 65
CMAKE_PROGRESS_25 = 66
CMAKE_PROGRESS_26 = 67
CMAKE_PROGRESS_27 = 68
CMAKE_PROGRESS_28 = 69
CMAKE_PROGRESS_29 = 70
CMAKE_PROGRESS_30 = 71
CMAKE_PROGRESS_31 = 72
CMAKE_PROGRESS_32 = 73
CMAKE_PROGRESS_33 = 74
CMAKE_PROGRESS_34 = 75
CMAKE_PROGRESS_35 = 76
CMAKE_PROGRESS_36 = 77
CMAKE_PROGRESS_37 = 78
CMAKE_PROGRESS_38 = 79
CMAKE_PROGRESS_39 = 80
CMAKE_PROGRESS_40 = 81
@@ -0,0 +1,692 @@
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/dir.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/grp.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/hog.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma.c
stdlib.h
-
string.h
-
time.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
lzma/C/7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma/C/7zCrc.h
lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma/C/Archive/7z/7zIn.h
lzma/C/Archive/7z/7zExtract.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma/C/Archive/7z/7zExtract.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/mvl.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/qpak.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/wad.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/zip.c
stdio.h
-
stdlib.h
-
string.h
-
errno.h
-
time.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs.h
zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/zlib.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.c
7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.h
stddef.h
-
Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../7zCrc.h
stddef.h
-
Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchTypes.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86.h
BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86_2.h
BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaDecode.h
LzmaTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaTypes.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.c
7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
stddef.h
-
../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.c
memory.h
-
string.h
-
7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/LzmaDecode.h
../../Compress/Lzma/LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaDecode.h
../../Compress/Branch/BranchX86.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86.h
../../Compress/Branch/BranchX86_2.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86_2.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.c
7zExtract.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.h
7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.h
7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.c
7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.c
7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.c
7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
7zMethodID.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.c
7zMethodID.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/../../Alloc.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchTypes.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.c
BranchX86.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.h
BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.c
BranchX86_2.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.h
../../Alloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/../../Alloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.h
BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.c
LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.h
LzmaTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaTypes.h
stddef.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.c
stdio.h
-
stdlib.h
-
string.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_byteorder.c
stdio.h
-
stdlib.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_casefolding.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
stdlib.h
-
assert.h
-
malloc.h
-
alloca.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_unicode.c
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
physfs_casefolding.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_casefolding.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/macosx.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
Carbon/Carbon.h
-
IOKit/storage/IOMedia.h
-
IOKit/storage/IOCDMedia.h
-
IOKit/storage/IODVDMedia.h
-
sys/mount.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/os2.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
os2.h
-
stdio.h
-
stdlib.h
-
errno.h
-
string.h
-
time.h
-
ctype.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/pocketpc.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
stdio.h
-
windows.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/posix.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
stdio.h
-
stdlib.h
-
string.h
-
unistd.h
-
ctype.h
-
sys/types.h
-
sys/stat.h
-
pwd.h
-
dirent.h
-
errno.h
-
fcntl.h
-
linux/unistd.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/unix.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
stdio.h
-
stdlib.h
-
string.h
-
ctype.h
-
unistd.h
-
sys/types.h
-
pwd.h
-
sys/stat.h
-
sys/param.h
-
dirent.h
-
time.h
-
errno.h
-
pthread.h
-
sys/ucred.h
-
sys/mount.h
-
mntent.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/windows.c
physfs_platforms.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_platforms.h
windows.h
-
stdio.h
-
stdlib.h
-
string.h
-
errno.h
-
ctype.h
-
time.h
-
physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/adler32.c
zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/compress.c
zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.c
stdio.h
-
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
limits.h
-
crc32.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.c
deflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.h
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/gzio.c
stdio.h
-
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
stdarg.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/infback.c
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.c
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.c
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffixed.h
stdio.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.c
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.c
deflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.h
ctype.h
-
trees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.h
stdio.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/uncompr.c
zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
windows.h
-
sys/types.h
-
unistd.h
-
unixio.h
-
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.c
zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
stddef.h
-
string.h
-
stdlib.h
-
errno.h
-
alloc.h
-
malloc.h
-
malloc.h
-
unix.h
-
stdio.h
-
lzma/C/7zCrc.h
stddef.h
-
Types.h
lzma/C/Types.h
lzma/C/Archive/7z/../../Types.h
lzma/C/Archive/7z/7zAlloc.h
stddef.h
-
lzma/C/Archive/7z/7zBuffer.h
stddef.h
-
../../Types.h
lzma/C/Archive/7z/../../Types.h
lzma/C/Archive/7z/7zExtract.h
7zIn.h
lzma/C/Archive/7z/7zIn.h
lzma/C/Archive/7z/7zHeader.h
../../Types.h
lzma/C/Archive/7z/../../Types.h
lzma/C/Archive/7z/7zIn.h
7zHeader.h
lzma/C/Archive/7z/7zHeader.h
7zItem.h
lzma/C/Archive/7z/7zItem.h
7zAlloc.h
lzma/C/Archive/7z/7zAlloc.h
lzma/C/Archive/7z/7zItem.h
7zMethodID.h
lzma/C/Archive/7z/7zMethodID.h
7zHeader.h
lzma/C/Archive/7z/7zHeader.h
7zBuffer.h
lzma/C/Archive/7z/7zBuffer.h
lzma/C/Archive/7z/7zMethodID.h
../../Types.h
lzma/C/Archive/7z/../../Types.h
lzma/C/Types.h
physfs.h
physfs_internal.h
physfs.h
/physfs.h
stdlib.h
-
assert.h
-
malloc.h
-
alloca.h
-
physfs_platforms.h
TargetConditionals.h
-
zlib123/zconf.h
windows.h
-
sys/types.h
-
unistd.h
-
unixio.h
-
zlib123/zlib.h
zconf.h
zlib123/zconf.h
@@ -0,0 +1,75 @@
# The set of languages for which implicit dependencies are needed:
SET(CMAKE_DEPENDS_LANGUAGES
"C"
)
# The set of files for implicit dependencies of each language:
SET(CMAKE_DEPENDS_CHECK_C
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/dir.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/archivers/dir.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/grp.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/archivers/grp.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/hog.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/archivers/hog.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/archivers/lzma.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/mvl.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/archivers/mvl.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/qpak.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/archivers/qpak.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/wad.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/archivers/wad.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/zip.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/archivers/zip.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/7zCrc.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zBuffer.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zHeader.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zMethodID.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86_2.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/lzma/C/Compress/Lzma/LzmaDecode.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/physfs.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_byteorder.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/physfs_byteorder.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_unicode.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/physfs_unicode.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/macosx.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/platform/macosx.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/os2.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/platform/os2.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/pocketpc.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/platform/pocketpc.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/posix.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/platform/posix.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/unix.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/platform/unix.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/windows.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/platform/windows.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/adler32.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/adler32.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/compress.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/compress.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/crc32.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/deflate.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/gzio.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/gzio.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/infback.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/infback.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/inffast.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/inflate.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/inftrees.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/trees.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/uncompr.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/uncompr.o"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/zlib123/zutil.o"
)
SET(CMAKE_C_COMPILER_ID "GNU")
# Preprocessor definitions for this target.
SET(CMAKE_TARGET_DEFINITIONS
"PHYSFS_HAVE_MNTENT_H=1"
"_REENTRANT"
"_THREAD_SAFE"
"HAVE_ASSERT_H=1"
"PHYSFS_SUPPORTS_ZIP=1"
"PHYSFS_SUPPORTS_7Z=1"
"PHYSFS_SUPPORTS_GRP=1"
"PHYSFS_SUPPORTS_WAD=1"
"PHYSFS_SUPPORTS_HOG=1"
"PHYSFS_SUPPORTS_MVL=1"
"PHYSFS_SUPPORTS_QPAK=1"
"Z_PREFIX=1"
)
# Pairs of files generated by the same build rule.
SET(CMAKE_MULTIPLE_OUTPUT_PAIRS
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/libphysfs.so" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/libphysfs.so.2.0.2"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/libphysfs.so.1" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/libphysfs.so.2.0.2"
)
# Targets to which this target links.
SET(CMAKE_TARGET_LINKED_INFO_FILES
)
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,51 @@
FILE(REMOVE_RECURSE
"CMakeFiles/physfs.dir/physfs.o"
"CMakeFiles/physfs.dir/physfs_byteorder.o"
"CMakeFiles/physfs.dir/physfs_unicode.o"
"CMakeFiles/physfs.dir/platform/os2.o"
"CMakeFiles/physfs.dir/platform/pocketpc.o"
"CMakeFiles/physfs.dir/platform/posix.o"
"CMakeFiles/physfs.dir/platform/unix.o"
"CMakeFiles/physfs.dir/platform/macosx.o"
"CMakeFiles/physfs.dir/platform/windows.o"
"CMakeFiles/physfs.dir/archivers/dir.o"
"CMakeFiles/physfs.dir/archivers/grp.o"
"CMakeFiles/physfs.dir/archivers/hog.o"
"CMakeFiles/physfs.dir/archivers/lzma.o"
"CMakeFiles/physfs.dir/archivers/mvl.o"
"CMakeFiles/physfs.dir/archivers/qpak.o"
"CMakeFiles/physfs.dir/archivers/wad.o"
"CMakeFiles/physfs.dir/archivers/zip.o"
"CMakeFiles/physfs.dir/lzma/C/7zCrc.o"
"CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zBuffer.o"
"CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o"
"CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o"
"CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zHeader.o"
"CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o"
"CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o"
"CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zMethodID.o"
"CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86.o"
"CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86_2.o"
"CMakeFiles/physfs.dir/lzma/C/Compress/Lzma/LzmaDecode.o"
"CMakeFiles/physfs.dir/zlib123/adler32.o"
"CMakeFiles/physfs.dir/zlib123/compress.o"
"CMakeFiles/physfs.dir/zlib123/crc32.o"
"CMakeFiles/physfs.dir/zlib123/deflate.o"
"CMakeFiles/physfs.dir/zlib123/gzio.o"
"CMakeFiles/physfs.dir/zlib123/infback.o"
"CMakeFiles/physfs.dir/zlib123/inffast.o"
"CMakeFiles/physfs.dir/zlib123/inflate.o"
"CMakeFiles/physfs.dir/zlib123/inftrees.o"
"CMakeFiles/physfs.dir/zlib123/trees.o"
"CMakeFiles/physfs.dir/zlib123/uncompr.o"
"CMakeFiles/physfs.dir/zlib123/zutil.o"
"libphysfs.pdb"
"libphysfs.so"
"libphysfs.so.2.0.2"
"libphysfs.so.1"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang C)
INCLUDE(CMakeFiles/physfs.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)
@@ -0,0 +1,239 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
CMakeFiles/physfs.dir/archivers/dir.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/dir.c
physfs.h
physfs_internal.h
CMakeFiles/physfs.dir/archivers/grp.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/grp.c
physfs.h
physfs_internal.h
CMakeFiles/physfs.dir/archivers/hog.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/hog.c
physfs.h
physfs_internal.h
CMakeFiles/physfs.dir/archivers/lzma.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/lzma.c
lzma/C/7zCrc.h
lzma/C/Archive/7z/../../Types.h
lzma/C/Archive/7z/7zAlloc.h
lzma/C/Archive/7z/7zBuffer.h
lzma/C/Archive/7z/7zExtract.h
lzma/C/Archive/7z/7zHeader.h
lzma/C/Archive/7z/7zIn.h
lzma/C/Archive/7z/7zItem.h
lzma/C/Archive/7z/7zMethodID.h
lzma/C/Types.h
physfs.h
physfs_internal.h
CMakeFiles/physfs.dir/archivers/mvl.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/mvl.c
physfs.h
physfs_internal.h
CMakeFiles/physfs.dir/archivers/qpak.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/qpak.c
physfs.h
physfs_internal.h
CMakeFiles/physfs.dir/archivers/wad.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/wad.c
physfs.h
physfs_internal.h
CMakeFiles/physfs.dir/archivers/zip.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/archivers/zip.c
physfs.h
physfs_internal.h
zlib123/zconf.h
zlib123/zlib.h
CMakeFiles/physfs.dir/lzma/C/7zCrc.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Types.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zBuffer.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Branch/BranchX86_2.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Compress/Lzma/LzmaTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zExtract.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zHeader.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../7zCrc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zIn.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zAlloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zBuffer.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zHeader.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zItem.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zMethodID.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/../../Types.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86.h
CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86_2.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/../../Alloc.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchTypes.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Branch/BranchX86_2.h
CMakeFiles/physfs.dir/lzma/C/Compress/Lzma/LzmaDecode.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaDecode.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/lzma/C/Compress/Lzma/LzmaTypes.h
CMakeFiles/physfs.dir/physfs.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
CMakeFiles/physfs.dir/physfs_byteorder.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_byteorder.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
CMakeFiles/physfs.dir/physfs_unicode.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_casefolding.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_internal.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs_unicode.c
CMakeFiles/physfs.dir/platform/macosx.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/macosx.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs.dir/platform/os2.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/os2.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs.dir/platform/pocketpc.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/pocketpc.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs.dir/platform/posix.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/posix.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs.dir/platform/unix.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/unix.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs.dir/platform/windows.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/platform/windows.c
physfs.h
physfs_internal.h
physfs_platforms.h
CMakeFiles/physfs.dir/zlib123/adler32.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/adler32.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/compress.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/compress.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/crc32.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/crc32.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/deflate.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/gzio.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/gzio.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/infback.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/infback.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/inffast.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/inflate.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffast.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inffixed.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/inftrees.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/inftrees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/trees.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/deflate.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/trees.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/uncompr.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/uncompr.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/zutil.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zconf.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zlib.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.c
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123/zutil.h
@@ -0,0 +1,239 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
CMakeFiles/physfs.dir/archivers/dir.o: archivers/dir.c
CMakeFiles/physfs.dir/archivers/dir.o: physfs.h
CMakeFiles/physfs.dir/archivers/dir.o: physfs_internal.h
CMakeFiles/physfs.dir/archivers/grp.o: archivers/grp.c
CMakeFiles/physfs.dir/archivers/grp.o: physfs.h
CMakeFiles/physfs.dir/archivers/grp.o: physfs_internal.h
CMakeFiles/physfs.dir/archivers/hog.o: archivers/hog.c
CMakeFiles/physfs.dir/archivers/hog.o: physfs.h
CMakeFiles/physfs.dir/archivers/hog.o: physfs_internal.h
CMakeFiles/physfs.dir/archivers/lzma.o: archivers/lzma.c
CMakeFiles/physfs.dir/archivers/lzma.o: lzma/C/7zCrc.h
CMakeFiles/physfs.dir/archivers/lzma.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs.dir/archivers/lzma.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs.dir/archivers/lzma.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs.dir/archivers/lzma.o: lzma/C/Archive/7z/7zExtract.h
CMakeFiles/physfs.dir/archivers/lzma.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs.dir/archivers/lzma.o: lzma/C/Archive/7z/7zIn.h
CMakeFiles/physfs.dir/archivers/lzma.o: lzma/C/Archive/7z/7zItem.h
CMakeFiles/physfs.dir/archivers/lzma.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/archivers/lzma.o: lzma/C/Types.h
CMakeFiles/physfs.dir/archivers/lzma.o: physfs.h
CMakeFiles/physfs.dir/archivers/lzma.o: physfs_internal.h
CMakeFiles/physfs.dir/archivers/mvl.o: archivers/mvl.c
CMakeFiles/physfs.dir/archivers/mvl.o: physfs.h
CMakeFiles/physfs.dir/archivers/mvl.o: physfs_internal.h
CMakeFiles/physfs.dir/archivers/qpak.o: archivers/qpak.c
CMakeFiles/physfs.dir/archivers/qpak.o: physfs.h
CMakeFiles/physfs.dir/archivers/qpak.o: physfs_internal.h
CMakeFiles/physfs.dir/archivers/wad.o: archivers/wad.c
CMakeFiles/physfs.dir/archivers/wad.o: physfs.h
CMakeFiles/physfs.dir/archivers/wad.o: physfs_internal.h
CMakeFiles/physfs.dir/archivers/zip.o: archivers/zip.c
CMakeFiles/physfs.dir/archivers/zip.o: physfs.h
CMakeFiles/physfs.dir/archivers/zip.o: physfs_internal.h
CMakeFiles/physfs.dir/archivers/zip.o: zlib123/zconf.h
CMakeFiles/physfs.dir/archivers/zip.o: zlib123/zlib.h
CMakeFiles/physfs.dir/lzma/C/7zCrc.o: lzma/C/7zCrc.c
CMakeFiles/physfs.dir/lzma/C/7zCrc.o: lzma/C/7zCrc.h
CMakeFiles/physfs.dir/lzma/C/7zCrc.o: lzma/C/Types.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zBuffer.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zBuffer.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zBuffer.o: lzma/C/Archive/7z/7zBuffer.c
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zBuffer.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Compress/Branch/BranchTypes.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Compress/Branch/BranchX86.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Compress/Branch/BranchX86_2.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Compress/Lzma/LzmaDecode.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Compress/Lzma/LzmaTypes.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zDecode.c
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zDecode.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zIn.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zItem.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/../../7zCrc.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zDecode.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zExtract.c
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zExtract.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zIn.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zItem.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zHeader.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zHeader.o: lzma/C/Archive/7z/7zHeader.c
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zHeader.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/../../7zCrc.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zDecode.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zIn.c
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zIn.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zItem.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zAlloc.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zBuffer.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zHeader.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zItem.c
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zItem.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zMethodID.o: lzma/C/Archive/7z/../../Types.h
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zMethodID.o: lzma/C/Archive/7z/7zMethodID.c
CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zMethodID.o: lzma/C/Archive/7z/7zMethodID.h
CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86.o: lzma/C/Compress/Branch/BranchTypes.h
CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86.o: lzma/C/Compress/Branch/BranchX86.c
CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86.o: lzma/C/Compress/Branch/BranchX86.h
CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86_2.o: lzma/C/Compress/Branch/../../Alloc.h
CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86_2.o: lzma/C/Compress/Branch/BranchTypes.h
CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86_2.o: lzma/C/Compress/Branch/BranchX86_2.c
CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86_2.o: lzma/C/Compress/Branch/BranchX86_2.h
CMakeFiles/physfs.dir/lzma/C/Compress/Lzma/LzmaDecode.o: lzma/C/Compress/Lzma/LzmaDecode.c
CMakeFiles/physfs.dir/lzma/C/Compress/Lzma/LzmaDecode.o: lzma/C/Compress/Lzma/LzmaDecode.h
CMakeFiles/physfs.dir/lzma/C/Compress/Lzma/LzmaDecode.o: lzma/C/Compress/Lzma/LzmaTypes.h
CMakeFiles/physfs.dir/physfs.o: physfs.c
CMakeFiles/physfs.dir/physfs.o: physfs.h
CMakeFiles/physfs.dir/physfs.o: physfs_internal.h
CMakeFiles/physfs.dir/physfs_byteorder.o: physfs.h
CMakeFiles/physfs.dir/physfs_byteorder.o: physfs_byteorder.c
CMakeFiles/physfs.dir/physfs_byteorder.o: physfs_internal.h
CMakeFiles/physfs.dir/physfs_unicode.o: physfs.h
CMakeFiles/physfs.dir/physfs_unicode.o: physfs_casefolding.h
CMakeFiles/physfs.dir/physfs_unicode.o: physfs_internal.h
CMakeFiles/physfs.dir/physfs_unicode.o: physfs_unicode.c
CMakeFiles/physfs.dir/platform/macosx.o: platform/macosx.c
CMakeFiles/physfs.dir/platform/macosx.o: physfs.h
CMakeFiles/physfs.dir/platform/macosx.o: physfs_internal.h
CMakeFiles/physfs.dir/platform/macosx.o: physfs_platforms.h
CMakeFiles/physfs.dir/platform/os2.o: platform/os2.c
CMakeFiles/physfs.dir/platform/os2.o: physfs.h
CMakeFiles/physfs.dir/platform/os2.o: physfs_internal.h
CMakeFiles/physfs.dir/platform/os2.o: physfs_platforms.h
CMakeFiles/physfs.dir/platform/pocketpc.o: platform/pocketpc.c
CMakeFiles/physfs.dir/platform/pocketpc.o: physfs.h
CMakeFiles/physfs.dir/platform/pocketpc.o: physfs_internal.h
CMakeFiles/physfs.dir/platform/pocketpc.o: physfs_platforms.h
CMakeFiles/physfs.dir/platform/posix.o: platform/posix.c
CMakeFiles/physfs.dir/platform/posix.o: physfs.h
CMakeFiles/physfs.dir/platform/posix.o: physfs_internal.h
CMakeFiles/physfs.dir/platform/posix.o: physfs_platforms.h
CMakeFiles/physfs.dir/platform/unix.o: platform/unix.c
CMakeFiles/physfs.dir/platform/unix.o: physfs.h
CMakeFiles/physfs.dir/platform/unix.o: physfs_internal.h
CMakeFiles/physfs.dir/platform/unix.o: physfs_platforms.h
CMakeFiles/physfs.dir/platform/windows.o: platform/windows.c
CMakeFiles/physfs.dir/platform/windows.o: physfs.h
CMakeFiles/physfs.dir/platform/windows.o: physfs_internal.h
CMakeFiles/physfs.dir/platform/windows.o: physfs_platforms.h
CMakeFiles/physfs.dir/zlib123/adler32.o: zlib123/adler32.c
CMakeFiles/physfs.dir/zlib123/adler32.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/adler32.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/compress.o: zlib123/compress.c
CMakeFiles/physfs.dir/zlib123/compress.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/compress.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/crc32.o: zlib123/crc32.c
CMakeFiles/physfs.dir/zlib123/crc32.o: zlib123/crc32.h
CMakeFiles/physfs.dir/zlib123/crc32.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/crc32.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/crc32.o: zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/deflate.o: zlib123/deflate.c
CMakeFiles/physfs.dir/zlib123/deflate.o: zlib123/deflate.h
CMakeFiles/physfs.dir/zlib123/deflate.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/deflate.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/deflate.o: zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/gzio.o: zlib123/gzio.c
CMakeFiles/physfs.dir/zlib123/gzio.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/gzio.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/gzio.o: zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/infback.o: zlib123/infback.c
CMakeFiles/physfs.dir/zlib123/infback.o: zlib123/inffast.h
CMakeFiles/physfs.dir/zlib123/infback.o: zlib123/inffixed.h
CMakeFiles/physfs.dir/zlib123/infback.o: zlib123/inflate.h
CMakeFiles/physfs.dir/zlib123/infback.o: zlib123/inftrees.h
CMakeFiles/physfs.dir/zlib123/infback.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/infback.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/infback.o: zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/inffast.o: zlib123/inffast.c
CMakeFiles/physfs.dir/zlib123/inffast.o: zlib123/inffast.h
CMakeFiles/physfs.dir/zlib123/inffast.o: zlib123/inflate.h
CMakeFiles/physfs.dir/zlib123/inffast.o: zlib123/inftrees.h
CMakeFiles/physfs.dir/zlib123/inffast.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/inffast.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/inffast.o: zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/inflate.o: zlib123/inffast.h
CMakeFiles/physfs.dir/zlib123/inflate.o: zlib123/inffixed.h
CMakeFiles/physfs.dir/zlib123/inflate.o: zlib123/inflate.c
CMakeFiles/physfs.dir/zlib123/inflate.o: zlib123/inflate.h
CMakeFiles/physfs.dir/zlib123/inflate.o: zlib123/inftrees.h
CMakeFiles/physfs.dir/zlib123/inflate.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/inflate.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/inflate.o: zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/inftrees.o: zlib123/inftrees.c
CMakeFiles/physfs.dir/zlib123/inftrees.o: zlib123/inftrees.h
CMakeFiles/physfs.dir/zlib123/inftrees.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/inftrees.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/inftrees.o: zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/trees.o: zlib123/deflate.h
CMakeFiles/physfs.dir/zlib123/trees.o: zlib123/trees.c
CMakeFiles/physfs.dir/zlib123/trees.o: zlib123/trees.h
CMakeFiles/physfs.dir/zlib123/trees.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/trees.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/trees.o: zlib123/zutil.h
CMakeFiles/physfs.dir/zlib123/uncompr.o: zlib123/uncompr.c
CMakeFiles/physfs.dir/zlib123/uncompr.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/uncompr.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/zutil.o: zlib123/zconf.h
CMakeFiles/physfs.dir/zlib123/zutil.o: zlib123/zlib.h
CMakeFiles/physfs.dir/zlib123/zutil.o: zlib123/zutil.c
CMakeFiles/physfs.dir/zlib123/zutil.o: zlib123/zutil.h
@@ -0,0 +1,8 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# compile C with /usr/bin/gcc
C_FLAGS = -fPIC -I/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/. -I/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123 -g -pipe -Werror -fsigned-char -Wall -fvisibility=hidden
C_DEFINES = -Dphysfs_EXPORTS -DPHYSFS_HAVE_MNTENT_H=1 -D_REENTRANT -D_THREAD_SAFE -DHAVE_ASSERT_H=1 -DPHYSFS_SUPPORTS_ZIP=1 -DPHYSFS_SUPPORTS_7Z=1 -DPHYSFS_SUPPORTS_GRP=1 -DPHYSFS_SUPPORTS_WAD=1 -DPHYSFS_SUPPORTS_HOG=1 -DPHYSFS_SUPPORTS_MVL=1 -DPHYSFS_SUPPORTS_QPAK=1 -DZ_PREFIX=1
@@ -0,0 +1 @@
/usr/bin/gcc -fPIC -shared -Wl,-soname,libphysfs.so.1 -o libphysfs.so.2.0.2 CMakeFiles/physfs.dir/physfs.o CMakeFiles/physfs.dir/physfs_byteorder.o CMakeFiles/physfs.dir/physfs_unicode.o CMakeFiles/physfs.dir/platform/os2.o CMakeFiles/physfs.dir/platform/pocketpc.o CMakeFiles/physfs.dir/platform/posix.o CMakeFiles/physfs.dir/platform/unix.o CMakeFiles/physfs.dir/platform/macosx.o CMakeFiles/physfs.dir/platform/windows.o CMakeFiles/physfs.dir/archivers/dir.o CMakeFiles/physfs.dir/archivers/grp.o CMakeFiles/physfs.dir/archivers/hog.o CMakeFiles/physfs.dir/archivers/lzma.o CMakeFiles/physfs.dir/archivers/mvl.o CMakeFiles/physfs.dir/archivers/qpak.o CMakeFiles/physfs.dir/archivers/wad.o CMakeFiles/physfs.dir/archivers/zip.o CMakeFiles/physfs.dir/lzma/C/7zCrc.o CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zBuffer.o CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zHeader.o CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zMethodID.o CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86.o CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86_2.o CMakeFiles/physfs.dir/lzma/C/Compress/Lzma/LzmaDecode.o CMakeFiles/physfs.dir/zlib123/adler32.o CMakeFiles/physfs.dir/zlib123/compress.o CMakeFiles/physfs.dir/zlib123/crc32.o CMakeFiles/physfs.dir/zlib123/deflate.o CMakeFiles/physfs.dir/zlib123/gzio.o CMakeFiles/physfs.dir/zlib123/infback.o CMakeFiles/physfs.dir/zlib123/inffast.o CMakeFiles/physfs.dir/zlib123/inflate.o CMakeFiles/physfs.dir/zlib123/inftrees.o CMakeFiles/physfs.dir/zlib123/trees.o CMakeFiles/physfs.dir/zlib123/uncompr.o CMakeFiles/physfs.dir/zlib123/zutil.o
@@ -0,0 +1,41 @@
CMAKE_PROGRESS_1 = 2
CMAKE_PROGRESS_2 = 3
CMAKE_PROGRESS_3 = 4
CMAKE_PROGRESS_4 = 5
CMAKE_PROGRESS_5 = 6
CMAKE_PROGRESS_6 = 7
CMAKE_PROGRESS_7 = 8
CMAKE_PROGRESS_8 = 9
CMAKE_PROGRESS_9 = 10
CMAKE_PROGRESS_10 = 11
CMAKE_PROGRESS_11 = 12
CMAKE_PROGRESS_12 = 13
CMAKE_PROGRESS_13 = 14
CMAKE_PROGRESS_14 = 15
CMAKE_PROGRESS_15 = 16
CMAKE_PROGRESS_16 = 17
CMAKE_PROGRESS_17 = 18
CMAKE_PROGRESS_18 = 19
CMAKE_PROGRESS_19 = 20
CMAKE_PROGRESS_20 = 21
CMAKE_PROGRESS_21 = 22
CMAKE_PROGRESS_22 = 23
CMAKE_PROGRESS_23 = 24
CMAKE_PROGRESS_24 = 25
CMAKE_PROGRESS_25 = 26
CMAKE_PROGRESS_26 = 27
CMAKE_PROGRESS_27 = 28
CMAKE_PROGRESS_28 = 29
CMAKE_PROGRESS_29 = 30
CMAKE_PROGRESS_30 = 31
CMAKE_PROGRESS_31 = 32
CMAKE_PROGRESS_32 = 33
CMAKE_PROGRESS_33 = 34
CMAKE_PROGRESS_34 = 35
CMAKE_PROGRESS_35 = 36
CMAKE_PROGRESS_36 = 37
CMAKE_PROGRESS_37 = 38
CMAKE_PROGRESS_38 = 39
CMAKE_PROGRESS_39 = 40
CMAKE_PROGRESS_40 = 41
@@ -0,0 +1 @@
81
@@ -0,0 +1,32 @@
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/test/test_physfs.c
stdio.h
-
stdlib.h
-
errno.h
-
string.h
-
SIOUX.h
-
unistd.h
-
readline/readline.h
-
readline/history.h
-
time.h
-
physfs.h
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/test/physfs.h
physfs.h
@@ -0,0 +1,30 @@
# The set of languages for which implicit dependencies are needed:
SET(CMAKE_DEPENDS_LANGUAGES
"C"
)
# The set of files for implicit dependencies of each language:
SET(CMAKE_DEPENDS_CHECK_C
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/test/test_physfs.c" "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/test_physfs.dir/test/test_physfs.o"
)
SET(CMAKE_C_COMPILER_ID "GNU")
# Preprocessor definitions for this target.
SET(CMAKE_TARGET_DEFINITIONS
"PHYSFS_HAVE_MNTENT_H=1"
"_REENTRANT"
"_THREAD_SAFE"
"HAVE_ASSERT_H=1"
"PHYSFS_SUPPORTS_ZIP=1"
"PHYSFS_SUPPORTS_7Z=1"
"PHYSFS_SUPPORTS_GRP=1"
"PHYSFS_SUPPORTS_WAD=1"
"PHYSFS_SUPPORTS_HOG=1"
"PHYSFS_SUPPORTS_MVL=1"
"PHYSFS_SUPPORTS_QPAK=1"
"Z_PREFIX=1"
)
# Targets to which this target links.
SET(CMAKE_TARGET_LINKED_INFO_FILES
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/physfs.dir/DependInfo.cmake"
)
@@ -0,0 +1,101 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canoncical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
# Include any dependencies generated for this target.
include CMakeFiles/test_physfs.dir/depend.make
# Include the progress variables for this target.
include CMakeFiles/test_physfs.dir/progress.make
# Include the compile flags for this target's objects.
include CMakeFiles/test_physfs.dir/flags.make
CMakeFiles/test_physfs.dir/test/test_physfs.o: CMakeFiles/test_physfs.dir/flags.make
CMakeFiles/test_physfs.dir/test/test_physfs.o: test/test_physfs.c
$(CMAKE_COMMAND) -E cmake_progress_report /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles $(CMAKE_PROGRESS_1)
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Building C object CMakeFiles/test_physfs.dir/test/test_physfs.o"
/usr/bin/gcc $(C_DEFINES) $(C_FLAGS) -o CMakeFiles/test_physfs.dir/test/test_physfs.o -c /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/test/test_physfs.c
CMakeFiles/test_physfs.dir/test/test_physfs.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/test_physfs.dir/test/test_physfs.i"
/usr/bin/gcc $(C_DEFINES) $(C_FLAGS) -E /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/test/test_physfs.c > CMakeFiles/test_physfs.dir/test/test_physfs.i
CMakeFiles/test_physfs.dir/test/test_physfs.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/test_physfs.dir/test/test_physfs.s"
/usr/bin/gcc $(C_DEFINES) $(C_FLAGS) -S /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/test/test_physfs.c -o CMakeFiles/test_physfs.dir/test/test_physfs.s
CMakeFiles/test_physfs.dir/test/test_physfs.o.requires:
.PHONY : CMakeFiles/test_physfs.dir/test/test_physfs.o.requires
CMakeFiles/test_physfs.dir/test/test_physfs.o.provides: CMakeFiles/test_physfs.dir/test/test_physfs.o.requires
$(MAKE) -f CMakeFiles/test_physfs.dir/build.make CMakeFiles/test_physfs.dir/test/test_physfs.o.provides.build
.PHONY : CMakeFiles/test_physfs.dir/test/test_physfs.o.provides
CMakeFiles/test_physfs.dir/test/test_physfs.o.provides.build: CMakeFiles/test_physfs.dir/test/test_physfs.o
.PHONY : CMakeFiles/test_physfs.dir/test/test_physfs.o.provides.build
# Object files for target test_physfs
test_physfs_OBJECTS = \
"CMakeFiles/test_physfs.dir/test/test_physfs.o"
# External object files for target test_physfs
test_physfs_EXTERNAL_OBJECTS =
test_physfs: CMakeFiles/test_physfs.dir/test/test_physfs.o
test_physfs: libphysfs.so.2.0.2
test_physfs: CMakeFiles/test_physfs.dir/build.make
test_physfs: CMakeFiles/test_physfs.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking C executable test_physfs"
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/test_physfs.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
CMakeFiles/test_physfs.dir/build: test_physfs
.PHONY : CMakeFiles/test_physfs.dir/build
CMakeFiles/test_physfs.dir/requires: CMakeFiles/test_physfs.dir/test/test_physfs.o.requires
.PHONY : CMakeFiles/test_physfs.dir/requires
CMakeFiles/test_physfs.dir/clean:
$(CMAKE_COMMAND) -P CMakeFiles/test_physfs.dir/cmake_clean.cmake
.PHONY : CMakeFiles/test_physfs.dir/clean
CMakeFiles/test_physfs.dir/depend:
cd /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2 && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2 /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2 /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2 /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2 /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/CMakeFiles/test_physfs.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/test_physfs.dir/depend
@@ -0,0 +1,10 @@
FILE(REMOVE_RECURSE
"CMakeFiles/test_physfs.dir/test/test_physfs.o"
"test_physfs.pdb"
"test_physfs"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang C)
INCLUDE(CMakeFiles/test_physfs.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)
@@ -0,0 +1,6 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
CMakeFiles/test_physfs.dir/test/test_physfs.o
/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/test/test_physfs.c
physfs.h
@@ -0,0 +1,6 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
CMakeFiles/test_physfs.dir/test/test_physfs.o: test/test_physfs.c
CMakeFiles/test_physfs.dir/test/test_physfs.o: physfs.h
@@ -0,0 +1,8 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# compile C with /usr/bin/gcc
C_FLAGS = -I/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/. -I/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/zlib123 -g -pipe -Werror -fsigned-char -Wall -fvisibility=hidden
C_DEFINES = -DPHYSFS_HAVE_MNTENT_H=1 -D_REENTRANT -D_THREAD_SAFE -DHAVE_ASSERT_H=1 -DPHYSFS_SUPPORTS_ZIP=1 -DPHYSFS_SUPPORTS_7Z=1 -DPHYSFS_SUPPORTS_GRP=1 -DPHYSFS_SUPPORTS_WAD=1 -DPHYSFS_SUPPORTS_HOG=1 -DPHYSFS_SUPPORTS_MVL=1 -DPHYSFS_SUPPORTS_QPAK=1 -DZ_PREFIX=1
@@ -0,0 +1 @@
/usr/bin/gcc CMakeFiles/test_physfs.dir/test/test_physfs.o -o test_physfs -rdynamic libphysfs.so.2.0.2 -Wl,-rpath,/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2:
@@ -0,0 +1,2 @@
CMAKE_PROGRESS_1 = 82
+388
View File
@@ -0,0 +1,388 @@
# PhysicsFS; a portable, flexible file i/o abstraction.
# Copyright (C) 2007 Ryan C. Gordon.
#
# Please see the file LICENSE.txt in the source's root directory.
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
PROJECT(PhysicsFS)
SET(PHYSFS_VERSION 2.0.2)
# Increment this if/when we break backwards compatibility.
SET(PHYSFS_SOVERSION 1)
# 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)
IF(MACOSX)
# Fallback to older OS X on PowerPC to support wider range of systems...
IF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
ADD_DEFINITIONS(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020)
SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -mmacosx-version-min=10.2")
ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
# Need these everywhere...
ADD_DEFINITIONS(-fno-common)
SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -framework Carbon -framework IOKit")
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 -Werror -fsigned-char)
# Stupid BeOS generates warnings in the system headers.
IF(NOT BEOS)
ADD_DEFINITIONS(-Wall)
ENDIF(NOT BEOS)
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)
# Not supported on several operating systems at this time.
IF(NOT OS2 AND NOT SOLARIS AND NOT WINDOWS)
ADD_DEFINITIONS(-fvisibility=hidden)
ENDIF(NOT OS2 AND NOT SOLARIS AND NOT WINDOWS)
ENDIF(PHYSFS_IS_GCC4)
ENDIF(CMAKE_COMPILER_IS_GNUCC)
IF(MSVC)
# VS.NET 8.0 got really really anal about strcpy, etc, which even if we
# cleaned up our code, zlib, etc still use...so disable the warning.
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS=1)
ENDIF(MSVC)
# 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/C/7zCrc.c
lzma/C/Archive/7z/7zBuffer.c
lzma/C/Archive/7z/7zDecode.c
lzma/C/Archive/7z/7zExtract.c
lzma/C/Archive/7z/7zHeader.c
lzma/C/Archive/7z/7zIn.c
lzma/C/Archive/7z/7zItem.c
lzma/C/Archive/7z/7zMethodID.c
lzma/C/Compress/Branch/BranchX86.c
lzma/C/Compress/Branch/BranchX86_2.c
lzma/C/Compress/Lzma/LzmaDecode.c
)
IF(BEOS)
# We add this explicitly, since we don't want CMake to think this
# is a C++ project unless we're on BeOS.
SET(PHYSFS_BEOS_SRCS platform/beos.cpp)
FIND_LIBRARY(BE_LIBRARY be)
FIND_LIBRARY(ROOT_LIBRARY root)
SET(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${BE_LIBRARY} ${ROOT_LIBRARY})
ENDIF(BEOS)
# Almost everything is "compiled" here, but things that don't apply to the
# build are #ifdef'd out. This is to make it easy to embed PhysicsFS into
# another project or bring up a new build system: just compile all the source
# code and #define the things you want.
SET(PHYSFS_SRCS
physfs.c
physfs_byteorder.c
physfs_unicode.c
platform/os2.c
platform/pocketpc.c
platform/posix.c
platform/unix.c
platform/macosx.c
platform/windows.c
archivers/dir.c
archivers/grp.c
archivers/hog.c
archivers/lzma.c
archivers/mvl.c
archivers/qpak.c
archivers/wad.c
archivers/zip.c
${PHYSFS_BEOS_SRCS}
)
# platform layers ...
IF(UNIX)
IF(BEOS)
SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
SET(HAVE_PTHREAD_H TRUE)
ELSE(BEOS)
# !!! 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)
CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
IF(HAVE_PTHREAD_H)
SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
ENDIF(HAVE_PTHREAD_H)
ENDIF(BEOS)
ENDIF(UNIX)
IF(WINDOWS)
SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
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)
ADD_DEFINITIONS(-DPHYSFS_NO_THREAD_SUPPORT=1)
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)
CHECK_INCLUDE_FILE(assert.h HAVE_ASSERT_H)
IF(HAVE_ASSERT_H)
ADD_DEFINITIONS(-DHAVE_ASSERT_H=1)
ENDIF(HAVE_ASSERT_H)
# Archivers ...
OPTION(PHYSFS_ARCHIVE_ZIP "Enable ZIP support" TRUE)
IF(PHYSFS_ARCHIVE_ZIP)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_ZIP=1)
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})
ENDIF(PHYSFS_ARCHIVE_7Z)
OPTION(PHYSFS_ARCHIVE_GRP "Enable Build Engine GRP support" TRUE)
IF(PHYSFS_ARCHIVE_GRP)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_GRP=1)
ENDIF(PHYSFS_ARCHIVE_GRP)
OPTION(PHYSFS_ARCHIVE_WAD "Enable Doom WAD support" TRUE)
IF(PHYSFS_ARCHIVE_WAD)
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_WAD=1)
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)
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)
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)
ENDIF(PHYSFS_ARCHIVE_QPAK)
# See if some archiver required zlib, and see about using system version.
IF(PHYSFS_NEED_ZLIB)
FIND_PACKAGE(ZLIB)
IF(ZLIB_FOUND)
OPTION(PHYSFS_INTERNAL_ZLIB "Link own zlib instead of system library" FALSE)
ELSE(HAVE_SYSTEM_ZLIB)
SET(PHYSFS_INTERNAL_ZLIB TRUE)
ENDIF(ZLIB_FOUND)
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} ${ZLIB_LIBRARY})
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
ENDIF(PHYSFS_INTERNAL_ZLIB)
ENDIF(PHYSFS_NEED_ZLIB)
OPTION(PHYSFS_BUILD_STATIC "Build static library" TRUE)
IF(PHYSFS_BUILD_STATIC)
ADD_LIBRARY(physfs-static STATIC ${PHYSFS_SRCS})
SET_TARGET_PROPERTIES(physfs-static PROPERTIES OUTPUT_NAME "physfs")
SET(PHYSFS_LIB_TARGET physfs-static)
SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
ENDIF(PHYSFS_BUILD_STATIC)
OPTION(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
IF(PHYSFS_BUILD_SHARED)
ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
SET_TARGET_PROPERTIES(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
SET_TARGET_PROPERTIES(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
SET(PHYSFS_LIB_TARGET physfs)
SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs")
ENDIF(PHYSFS_BUILD_SHARED)
IF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
MESSAGE(FATAL "Both shared and static libraries are disabled!")
ENDIF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
# CMake FAQ says I need this...
IF(PHYSFS_BUILD_SHARED AND PHYSFS_BUILD_STATIC)
SET_TARGET_PROPERTIES(physfs PROPERTIES CLEAN_DIRECT_OUTPUT 1)
SET_TARGET_PROPERTIES(physfs-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
ENDIF(PHYSFS_BUILD_SHARED AND PHYSFS_BUILD_STATIC)
OPTION(PHYSFS_BUILD_TEST "Build stdio test program." TRUE)
MARK_AS_ADVANCED(PHYSFS_BUILD_TEST)
IF(PHYSFS_BUILD_TEST)
FIND_PATH(READLINE_H readline/readline.h)
FIND_PATH(HISTORY_H readline/history.h)
IF(READLINE_H AND HISTORY_H)
FIND_LIBRARY(CURSES_LIBRARY NAMES curses ncurses)
SET(CMAKE_REQUIRED_LIBRARIES ${CURSES_LIBRARY})
FIND_LIBRARY(READLINE_LIBRARY readline)
FIND_LIBRARY(HISTORY_LIBRARY history)
IF(READLINE_LIBRARY AND HISTORY_LIBRARY)
SET(HAVE_SYSTEM_READLINE TRUE)
SET(TEST_PHYSFS_LIBS ${TEST_PHYSFS_LIBS} ${READLINE_LIBRARY} ${CURSES_LIBRARY})
INCLUDE_DIRECTORIES(${READLINE_H} ${HISTORY_H})
ADD_DEFINITIONS(-DPHYSFS_HAVE_READLINE=1)
ENDIF(READLINE_LIBRARY AND HISTORY_LIBRARY)
ENDIF(READLINE_H AND HISTORY_H)
ADD_EXECUTABLE(test_physfs test/test_physfs.c)
TARGET_LINK_LIBRARIES(test_physfs ${PHYSFS_LIB_TARGET} ${TEST_PHYSFS_LIBS} ${OTHER_LDFLAGS})
SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";test_physfs")
ENDIF(PHYSFS_BUILD_TEST)
OPTION(PHYSFS_BUILD_WX_TEST "Build wxWidgets test program." TRUE)
MARK_AS_ADVANCED(PHYSFS_BUILD_WX_TEST)
IF(PHYSFS_BUILD_WX_TEST)
SET(wxWidgets_USE_LIBS base core adv)
SET(wxWidgets_INCLUDE_DIRS_NO_SYSTEM 1)
FIND_PACKAGE(wxWidgets)
IF(wxWidgets_FOUND)
INCLUDE(${wxWidgets_USE_FILE})
ADD_EXECUTABLE(wxtest_physfs test/wxtest_physfs.cpp)
SET_SOURCE_FILES_PROPERTIES(test/wxtest_physfs.cpp COMPILE_FLAGS ${wxWidgets_CXX_FLAGS})
TARGET_LINK_LIBRARIES(wxtest_physfs ${PHYSFS_LIB_TARGET} ${wxWidgets_LIBRARIES} ${OTHER_LDFLAGS})
SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";wxtest_physfs")
ELSE(wxWidgets_FOUND)
MESSAGE(STATUS "wxWidgets not found. Disabling wx test app.")
SET(PHYSFS_BUILD_WX_TEST FALSE)
ENDIF(wxWidgets_FOUND)
ENDIF(PHYSFS_BUILD_WX_TEST)
INSTALL(TARGETS ${PHYSFS_INSTALL_TARGETS}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX})
INSTALL(FILES physfs.h DESTINATION include)
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)
IF(UNIX)
SET(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.gz")
ADD_CUSTOM_TARGET(
dist
hg archive -t tgz "${PHYSFS_TARBALL}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Building source tarball '${PHYSFS_TARBALL}'..."
)
ENDIF(UNIX)
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("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 static library" PHYSFS_BUILD_STATIC)
MESSAGE_BOOL_OPTION("Build shared library" PHYSFS_BUILD_SHARED)
MESSAGE_BOOL_OPTION("Build wxWidgets test program" PHYSFS_BUILD_WX_TEST)
MESSAGE_BOOL_OPTION("Build stdio 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 ...
+113
View File
@@ -0,0 +1,113 @@
Maintainer and general codemonkey:
Ryan C. Gordon
Tons of win32 help:
Adam Gates
More win32 hacking:
Gregory S. Read
Fixes for missing current working directories,
PHYSFS_setSaneConfig() improvements,
other bugfixes:
David Hedbor
Darwin support:
Patrick Stein
configure fixes,
RPM specfile:
Edward Rudd
GetLastModTime API,
other stuff:
John R. Hall
Various support, fixes and suggestions:
Alexander Pipelka
Russian translation,
Ruby bindings,
QPAK archiver:
Ed Sinjiashvili
French translation:
Stéphane Peter
Debian package support:
Colin Bayer
"abs-file.h" in "extras" dir:
Adam D. Moss
WinCE port and other Win32 patches:
Corona688
German translation:
Michael Renner
Apple Project Builder support,
Mac OS X improvements:
Eric Wing
iPhone support:
Christian Gmeiner
HOG archiver,
MVL archiver:
Bradley Bell
MIX archiver:
Sebastian Steinhauer
Bug fixes:
Tolga Dalman
Initial PHYSFS_mount() work:
Philip D. Bober
Brazillian Portuguese translation:
Danny Angelo Carminati Grein
Spanish translation:
Pedro J. Pérez
MacOS Classic fixes,
MPW support,
bug fixes:
Chris Taylor
Mingw support,
General bug fixes:
Matze Braun
Haiku support:
scott mc
Bug fixes:
Jörg Walter
Bug fixes:
Olivier Boudeville
Bug fixes:
Henk Boom
Build system fixes:
Marc Kleine-Budde
Windows .rc file,
7zip/lzma archiver:
Dennis Schridde
OS/2 updates:
Dave Yeo
Bug fixes:
Patrice Mandin
Other stuff:
Your name here! Patches go to icculus@icculus.org ...
/* end of CREDITS.txt ... */
File diff suppressed because it is too large Load Diff
+153
View File
@@ -0,0 +1,153 @@
The latest PhysicsFS information and releases can be found at:
http://icculus.org/physfs/
Building is (ahem) very easy.
ALL PLATFORMS:
Please understand your rights and mine: read the text file LICENSE.txt in the
root of the source tree. If you can't abide by it, delete this source tree
now. The license is extremely liberal, even to closed-source, commercial
applications.
If you've got Doxygen (http://www.doxygen.org/) installed, you can run it
without any command line arguments in the root of the source tree to generate
the API reference (or build the "docs" target from your build system). This
is optional. You can browse the API docs online here:
http://icculus.org/physfs/docs/
UNIX:
You will need CMake (http://www.cmake.org/) 2.4 or later installed.
Make a directory, wherever you like. This will be your build directory.
Chdir to your build directory. Run "cmake /where/i/unpacked/physfs" to
generate Makefiles. You can then run "ccmake ." and customize the build,
but the defaults are probably okay. You can have CMake generate KDevelop
project files if you prefer these.
Run "make". PhysicsFS will now build.
As root, run "make install".
If you get sick of the library, run "xargs rm < install_manifest.txt" as root
and it will remove all traces of the library from the system paths.
Once you are satisfied, you can delete the build directory.
Primary Unix development is done with GNU/Linux, but PhysicsFS is known to
work out of the box with several flavors of Unix. It it doesn't work, patches
to get it running can be sent to icculus@icculus.org.
BeOS, Zeta, and Haiku:
Use the "Unix" instructions, above. The CMake port to BeOS is fairly new at
the time of this writing, but it works. You can get a build of CMake from
bebits.com or build it yourself from source from cmake.org.
Windows:
If building with Cygwin, mingw32, MSYS, or something else that uses the GNU
toolchain, follow the Unix instructions, above.
If you want to use Visual Studio, nmake, or the Platform SDK, you will need
CMake (http://www.cmake.org/) 2.4 or later installed. Point CMake at the
CMakeLists.txt file in the root of the source directory and hit the
"Configure" button. After telling it what type of compiler you are targeting
(Borland, Visual Studio, etc), CMake will process for while and then give you
a list of options you can change (what archivers you want to support, etc).
If you aren't sure, the defaults are probably fine. Hit the "Configure"
button again, then "OK" once configuration has completed with options that
match your liking. Now project files for your favorite programming
environment will be generated for you in the directory you specified.
Go there and use them to build PhysicsFS.
PhysicsFS will only link directly against system libraries that have existed
since Windows 95 and Windows NT 3.51. If there's a newer API we want to use,
we try to dynamically load it at runtime and fallback to a reasonable
behaviour when we can't find it...this is used for Unicode support and
locating user-specific directories, etc.
PhysicsFS has not been tested on 64-bit Windows, but probably works. There is
no 16-bit Windows support at all. Reports of success and problems can go to
Ryan at icculus@icculus.org ...
If someone is willing to maintain prebuilt PhysicsFS DLLs, I'd like to hear
from you; send an email to icculus@icculus.org ...
PocketPC/WindowsCE:
Code exists for PocketPC support, and there are shipping titles that used
PhysicsFS 1.0 on PocketPC...but it isn't tested in 2.0, and is probably
broken with the new build system. Please send patches.
MAC OS 8/9:
Classic Mac OS support has been dropped in PhysicsFS 2.0. Apple hasn't updated
pre-OSX versions in more than a decade at this point, none of the hardware
they've shipped will boot it for almost as many years, and finding
developer tools for it is becoming almost impossible. As the switch to Intel
hardware has removed the "Classic" emulation environment, it was time to
remove support from PhysicsFS. That being said, the PhysicsFS 1.0 branch can
still target back to Mac OS 8.5, so you can use that if you need support for
this legacy OS. We still very much support Mac OS X, though: see below.
MAC OS X:
You will need CMake (http://www.cmake.org/) 2.4 or later installed.
You can either generate a Unix makefile with CMake, or generate an Xcode
project, whichever makes you more comfortable.
PowerPC and Intel Macs should both be supported.
If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
Mac OS X, I'd like to hear from you; send an email to icculus@icculus.org.
OS/2:
You need Innotek GCC and libc installed (or kLIBC). I tried this on a stock
Warp 4 install, no fixpaks. You need to install link386.exe (Selective
Install, "link object modules" option). Once klibc and GCC are installed
correctly, unpack the source to PhysicsFS and run the script
file "makeos2.cmd". I know this isn't ideal, but I wanted to have this build
without users having to hunt down a "make" program.
Someone please port CMake to OS/2. Ideally I'd like to be able to target
Innotek GCC and OpenWatcom with CMake.
If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
OS/2, I'd like to hear from you; send an email to icculus@icculus.org.
OTHER PLATFORMS:
Many Unix-like platforms might "just work" with CMake. Some of these platforms
are known to have worked at one time, but have not been heavily tested, if
tested at all. PhysicsFS is, as far as we know, 64-bit and byteorder clean,
and is known to compile on several compilers across many platforms. To
implement a new platform or archiver, please read the heavily-commented
physfs_internal.h and look in the platform/ and archiver/ directories for
examples.
--ryan. (icculus@icculus.org)
+44
View File
@@ -0,0 +1,44 @@
Copyright (c) 2001-2011 Ryan C. Gordon and others.
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from
the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software in a
product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
Ryan C. Gordon <icculus@icculus.org>
Notes, separate from the license. This is not legal advice.
Versions of PhysicsFS prior to 0.1.9 are licensed under the GNU Lesser General
Public License, which restricts you significantly more. For your own safety,
please make sure you've got 0.1.9 or later if you plan to use physfs in a
commercial or closed-source project.
Optional pieces of PhysicsFS may fall under other licenses, please consult
your lawyer for legal advice, which this is not...
zlib: if you enable ZIP archive support, PhysicsFS uses zlib. Its license
requirements are identical to PhysicsFS.
Please see zlib123/README for details.
lzma: if you enable LZMA (7zip) support, PhysicsFS uses the lzma sdk.
It uses the LGPL license, with exceptions for closed-source programs.
Please see lzma/lzma.txt for details.
File diff suppressed because it is too large Load Diff
+45
View File
@@ -0,0 +1,45 @@
Stuff that needs to be done and wishlist:
These are in no particular order.
Some might be dupes, some might be done already.
UNICODE:
- OS/2: Codepages. No full Unicode in the filesystem, but we can probably make
a conversion effort.
Stuff:
- Other archivers: perhaps tar(.gz|.bz2), RPM, ARJ, etc. These are less
important, since streaming archives aren't of much value to games (which
is why zipfiles are king: random access), but it could have uses for, say,
an installer/updater.
- Reduce malloc() pressure all over the place. We fragment memory like mad.
- profile string list interpolation.
- We have two different ways to find dir entries in zip.c.
- Do symlinks in zip archiver work when they point to dirs?
- Enable more warnings?
- Use __cdecl in physfs.h?
- Look for FIXMEs (many marked with "!!!" in comments).
- Find some way to relax or remove the security model for external tools.
- OSX shouldn't use ~/.app for userdir.
- fscanf and fprintf support in extras dir.
- Why do we call it openArchive and dirClose?
- Sanity check byte order at runtime.
- Memory locking?
- Find a better name than dvoid and fvoid.
- Can windows.c and pocketpc.c get merged?
- There's so much cut-and-paste between archivers...can this be reduced?
- General code audit.
- Multiple write dirs with mount points?
- Deprecate PHYSFS_setSaneConfig and move it to extras?
- Why is physfsrwops.c cut-and-pasted into the ruby bindings?
- Replace code from SDL...
- Should file enumeration return an error or set error state?
- Need "getmountpoint" command in test_physfs.c ...
- Look for calloc() calls that aren't going through the allocation hooks.
- Write up a simple HOWTO on embedding physicsfs in another project.
- Archivers need abstracted i/o to read from memory or files (archives in archives?)
- Probably other stuff. Requests and recommendations are welcome.
// end of TODO.txt ...
+306
View File
@@ -0,0 +1,306 @@
/*
* APK support routines for PhysicsFS.
* Based von zip.c.
*
* A apk (android) file is just a zip file. But for LÖVE
* only the assets/ content is necessary and therefore
* this hides everything outside the assets/ directory
* (like a chroot into assets/).
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file is heavily based on zip.c by Ryan C. Gordon
*/
#if (defined PHYSFS_SUPPORTS_APK)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef _WIN32_WCE
#include <errno.h>
#include <time.h>
#endif
#include "physfs.h"
#include "zlib.h"
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
extern const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_ZIP;
extern const PHYSFS_Archiver __PHYSFS_Archiver_ZIP;
static PHYSFS_sint64 APK_read(fvoid *opaque, void *buf,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
return __PHYSFS_Archiver_ZIP.read(opaque, buf, objSize, objCount);
} /* APK_read */
static PHYSFS_sint64 APK_write(fvoid *opaque, const void *buf,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
return __PHYSFS_Archiver_ZIP.write(opaque, buf, objSize, objCount);
} /* APK_write */
static int APK_eof(fvoid *opaque)
{
return __PHYSFS_Archiver_ZIP.eof(opaque);
} /* APK_eof */
static PHYSFS_sint64 APK_tell(fvoid *opaque)
{
return __PHYSFS_Archiver_ZIP.tell(opaque);
} /* APK_tell */
static int APK_seek(fvoid *opaque, PHYSFS_uint64 offset)
{
return __PHYSFS_Archiver_ZIP.seek(opaque, offset);
} /* APK_seek */
static PHYSFS_sint64 APK_fileLength(fvoid *opaque)
{
return __PHYSFS_Archiver_ZIP.fileLength(opaque);
} /* APK_fileLength */
static int APK_fileClose(fvoid *opaque)
{
return __PHYSFS_Archiver_ZIP.fileClose(opaque);
} /* APK_fileClose */
static int APK_isArchive(const char *filename, int forWriting)
{
int filename_len = 0;
// does not end with .apk? then ignore this archive
filename_len = strlen(filename);
if ((filename_len <= 4) ||
(filename[filename_len - 4] != '.') ||
(filename[filename_len - 3] != 'a' && filename[filename_len - 3] != 'A') ||
(filename[filename_len - 2] != 'p' && filename[filename_len - 2] != 'P') ||
(filename[filename_len - 1] != 'k' && filename[filename_len - 1] != 'K'))
{
return 0;
}
else
{
return __PHYSFS_Archiver_ZIP.isArchive(filename, forWriting);
}
} /* APK_isArchive */
static void *APK_openArchive(const char *name, int forWriting)
{
return __PHYSFS_Archiver_ZIP.openArchive(name, forWriting);
} /* APK_openArchive */
/**
* Allocates a new string and appends assets/ name.
* Result must be freed manually with allocator.Free
* if not necessary anymore
*/
char *append_assets(const char *name)
{
char *patched_name;
int name_len = strlen(name);
patched_name = allocator.Malloc(7 + name_len + 1);
memcpy(patched_name, "assets/", 7);
memcpy(patched_name + 7, name, name_len);
patched_name[7 + name_len + 1 - 1] = 0;
return patched_name;
}
/**
* just stores the parameter to an APK_enumerateFiles call to use them
* in the delegated call to cb
*/
typedef struct APK_originalEnumerateFileCallParameter
{
dvoid *opaque;
const char *dname;
int omitSymLinks;
PHYSFS_EnumFilesCallback cb;
const char *origdir;
void *callbackdata;
} APK_originalEnumerateFileCallParameter;
static void apk_enumerateFilesCallback(void *data, const char *origdir,
const char *fname)
{
APK_originalEnumerateFileCallParameter *callParameterPtr;
callParameterPtr = (APK_originalEnumerateFileCallParameter *)data;
(callParameterPtr->cb)(callParameterPtr->callbackdata, callParameterPtr->origdir, fname);
}
static void APK_enumerateFiles(dvoid *opaque, const char *dname,
int omitSymLinks, PHYSFS_EnumFilesCallback cb,
const char *origdir, void *callbackdata)
{
char *patched_dname;
APK_originalEnumerateFileCallParameter callParameter;
callParameter.opaque = opaque;
callParameter.dname = dname;
callParameter.omitSymLinks = omitSymLinks;
callParameter.cb = cb;
callParameter.origdir = origdir;
callParameter.callbackdata = callbackdata;
patched_dname = append_assets(dname);
__PHYSFS_Archiver_ZIP.enumerateFiles(opaque, patched_dname, omitSymLinks, apk_enumerateFilesCallback, origdir, &callParameter);
allocator.Free(patched_dname);
} /* APK_enumerateFiles */
static int APK_exists(dvoid *opaque, const char *name)
{
int retval = 0;
char *patched_name = append_assets(name);
retval = __PHYSFS_Archiver_ZIP.exists(opaque, patched_name);
allocator.Free(patched_name);
return retval;
} /* APK_exists */
static PHYSFS_sint64 APK_getLastModTime(dvoid *opaque,
const char *name,
int *fileExists)
{
int retval = 0;
char *patched_name = append_assets(name);
retval = __PHYSFS_Archiver_ZIP.getLastModTime(opaque, patched_name, fileExists);
allocator.Free(patched_name);
return retval;
} /* APK_getLastModTime */
static int APK_isDirectory(dvoid *opaque, const char *name, int *fileExists)
{
int retval = 0;
char *patched_name = append_assets(name);
retval = __PHYSFS_Archiver_ZIP.isDirectory(opaque, patched_name, fileExists);
allocator.Free(patched_name);
return retval;
} /* APK_isDirectory */
static int APK_isSymLink(dvoid *opaque, const char *name, int *fileExists)
{
int retval = 0;
char *patched_name = append_assets(name);
retval = __PHYSFS_Archiver_ZIP.isSymLink(opaque, patched_name, fileExists);
allocator.Free(patched_name);
return retval;
} /* APK_isSymLink */
static fvoid *APK_openRead(dvoid *opaque, const char *fnm, int *fileExists)
{
fvoid * retval;
char *patched_name = append_assets(fnm);
retval = __PHYSFS_Archiver_ZIP.openRead(opaque, patched_name, fileExists);
allocator.Free(patched_name);
return retval;
} /* APK_openRead */
static fvoid *APK_openWrite(dvoid *opaque, const char *filename)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* APK_openWrite */
static fvoid *APK_openAppend(dvoid *opaque, const char *filename)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* APK_openAppend */
static void APK_dirClose(dvoid *opaque)
{
__PHYSFS_Archiver_ZIP.dirClose(opaque);
} /* APK_dirClose */
static int APK_remove(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* APK_remove */
static int APK_mkdir(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* APK_mkdir */
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_APK =
{
"APK",
APK_ARCHIVE_DESCRIPTION,
"based on __PHYSFS_Archiver_ZIP.ARCHIVE by Ryan C. Gordon <icculus@icculus.org>",
"http://icculus.org/physfs/",
};
const PHYSFS_Archiver __PHYSFS_Archiver_APK =
{
&__PHYSFS_ArchiveInfo_APK,
APK_isArchive, /* isArchive() method */
APK_openArchive, /* openArchive() method */
APK_enumerateFiles, /* enumerateFiles() method */
APK_exists, /* exists() method */
APK_isDirectory, /* isDirectory() method */
APK_isSymLink, /* isSymLink() method */
APK_getLastModTime, /* getLastModTime() method */
APK_openRead, /* openRead() method */
APK_openWrite, /* openWrite() method */
APK_openAppend, /* openAppend() method */
APK_remove, /* remove() method */
APK_mkdir, /* mkdir() method */
APK_dirClose, /* dirClose() method */
APK_read, /* read() method */
APK_write, /* write() method */
APK_eof, /* eof() method */
APK_tell, /* tell() method */
APK_seek, /* seek() method */
APK_fileLength, /* fileLength() method */
APK_fileClose /* fileClose() method */
};
#endif /* defined PHYSFS_SUPPORTS_APK */
/* end of apk.c ... */
+283
View File
@@ -0,0 +1,283 @@
/*
* Standard directory I/O support routines for PhysicsFS.
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by Ryan C. Gordon.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
static PHYSFS_sint64 DIR_read(fvoid *opaque, void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
PHYSFS_sint64 retval;
retval = __PHYSFS_platformRead(opaque, buffer, objSize, objCount);
return(retval);
} /* DIR_read */
static PHYSFS_sint64 DIR_write(fvoid *opaque, const void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
PHYSFS_sint64 retval;
retval = __PHYSFS_platformWrite(opaque, buffer, objSize, objCount);
return(retval);
} /* DIR_write */
static int DIR_eof(fvoid *opaque)
{
return(__PHYSFS_platformEOF(opaque));
} /* DIR_eof */
static PHYSFS_sint64 DIR_tell(fvoid *opaque)
{
return(__PHYSFS_platformTell(opaque));
} /* DIR_tell */
static int DIR_seek(fvoid *opaque, PHYSFS_uint64 offset)
{
return(__PHYSFS_platformSeek(opaque, offset));
} /* DIR_seek */
static PHYSFS_sint64 DIR_fileLength(fvoid *opaque)
{
return(__PHYSFS_platformFileLength(opaque));
} /* DIR_fileLength */
static int DIR_fileClose(fvoid *opaque)
{
/*
* we manually flush the buffer, since that's the place a close will
* most likely fail, but that will leave the file handle in an undefined
* state if it fails. Flush failures we can recover from.
*/
BAIL_IF_MACRO(!__PHYSFS_platformFlush(opaque), NULL, 0);
BAIL_IF_MACRO(!__PHYSFS_platformClose(opaque), NULL, 0);
return(1);
} /* DIR_fileClose */
static int DIR_isArchive(const char *filename, int forWriting)
{
/* directories ARE archives in this driver... */
return(__PHYSFS_platformIsDirectory(filename));
} /* DIR_isArchive */
static void *DIR_openArchive(const char *name, int forWriting)
{
const char *dirsep = PHYSFS_getDirSeparator();
char *retval = NULL;
size_t namelen = strlen(name);
size_t seplen = strlen(dirsep);
/* !!! FIXME: when is this not called right before openArchive? */
BAIL_IF_MACRO(!DIR_isArchive(name, forWriting),
ERR_UNSUPPORTED_ARCHIVE, 0);
retval = allocator.Malloc(namelen + seplen + 1);
BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL);
/* make sure there's a dir separator at the end of the string */
strcpy(retval, name);
if (strcmp((name + namelen) - seplen, dirsep) != 0)
strcat(retval, dirsep);
return(retval);
} /* DIR_openArchive */
static void DIR_enumerateFiles(dvoid *opaque, const char *dname,
int omitSymLinks, PHYSFS_EnumFilesCallback cb,
const char *origdir, void *callbackdata)
{
char *d = __PHYSFS_platformCvtToDependent((char *)opaque, dname, NULL);
if (d != NULL)
{
__PHYSFS_platformEnumerateFiles(d, omitSymLinks, cb,
origdir, callbackdata);
allocator.Free(d);
} /* if */
} /* DIR_enumerateFiles */
static int DIR_exists(dvoid *opaque, const char *name)
{
char *f = __PHYSFS_platformCvtToDependent((char *) opaque, name, NULL);
int retval;
BAIL_IF_MACRO(f == NULL, NULL, 0);
retval = __PHYSFS_platformExists(f);
allocator.Free(f);
return(retval);
} /* DIR_exists */
static int DIR_isDirectory(dvoid *opaque, const char *name, int *fileExists)
{
char *d = __PHYSFS_platformCvtToDependent((char *) opaque, name, NULL);
int retval = 0;
BAIL_IF_MACRO(d == NULL, NULL, 0);
*fileExists = __PHYSFS_platformExists(d);
if (*fileExists)
retval = __PHYSFS_platformIsDirectory(d);
allocator.Free(d);
return(retval);
} /* DIR_isDirectory */
static int DIR_isSymLink(dvoid *opaque, const char *name, int *fileExists)
{
char *f = __PHYSFS_platformCvtToDependent((char *) opaque, name, NULL);
int retval = 0;
BAIL_IF_MACRO(f == NULL, NULL, 0);
*fileExists = __PHYSFS_platformExists(f);
if (*fileExists)
retval = __PHYSFS_platformIsSymLink(f);
allocator.Free(f);
return(retval);
} /* DIR_isSymLink */
static PHYSFS_sint64 DIR_getLastModTime(dvoid *opaque,
const char *name,
int *fileExists)
{
char *d = __PHYSFS_platformCvtToDependent((char *) opaque, name, NULL);
PHYSFS_sint64 retval = -1;
BAIL_IF_MACRO(d == NULL, NULL, 0);
*fileExists = __PHYSFS_platformExists(d);
if (*fileExists)
retval = __PHYSFS_platformGetLastModTime(d);
allocator.Free(d);
return(retval);
} /* DIR_getLastModTime */
static fvoid *doOpen(dvoid *opaque, const char *name,
void *(*openFunc)(const char *filename),
int *fileExists)
{
char *f = __PHYSFS_platformCvtToDependent((char *) opaque, name, NULL);
void *rc = NULL;
BAIL_IF_MACRO(f == NULL, NULL, NULL);
if (fileExists != NULL)
{
*fileExists = __PHYSFS_platformExists(f);
if (!(*fileExists))
{
allocator.Free(f);
return(NULL);
} /* if */
} /* if */
rc = openFunc(f);
allocator.Free(f);
return((fvoid *) rc);
} /* doOpen */
static fvoid *DIR_openRead(dvoid *opaque, const char *fnm, int *exist)
{
return(doOpen(opaque, fnm, __PHYSFS_platformOpenRead, exist));
} /* DIR_openRead */
static fvoid *DIR_openWrite(dvoid *opaque, const char *filename)
{
return(doOpen(opaque, filename, __PHYSFS_platformOpenWrite, NULL));
} /* DIR_openWrite */
static fvoid *DIR_openAppend(dvoid *opaque, const char *filename)
{
return(doOpen(opaque, filename, __PHYSFS_platformOpenAppend, NULL));
} /* DIR_openAppend */
static int DIR_remove(dvoid *opaque, const char *name)
{
char *f = __PHYSFS_platformCvtToDependent((char *) opaque, name, NULL);
int retval;
BAIL_IF_MACRO(f == NULL, NULL, 0);
retval = __PHYSFS_platformDelete(f);
allocator.Free(f);
return(retval);
} /* DIR_remove */
static int DIR_mkdir(dvoid *opaque, const char *name)
{
char *f = __PHYSFS_platformCvtToDependent((char *) opaque, name, NULL);
int retval;
BAIL_IF_MACRO(f == NULL, NULL, 0);
retval = __PHYSFS_platformMkDir(f);
allocator.Free(f);
return(retval);
} /* DIR_mkdir */
static void DIR_dirClose(dvoid *opaque)
{
allocator.Free(opaque);
} /* DIR_dirClose */
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_DIR =
{
"",
DIR_ARCHIVE_DESCRIPTION,
"Ryan C. Gordon <icculus@icculus.org>",
"http://icculus.org/physfs/",
};
const PHYSFS_Archiver __PHYSFS_Archiver_DIR =
{
&__PHYSFS_ArchiveInfo_DIR,
DIR_isArchive, /* isArchive() method */
DIR_openArchive, /* openArchive() method */
DIR_enumerateFiles, /* enumerateFiles() method */
DIR_exists, /* exists() method */
DIR_isDirectory, /* isDirectory() method */
DIR_isSymLink, /* isSymLink() method */
DIR_getLastModTime, /* getLastModTime() method */
DIR_openRead, /* openRead() method */
DIR_openWrite, /* openWrite() method */
DIR_openAppend, /* openAppend() method */
DIR_remove, /* remove() method */
DIR_mkdir, /* mkdir() method */
DIR_dirClose, /* dirClose() method */
DIR_read, /* read() method */
DIR_write, /* write() method */
DIR_eof, /* eof() method */
DIR_tell, /* tell() method */
DIR_seek, /* seek() method */
DIR_fileLength, /* fileLength() method */
DIR_fileClose /* fileClose() method */
};
/* end of dir.c ... */
+475
View File
@@ -0,0 +1,475 @@
/*
* GRP support routines for PhysicsFS.
*
* This driver handles BUILD engine archives ("groupfiles"). This format
* (but not this driver) was put together by Ken Silverman.
*
* The format is simple enough. In Ken's words:
*
* What's the .GRP file format?
*
* The ".grp" file format is just a collection of a lot of files stored
* into 1 big one. I tried to make the format as simple as possible: The
* first 12 bytes contains my name, "KenSilverman". The next 4 bytes is
* the number of files that were compacted into the group file. Then for
* each file, there is a 16 byte structure, where the first 12 bytes are
* the filename, and the last 4 bytes are the file's size. The rest of
* the group file is just the raw data packed one after the other in the
* same order as the list of files.
*
* (That info is from http://www.advsys.net/ken/build.htm ...)
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by Ryan C. Gordon.
*/
#if (defined PHYSFS_SUPPORTS_GRP)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
typedef struct
{
char name[13];
PHYSFS_uint32 startPos;
PHYSFS_uint32 size;
} GRPentry;
typedef struct
{
char *filename;
PHYSFS_sint64 last_mod_time;
PHYSFS_uint32 entryCount;
GRPentry *entries;
} GRPinfo;
typedef struct
{
void *handle;
GRPentry *entry;
PHYSFS_uint32 curPos;
} GRPfileinfo;
static void GRP_dirClose(dvoid *opaque)
{
GRPinfo *info = ((GRPinfo *) opaque);
allocator.Free(info->filename);
allocator.Free(info->entries);
allocator.Free(info);
} /* GRP_dirClose */
static PHYSFS_sint64 GRP_read(fvoid *opaque, void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
GRPfileinfo *finfo = (GRPfileinfo *) opaque;
GRPentry *entry = finfo->entry;
PHYSFS_uint32 bytesLeft = entry->size - finfo->curPos;
PHYSFS_uint32 objsLeft = (bytesLeft / objSize);
PHYSFS_sint64 rc;
if (objsLeft < objCount)
objCount = objsLeft;
rc = __PHYSFS_platformRead(finfo->handle, buffer, objSize, objCount);
if (rc > 0)
finfo->curPos += (PHYSFS_uint32) (rc * objSize);
return(rc);
} /* GRP_read */
static PHYSFS_sint64 GRP_write(fvoid *opaque, const void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, -1);
} /* GRP_write */
static int GRP_eof(fvoid *opaque)
{
GRPfileinfo *finfo = (GRPfileinfo *) opaque;
GRPentry *entry = finfo->entry;
return(finfo->curPos >= entry->size);
} /* GRP_eof */
static PHYSFS_sint64 GRP_tell(fvoid *opaque)
{
return(((GRPfileinfo *) opaque)->curPos);
} /* GRP_tell */
static int GRP_seek(fvoid *opaque, PHYSFS_uint64 offset)
{
GRPfileinfo *finfo = (GRPfileinfo *) opaque;
GRPentry *entry = finfo->entry;
int rc;
BAIL_IF_MACRO(offset < 0, ERR_INVALID_ARGUMENT, 0);
BAIL_IF_MACRO(offset >= entry->size, ERR_PAST_EOF, 0);
rc = __PHYSFS_platformSeek(finfo->handle, entry->startPos + offset);
if (rc)
finfo->curPos = (PHYSFS_uint32) offset;
return(rc);
} /* GRP_seek */
static PHYSFS_sint64 GRP_fileLength(fvoid *opaque)
{
GRPfileinfo *finfo = (GRPfileinfo *) opaque;
return((PHYSFS_sint64) finfo->entry->size);
} /* GRP_fileLength */
static int GRP_fileClose(fvoid *opaque)
{
GRPfileinfo *finfo = (GRPfileinfo *) opaque;
BAIL_IF_MACRO(!__PHYSFS_platformClose(finfo->handle), NULL, 0);
allocator.Free(finfo);
return(1);
} /* GRP_fileClose */
static int grp_open(const char *filename, int forWriting,
void **fh, PHYSFS_uint32 *count)
{
PHYSFS_uint8 buf[12];
*fh = NULL;
BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, 0);
*fh = __PHYSFS_platformOpenRead(filename);
BAIL_IF_MACRO(*fh == NULL, NULL, 0);
if (__PHYSFS_platformRead(*fh, buf, 12, 1) != 1)
goto openGrp_failed;
if (memcmp(buf, "KenSilverman", 12) != 0)
{
__PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
goto openGrp_failed;
} /* if */
if (__PHYSFS_platformRead(*fh, count, sizeof (PHYSFS_uint32), 1) != 1)
goto openGrp_failed;
*count = PHYSFS_swapULE32(*count);
return(1);
openGrp_failed:
if (*fh != NULL)
__PHYSFS_platformClose(*fh);
*count = -1;
*fh = NULL;
return(0);
} /* grp_open */
static int GRP_isArchive(const char *filename, int forWriting)
{
void *fh;
PHYSFS_uint32 fileCount;
int retval = grp_open(filename, forWriting, &fh, &fileCount);
if (fh != NULL)
__PHYSFS_platformClose(fh);
return(retval);
} /* GRP_isArchive */
static int grp_entry_cmp(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
if (one != two)
{
const GRPentry *a = (const GRPentry *) _a;
return(strcmp(a[one].name, a[two].name));
} /* if */
return 0;
} /* grp_entry_cmp */
static void grp_entry_swap(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
if (one != two)
{
GRPentry tmp;
GRPentry *first = &(((GRPentry *) _a)[one]);
GRPentry *second = &(((GRPentry *) _a)[two]);
memcpy(&tmp, first, sizeof (GRPentry));
memcpy(first, second, sizeof (GRPentry));
memcpy(second, &tmp, sizeof (GRPentry));
} /* if */
} /* grp_entry_swap */
static int grp_load_entries(const char *name, int forWriting, GRPinfo *info)
{
void *fh = NULL;
PHYSFS_uint32 fileCount;
PHYSFS_uint32 location = 16; /* sizeof sig. */
GRPentry *entry;
char *ptr;
BAIL_IF_MACRO(!grp_open(name, forWriting, &fh, &fileCount), NULL, 0);
info->entryCount = fileCount;
info->entries = (GRPentry *) allocator.Malloc(sizeof(GRPentry)*fileCount);
if (info->entries == NULL)
{
__PHYSFS_platformClose(fh);
BAIL_MACRO(ERR_OUT_OF_MEMORY, 0);
} /* if */
location += (16 * fileCount);
for (entry = info->entries; fileCount > 0; fileCount--, entry++)
{
if (__PHYSFS_platformRead(fh, &entry->name, 12, 1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
entry->name[12] = '\0'; /* name isn't null-terminated in file. */
if ((ptr = strchr(entry->name, ' ')) != NULL)
*ptr = '\0'; /* trim extra spaces. */
if (__PHYSFS_platformRead(fh, &entry->size, 4, 1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
entry->size = PHYSFS_swapULE32(entry->size);
entry->startPos = location;
location += entry->size;
} /* for */
__PHYSFS_platformClose(fh);
__PHYSFS_sort(info->entries, info->entryCount,
grp_entry_cmp, grp_entry_swap);
return(1);
} /* grp_load_entries */
static void *GRP_openArchive(const char *name, int forWriting)
{
PHYSFS_sint64 modtime = __PHYSFS_platformGetLastModTime(name);
GRPinfo *info = (GRPinfo *) allocator.Malloc(sizeof (GRPinfo));
BAIL_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, 0);
memset(info, '\0', sizeof (GRPinfo));
info->filename = (char *) allocator.Malloc(strlen(name) + 1);
GOTO_IF_MACRO(!info->filename, ERR_OUT_OF_MEMORY, GRP_openArchive_failed);
if (!grp_load_entries(name, forWriting, info))
goto GRP_openArchive_failed;
strcpy(info->filename, name);
info->last_mod_time = modtime;
return(info);
GRP_openArchive_failed:
if (info != NULL)
{
if (info->filename != NULL)
allocator.Free(info->filename);
if (info->entries != NULL)
allocator.Free(info->entries);
allocator.Free(info);
} /* if */
return(NULL);
} /* GRP_openArchive */
static void GRP_enumerateFiles(dvoid *opaque, const char *dname,
int omitSymLinks, PHYSFS_EnumFilesCallback cb,
const char *origdir, void *callbackdata)
{
/* no directories in GRP files. */
if (*dname == '\0')
{
GRPinfo *info = (GRPinfo *) opaque;
GRPentry *entry = info->entries;
PHYSFS_uint32 max = info->entryCount;
PHYSFS_uint32 i;
for (i = 0; i < max; i++, entry++)
cb(callbackdata, origdir, entry->name);
} /* if */
} /* GRP_enumerateFiles */
static GRPentry *grp_find_entry(GRPinfo *info, const char *name)
{
char *ptr = strchr(name, '.');
GRPentry *a = info->entries;
PHYSFS_sint32 lo = 0;
PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
PHYSFS_sint32 middle;
int rc;
/*
* Rule out filenames to avoid unneeded processing...no dirs,
* big filenames, or extensions > 3 chars.
*/
BAIL_IF_MACRO((ptr) && (strlen(ptr) > 4), ERR_NO_SUCH_FILE, NULL);
BAIL_IF_MACRO(strlen(name) > 12, ERR_NO_SUCH_FILE, NULL);
BAIL_IF_MACRO(strchr(name, '/') != NULL, ERR_NO_SUCH_FILE, NULL);
while (lo <= hi)
{
middle = lo + ((hi - lo) / 2);
rc = strcmp(name, a[middle].name);
if (rc == 0) /* found it! */
return(&a[middle]);
else if (rc > 0)
lo = middle + 1;
else
hi = middle - 1;
} /* while */
BAIL_MACRO(ERR_NO_SUCH_FILE, NULL);
} /* grp_find_entry */
static int GRP_exists(dvoid *opaque, const char *name)
{
return(grp_find_entry((GRPinfo *) opaque, name) != NULL);
} /* GRP_exists */
static int GRP_isDirectory(dvoid *opaque, const char *name, int *fileExists)
{
*fileExists = GRP_exists(opaque, name);
return(0); /* never directories in a groupfile. */
} /* GRP_isDirectory */
static int GRP_isSymLink(dvoid *opaque, const char *name, int *fileExists)
{
*fileExists = GRP_exists(opaque, name);
return(0); /* never symlinks in a groupfile. */
} /* GRP_isSymLink */
static PHYSFS_sint64 GRP_getLastModTime(dvoid *opaque,
const char *name,
int *fileExists)
{
GRPinfo *info = (GRPinfo *) opaque;
PHYSFS_sint64 retval = -1;
*fileExists = (grp_find_entry(info, name) != NULL);
if (*fileExists) /* use time of GRP itself in the physical filesystem. */
retval = info->last_mod_time;
return(retval);
} /* GRP_getLastModTime */
static fvoid *GRP_openRead(dvoid *opaque, const char *fnm, int *fileExists)
{
GRPinfo *info = (GRPinfo *) opaque;
GRPfileinfo *finfo;
GRPentry *entry;
entry = grp_find_entry(info, fnm);
*fileExists = (entry != NULL);
BAIL_IF_MACRO(entry == NULL, NULL, NULL);
finfo = (GRPfileinfo *) allocator.Malloc(sizeof (GRPfileinfo));
BAIL_IF_MACRO(finfo == NULL, ERR_OUT_OF_MEMORY, NULL);
finfo->handle = __PHYSFS_platformOpenRead(info->filename);
if ( (finfo->handle == NULL) ||
(!__PHYSFS_platformSeek(finfo->handle, entry->startPos)) )
{
allocator.Free(finfo);
return(NULL);
} /* if */
finfo->curPos = 0;
finfo->entry = entry;
return(finfo);
} /* GRP_openRead */
static fvoid *GRP_openWrite(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* GRP_openWrite */
static fvoid *GRP_openAppend(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* GRP_openAppend */
static int GRP_remove(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* GRP_remove */
static int GRP_mkdir(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* GRP_mkdir */
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_GRP =
{
"GRP",
GRP_ARCHIVE_DESCRIPTION,
"Ryan C. Gordon <icculus@icculus.org>",
"http://icculus.org/physfs/",
};
const PHYSFS_Archiver __PHYSFS_Archiver_GRP =
{
&__PHYSFS_ArchiveInfo_GRP,
GRP_isArchive, /* isArchive() method */
GRP_openArchive, /* openArchive() method */
GRP_enumerateFiles, /* enumerateFiles() method */
GRP_exists, /* exists() method */
GRP_isDirectory, /* isDirectory() method */
GRP_isSymLink, /* isSymLink() method */
GRP_getLastModTime, /* getLastModTime() method */
GRP_openRead, /* openRead() method */
GRP_openWrite, /* openWrite() method */
GRP_openAppend, /* openAppend() method */
GRP_remove, /* remove() method */
GRP_mkdir, /* mkdir() method */
GRP_dirClose, /* dirClose() method */
GRP_read, /* read() method */
GRP_write, /* write() method */
GRP_eof, /* eof() method */
GRP_tell, /* tell() method */
GRP_seek, /* seek() method */
GRP_fileLength, /* fileLength() method */
GRP_fileClose /* fileClose() method */
};
#endif /* defined PHYSFS_SUPPORTS_GRP */
/* end of grp.c ... */
+514
View File
@@ -0,0 +1,514 @@
/*
* HOG support routines for PhysicsFS.
*
* This driver handles Descent I/II HOG archives.
*
* The format is very simple:
*
* The file always starts with the 3-byte signature "DHF" (Descent
* HOG file). After that the files of a HOG are just attached after
* another, divided by a 17 bytes header, which specifies the name
* and length (in bytes) of the forthcoming file! So you just read
* the header with its information of how big the following file is,
* and then skip exact that number of bytes to get to the next file
* in that HOG.
*
* char sig[3] = {'D', 'H', 'F'}; // "DHF"=Descent HOG File
*
* struct {
* char file_name[13]; // Filename, padded to 13 bytes with 0s
* int file_size; // filesize in bytes
* char data[file_size]; // The file data
* } FILE_STRUCT; // Repeated until the end of the file.
*
* (That info is from http://www.descent2.com/ddn/specs/hog/)
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by Bradley Bell.
* Based on grp.c by Ryan C. Gordon.
*/
#if (defined PHYSFS_SUPPORTS_HOG)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
/*
* One HOGentry is kept for each file in an open HOG archive.
*/
typedef struct
{
char name[13];
PHYSFS_uint32 startPos;
PHYSFS_uint32 size;
} HOGentry;
/*
* One HOGinfo is kept for each open HOG archive.
*/
typedef struct
{
char *filename;
PHYSFS_sint64 last_mod_time;
PHYSFS_uint32 entryCount;
HOGentry *entries;
} HOGinfo;
/*
* One HOGfileinfo is kept for each open file in a HOG archive.
*/
typedef struct
{
void *handle;
HOGentry *entry;
PHYSFS_uint32 curPos;
} HOGfileinfo;
static void HOG_dirClose(dvoid *opaque)
{
HOGinfo *info = ((HOGinfo *) opaque);
allocator.Free(info->filename);
allocator.Free(info->entries);
allocator.Free(info);
} /* HOG_dirClose */
static PHYSFS_sint64 HOG_read(fvoid *opaque, void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
HOGfileinfo *finfo = (HOGfileinfo *) opaque;
HOGentry *entry = finfo->entry;
PHYSFS_uint32 bytesLeft = entry->size - finfo->curPos;
PHYSFS_uint32 objsLeft = (bytesLeft / objSize);
PHYSFS_sint64 rc;
if (objsLeft < objCount)
objCount = objsLeft;
rc = __PHYSFS_platformRead(finfo->handle, buffer, objSize, objCount);
if (rc > 0)
finfo->curPos += (PHYSFS_uint32) (rc * objSize);
return(rc);
} /* HOG_read */
static PHYSFS_sint64 HOG_write(fvoid *opaque, const void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, -1);
} /* HOG_write */
static int HOG_eof(fvoid *opaque)
{
HOGfileinfo *finfo = (HOGfileinfo *) opaque;
HOGentry *entry = finfo->entry;
return(finfo->curPos >= entry->size);
} /* HOG_eof */
static PHYSFS_sint64 HOG_tell(fvoid *opaque)
{
return(((HOGfileinfo *) opaque)->curPos);
} /* HOG_tell */
static int HOG_seek(fvoid *opaque, PHYSFS_uint64 offset)
{
HOGfileinfo *finfo = (HOGfileinfo *) opaque;
HOGentry *entry = finfo->entry;
int rc;
BAIL_IF_MACRO(offset < 0, ERR_INVALID_ARGUMENT, 0);
BAIL_IF_MACRO(offset >= entry->size, ERR_PAST_EOF, 0);
rc = __PHYSFS_platformSeek(finfo->handle, entry->startPos + offset);
if (rc)
finfo->curPos = (PHYSFS_uint32) offset;
return(rc);
} /* HOG_seek */
static PHYSFS_sint64 HOG_fileLength(fvoid *opaque)
{
HOGfileinfo *finfo = (HOGfileinfo *) opaque;
return((PHYSFS_sint64) finfo->entry->size);
} /* HOG_fileLength */
static int HOG_fileClose(fvoid *opaque)
{
HOGfileinfo *finfo = (HOGfileinfo *) opaque;
BAIL_IF_MACRO(!__PHYSFS_platformClose(finfo->handle), NULL, 0);
allocator.Free(finfo);
return(1);
} /* HOG_fileClose */
static int hog_open(const char *filename, int forWriting,
void **fh, PHYSFS_uint32 *count)
{
PHYSFS_uint8 buf[13];
PHYSFS_uint32 size;
PHYSFS_sint64 pos;
*count = 0;
*fh = NULL;
BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, 0);
*fh = __PHYSFS_platformOpenRead(filename);
BAIL_IF_MACRO(*fh == NULL, NULL, 0);
if (__PHYSFS_platformRead(*fh, buf, 3, 1) != 1)
goto openHog_failed;
if (memcmp(buf, "DHF", 3) != 0)
{
__PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
goto openHog_failed;
} /* if */
while (1)
{
if (__PHYSFS_platformRead(*fh, buf, 13, 1) != 1)
break; /* eof here is ok */
if (__PHYSFS_platformRead(*fh, &size, 4, 1) != 1)
goto openHog_failed;
size = PHYSFS_swapULE32(size);
(*count)++;
/* Skip over entry... */
pos = __PHYSFS_platformTell(*fh);
if (pos == -1)
goto openHog_failed;
if (!__PHYSFS_platformSeek(*fh, pos + size))
goto openHog_failed;
} /* while */
/* Rewind to start of entries... */
if (!__PHYSFS_platformSeek(*fh, 3))
goto openHog_failed;
return(1);
openHog_failed:
if (*fh != NULL)
__PHYSFS_platformClose(*fh);
*count = -1;
*fh = NULL;
return(0);
} /* hog_open */
static int HOG_isArchive(const char *filename, int forWriting)
{
void *fh;
PHYSFS_uint32 fileCount;
int retval = hog_open(filename, forWriting, &fh, &fileCount);
if (fh != NULL)
__PHYSFS_platformClose(fh);
return(retval);
} /* HOG_isArchive */
static int hog_entry_cmp(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
if (one != two)
{
const HOGentry *a = (const HOGentry *) _a;
return(__PHYSFS_stricmpASCII(a[one].name, a[two].name));
} /* if */
return 0;
} /* hog_entry_cmp */
static void hog_entry_swap(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
if (one != two)
{
HOGentry tmp;
HOGentry *first = &(((HOGentry *) _a)[one]);
HOGentry *second = &(((HOGentry *) _a)[two]);
memcpy(&tmp, first, sizeof (HOGentry));
memcpy(first, second, sizeof (HOGentry));
memcpy(second, &tmp, sizeof (HOGentry));
} /* if */
} /* hog_entry_swap */
static int hog_load_entries(const char *name, int forWriting, HOGinfo *info)
{
void *fh = NULL;
PHYSFS_uint32 fileCount;
HOGentry *entry;
BAIL_IF_MACRO(!hog_open(name, forWriting, &fh, &fileCount), NULL, 0);
info->entryCount = fileCount;
info->entries = (HOGentry *) allocator.Malloc(sizeof(HOGentry)*fileCount);
if (info->entries == NULL)
{
__PHYSFS_platformClose(fh);
BAIL_MACRO(ERR_OUT_OF_MEMORY, 0);
} /* if */
for (entry = info->entries; fileCount > 0; fileCount--, entry++)
{
if (__PHYSFS_platformRead(fh, &entry->name, 13, 1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
if (__PHYSFS_platformRead(fh, &entry->size, 4, 1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
entry->size = PHYSFS_swapULE32(entry->size);
entry->startPos = (unsigned int) __PHYSFS_platformTell(fh);
if (entry->startPos == -1)
{
__PHYSFS_platformClose(fh);
return(0);
}
/* Skip over entry */
if (!__PHYSFS_platformSeek(fh, entry->startPos + entry->size))
{
__PHYSFS_platformClose(fh);
return(0);
}
} /* for */
__PHYSFS_platformClose(fh);
__PHYSFS_sort(info->entries, info->entryCount,
hog_entry_cmp, hog_entry_swap);
return(1);
} /* hog_load_entries */
static void *HOG_openArchive(const char *name, int forWriting)
{
PHYSFS_sint64 modtime = __PHYSFS_platformGetLastModTime(name);
HOGinfo *info = (HOGinfo *) allocator.Malloc(sizeof (HOGinfo));
BAIL_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, 0);
memset(info, '\0', sizeof (HOGinfo));
info->filename = (char *) allocator.Malloc(strlen(name) + 1);
GOTO_IF_MACRO(!info->filename, ERR_OUT_OF_MEMORY, HOG_openArchive_failed);
if (!hog_load_entries(name, forWriting, info))
goto HOG_openArchive_failed;
strcpy(info->filename, name);
info->last_mod_time = modtime;
return(info);
HOG_openArchive_failed:
if (info != NULL)
{
if (info->filename != NULL)
allocator.Free(info->filename);
if (info->entries != NULL)
allocator.Free(info->entries);
allocator.Free(info);
} /* if */
return(NULL);
} /* HOG_openArchive */
static void HOG_enumerateFiles(dvoid *opaque, const char *dname,
int omitSymLinks, PHYSFS_EnumFilesCallback cb,
const char *origdir, void *callbackdata)
{
/* no directories in HOG files. */
if (*dname == '\0')
{
HOGinfo *info = (HOGinfo *) opaque;
HOGentry *entry = info->entries;
PHYSFS_uint32 max = info->entryCount;
PHYSFS_uint32 i;
for (i = 0; i < max; i++, entry++)
cb(callbackdata, origdir, entry->name);
} /* if */
} /* HOG_enumerateFiles */
static HOGentry *hog_find_entry(HOGinfo *info, const char *name)
{
char *ptr = strchr(name, '.');
HOGentry *a = info->entries;
PHYSFS_sint32 lo = 0;
PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
PHYSFS_sint32 middle;
int rc;
/*
* Rule out filenames to avoid unneeded processing...no dirs,
* big filenames, or extensions > 3 chars.
*/
BAIL_IF_MACRO((ptr) && (strlen(ptr) > 4), ERR_NO_SUCH_FILE, NULL);
BAIL_IF_MACRO(strlen(name) > 12, ERR_NO_SUCH_FILE, NULL);
BAIL_IF_MACRO(strchr(name, '/') != NULL, ERR_NO_SUCH_FILE, NULL);
while (lo <= hi)
{
middle = lo + ((hi - lo) / 2);
rc = __PHYSFS_stricmpASCII(name, a[middle].name);
if (rc == 0) /* found it! */
return(&a[middle]);
else if (rc > 0)
lo = middle + 1;
else
hi = middle - 1;
} /* while */
BAIL_MACRO(ERR_NO_SUCH_FILE, NULL);
} /* hog_find_entry */
static int HOG_exists(dvoid *opaque, const char *name)
{
return(hog_find_entry(((HOGinfo *) opaque), name) != NULL);
} /* HOG_exists */
static int HOG_isDirectory(dvoid *opaque, const char *name, int *fileExists)
{
*fileExists = HOG_exists(opaque, name);
return(0); /* never directories in a groupfile. */
} /* HOG_isDirectory */
static int HOG_isSymLink(dvoid *opaque, const char *name, int *fileExists)
{
*fileExists = HOG_exists(opaque, name);
return(0); /* never symlinks in a groupfile. */
} /* HOG_isSymLink */
static PHYSFS_sint64 HOG_getLastModTime(dvoid *opaque,
const char *name,
int *fileExists)
{
HOGinfo *info = ((HOGinfo *) opaque);
PHYSFS_sint64 retval = -1;
*fileExists = (hog_find_entry(info, name) != NULL);
if (*fileExists) /* use time of HOG itself in the physical filesystem. */
retval = info->last_mod_time;
return(retval);
} /* HOG_getLastModTime */
static fvoid *HOG_openRead(dvoid *opaque, const char *fnm, int *fileExists)
{
HOGinfo *info = ((HOGinfo *) opaque);
HOGfileinfo *finfo;
HOGentry *entry;
entry = hog_find_entry(info, fnm);
*fileExists = (entry != NULL);
BAIL_IF_MACRO(entry == NULL, NULL, NULL);
finfo = (HOGfileinfo *) allocator.Malloc(sizeof (HOGfileinfo));
BAIL_IF_MACRO(finfo == NULL, ERR_OUT_OF_MEMORY, NULL);
finfo->handle = __PHYSFS_platformOpenRead(info->filename);
if ( (finfo->handle == NULL) ||
(!__PHYSFS_platformSeek(finfo->handle, entry->startPos)) )
{
allocator.Free(finfo);
return(NULL);
} /* if */
finfo->curPos = 0;
finfo->entry = entry;
return(finfo);
} /* HOG_openRead */
static fvoid *HOG_openWrite(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* HOG_openWrite */
static fvoid *HOG_openAppend(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* HOG_openAppend */
static int HOG_remove(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* HOG_remove */
static int HOG_mkdir(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* HOG_mkdir */
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_HOG =
{
"HOG",
HOG_ARCHIVE_DESCRIPTION,
"Bradley Bell <btb@icculus.org>",
"http://icculus.org/physfs/",
};
const PHYSFS_Archiver __PHYSFS_Archiver_HOG =
{
&__PHYSFS_ArchiveInfo_HOG,
HOG_isArchive, /* isArchive() method */
HOG_openArchive, /* openArchive() method */
HOG_enumerateFiles, /* enumerateFiles() method */
HOG_exists, /* exists() method */
HOG_isDirectory, /* isDirectory() method */
HOG_isSymLink, /* isSymLink() method */
HOG_getLastModTime, /* getLastModTime() method */
HOG_openRead, /* openRead() method */
HOG_openWrite, /* openWrite() method */
HOG_openAppend, /* openAppend() method */
HOG_remove, /* remove() method */
HOG_mkdir, /* mkdir() method */
HOG_dirClose, /* dirClose() method */
HOG_read, /* read() method */
HOG_write, /* write() method */
HOG_eof, /* eof() method */
HOG_tell, /* tell() method */
HOG_seek, /* seek() method */
HOG_fileLength, /* fileLength() method */
HOG_fileClose /* fileClose() method */
};
#endif /* defined PHYSFS_SUPPORTS_HOG */
/* end of hog.c ... */
+736
View File
@@ -0,0 +1,736 @@
/*
* LZMA support routines for PhysicsFS.
*
* Please see the file lzma.txt in the lzma/ directory.
*
* This file was written by Dennis Schridde, with some peeking at "7zMain.c"
* by Igor Pavlov.
*/
#if (defined PHYSFS_SUPPORTS_7Z)
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "physfs.h"
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
#include "lzma/C/7zCrc.h"
#include "lzma/C/Archive/7z/7zIn.h"
#include "lzma/C/Archive/7z/7zExtract.h"
/* 7z internal from 7zIn.c */
extern int TestSignatureCandidate(Byte *testBytes);
#ifdef _LZMA_IN_CB
# define BUFFER_SIZE (1 << 12)
#endif /* _LZMA_IN_CB */
/*
* Carries filestream metadata through 7z
*/
typedef struct _FileInputStream
{
ISzAlloc allocImp; /* Allocation implementation, used by 7z */
ISzAlloc allocTempImp; /* Temporary allocation implementation, used by 7z */
ISzInStream inStream; /* Input stream with read callbacks, used by 7z */
void *file; /* Filehandle, used by read implementation */
#ifdef _LZMA_IN_CB
Byte buffer[BUFFER_SIZE]; /* Buffer, used by read implementation */
#endif /* _LZMA_IN_CB */
} FileInputStream;
/*
* In the 7z format archives are splited into blocks, those are called folders
* Set by LZMA_read()
*/
typedef struct _LZMAfolder
{
PHYSFS_uint32 index; /* Index of folder in archive */
PHYSFS_uint32 references; /* Number of files using this block */
PHYSFS_uint8 *cache; /* Cached folder */
size_t size; /* Size of folder */
} LZMAfolder;
/*
* Set by LZMA_openArchive(), except folder which gets it's values
* in LZMA_read()
*/
typedef struct _LZMAarchive
{
struct _LZMAfile *files; /* Array of files, size == archive->db.Database.NumFiles */
LZMAfolder *folders; /* Array of folders, size == archive->db.Database.NumFolders */
CArchiveDatabaseEx db; /* For 7z: Database */
FileInputStream stream; /* For 7z: Input file incl. read and seek callbacks */
} LZMAarchive;
/* Set by LZMA_openArchive(), except offset which is set by LZMA_read() */
typedef struct _LZMAfile
{
PHYSFS_uint32 index; /* Index of file in archive */
LZMAarchive *archive; /* Link to corresponding archive */
LZMAfolder *folder; /* Link to corresponding folder */
CFileItem *item; /* For 7z: File info, eg. name, size */
size_t offset; /* Offset in folder */
size_t position; /* Current "virtual" position in file */
} LZMAfile;
/* Memory management implementations to be passed to 7z */
static void *SzAllocPhysicsFS(size_t size)
{
return ((size == 0) ? NULL : allocator.Malloc(size));
} /* SzAllocPhysicsFS */
static void SzFreePhysicsFS(void *address)
{
if (address != NULL)
allocator.Free(address);
} /* SzFreePhysicsFS */
/* Filesystem implementations to be passed to 7z */
#ifdef _LZMA_IN_CB
/*
* Read implementation, to be passed to 7z
* WARNING: If the ISzInStream in 'object' is not contained in a valid FileInputStream this _will_ break horribly!
*/
SZ_RESULT SzFileReadImp(void *object, void **buffer, size_t maxReqSize,
size_t *processedSize)
{
FileInputStream *s = (FileInputStream *)(object - offsetof(FileInputStream, inStream)); /* HACK! */
PHYSFS_sint64 processedSizeLoc = 0;
if (maxReqSize > BUFFER_SIZE)
maxReqSize = BUFFER_SIZE;
processedSizeLoc = __PHYSFS_platformRead(s->file, s->buffer, 1, maxReqSize);
*buffer = s->buffer;
if (processedSize != NULL)
*processedSize = (size_t) processedSizeLoc;
return SZ_OK;
} /* SzFileReadImp */
#else
/*
* Read implementation, to be passed to 7z
* WARNING: If the ISzInStream in 'object' is not contained in a valid FileInputStream this _will_ break horribly!
*/
SZ_RESULT SzFileReadImp(void *object, void *buffer, size_t size,
size_t *processedSize)
{
FileInputStream *s = (FileInputStream *)((unsigned long)object - offsetof(FileInputStream, inStream)); /* HACK! */
size_t processedSizeLoc = __PHYSFS_platformRead(s->file, buffer, 1, size);
if (processedSize != 0)
*processedSize = processedSizeLoc;
return SZ_OK;
} /* SzFileReadImp */
#endif
/*
* Seek implementation, to be passed to 7z
* WARNING: If the ISzInStream in 'object' is not contained in a valid FileInputStream this _will_ break horribly!
*/
SZ_RESULT SzFileSeekImp(void *object, CFileSize pos)
{
FileInputStream *s = (FileInputStream *)((unsigned long)object - offsetof(FileInputStream, inStream)); /* HACK! */
if (__PHYSFS_platformSeek(s->file, (PHYSFS_uint64) pos))
return SZ_OK;
return SZE_FAIL;
} /* SzFileSeekImp */
/*
* Translate Microsoft FILETIME (used by 7zip) into UNIX timestamp
*/
static PHYSFS_sint64 lzma_filetime_to_unix_timestamp(CArchiveFileTime *ft)
{
/* MS counts in nanoseconds ... */
const PHYSFS_uint64 FILETIME_NANOTICKS_PER_SECOND = __PHYSFS_UI64(10000000);
/* MS likes to count seconds since 01.01.1601 ... */
const PHYSFS_uint64 FILETIME_UNIX_DIFF = __PHYSFS_UI64(11644473600);
PHYSFS_uint64 filetime = ft->Low | ((PHYSFS_uint64)ft->High << 32);
return filetime/FILETIME_NANOTICKS_PER_SECOND - FILETIME_UNIX_DIFF;
} /* lzma_filetime_to_unix_timestamp */
/*
* Compare a file with a given name, C89 stdlib variant
* Used for sorting
*/
static int lzma_file_cmp_stdlib(const void *key, const void *object)
{
const char *name = (const char *) key;
LZMAfile *file = (LZMAfile *) object;
return(strcmp(name, file->item->Name));
} /* lzma_file_cmp_posix */
/*
* Compare two files with each other based on the name
* Used for sorting
*/
static int lzma_file_cmp(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
LZMAfile *files = (LZMAfile *) _a;
return(strcmp(files[one].item->Name, files[two].item->Name));
} /* lzma_file_cmp */
/*
* Swap two entries in the file array
*/
static void lzma_file_swap(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
LZMAfile tmp;
LZMAfile *first = &(((LZMAfile *) _a)[one]);
LZMAfile *second = &(((LZMAfile *) _a)[two]);
memcpy(&tmp, first, sizeof (LZMAfile));
memcpy(first, second, sizeof (LZMAfile));
memcpy(second, &tmp, sizeof (LZMAfile));
} /* lzma_file_swap */
/*
* Find entry 'name' in 'archive'
*/
static LZMAfile * lzma_find_file(LZMAarchive *archive, const char *name)
{
LZMAfile *file = bsearch(name, archive->files, archive->db.Database.NumFiles, sizeof(*archive->files), lzma_file_cmp_stdlib); /* FIXME: Should become __PHYSFS_search!!! */
BAIL_IF_MACRO(file == NULL, ERR_NO_SUCH_FILE, NULL);
return(file);
} /* lzma_find_file */
/*
* Load metadata for the file at given index
*/
static int lzma_file_init(LZMAarchive *archive, PHYSFS_uint32 fileIndex)
{
LZMAfile *file = &archive->files[fileIndex];
PHYSFS_uint32 folderIndex = archive->db.FileIndexToFolderIndexMap[fileIndex];
file->index = fileIndex; /* Store index into 7z array, since we sort our own. */
file->archive = archive;
file->folder = (folderIndex != (PHYSFS_uint32)-1 ? &archive->folders[folderIndex] : NULL); /* Directories don't have a folder (they contain no own data...) */
file->item = &archive->db.Database.Files[fileIndex]; /* Holds crucial data and is often referenced -> Store link */
file->position = 0;
file->offset = 0; /* Offset will be set by LZMA_read() */
return(1);
} /* lzma_load_file */
/*
* Load metadata for all files
*/
static int lzma_files_init(LZMAarchive *archive)
{
PHYSFS_uint32 fileIndex = 0, numFiles = archive->db.Database.NumFiles;
for (fileIndex = 0; fileIndex < numFiles; fileIndex++ )
{
if (!lzma_file_init(archive, fileIndex))
{
return(0); /* FALSE on failure */
}
} /* for */
__PHYSFS_sort(archive->files, numFiles, lzma_file_cmp, lzma_file_swap);
return(1);
} /* lzma_load_files */
/*
* Initialise specified archive
*/
static void lzma_archive_init(LZMAarchive *archive)
{
memset(archive, 0, sizeof(*archive));
/* Prepare callbacks for 7z */
archive->stream.inStream.Read = SzFileReadImp;
archive->stream.inStream.Seek = SzFileSeekImp;
archive->stream.allocImp.Alloc = SzAllocPhysicsFS;
archive->stream.allocImp.Free = SzFreePhysicsFS;
archive->stream.allocTempImp.Alloc = SzAllocPhysicsFS;
archive->stream.allocTempImp.Free = SzFreePhysicsFS;
}
/*
* Deinitialise archive
*/
static void lzma_archive_exit(LZMAarchive *archive)
{
/* Free arrays */
allocator.Free(archive->folders);
allocator.Free(archive->files);
allocator.Free(archive);
}
/*
* Wrap all 7z calls in this, so the physfs error state is set appropriately.
*/
static int lzma_err(SZ_RESULT rc)
{
switch (rc)
{
case SZ_OK: /* Same as LZMA_RESULT_OK */
break;
case SZE_DATA_ERROR: /* Same as LZMA_RESULT_DATA_ERROR */
__PHYSFS_setError(ERR_DATA_ERROR);
break;
case SZE_OUTOFMEMORY:
__PHYSFS_setError(ERR_OUT_OF_MEMORY);
break;
case SZE_CRC_ERROR:
__PHYSFS_setError(ERR_CORRUPTED);
break;
case SZE_NOTIMPL:
__PHYSFS_setError(ERR_NOT_IMPLEMENTED);
break;
case SZE_FAIL:
__PHYSFS_setError(ERR_UNKNOWN_ERROR); /* !!! FIXME: right? */
break;
case SZE_ARCHIVE_ERROR:
__PHYSFS_setError(ERR_CORRUPTED); /* !!! FIXME: right? */
break;
default:
__PHYSFS_setError(ERR_UNKNOWN_ERROR);
} /* switch */
return(rc);
} /* lzma_err */
static PHYSFS_sint64 LZMA_read(fvoid *opaque, void *outBuffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
LZMAfile *file = (LZMAfile *) opaque;
size_t wantedSize = objSize*objCount;
size_t remainingSize = file->item->Size - file->position;
size_t fileSize = 0;
BAIL_IF_MACRO(wantedSize == 0, NULL, 0); /* quick rejection. */
BAIL_IF_MACRO(remainingSize == 0, ERR_PAST_EOF, 0);
if (remainingSize < wantedSize)
{
wantedSize = remainingSize - (remainingSize % objSize);
objCount = (PHYSFS_uint32) (remainingSize / objSize);
BAIL_IF_MACRO(objCount == 0, ERR_PAST_EOF, 0); /* quick rejection. */
__PHYSFS_setError(ERR_PAST_EOF); /* this is always true here. */
} /* if */
/* Only decompress the folder if it is not allready cached */
if (file->folder->cache == NULL)
{
int rc = lzma_err(SzExtract(
&file->archive->stream.inStream, /* compressed data */
&file->archive->db, /* 7z's database, containing everything */
file->index, /* Index into database arrays */
/* Index of cached folder, will be changed by SzExtract */
&file->folder->index,
/* Cache for decompressed folder, allocated/freed by SzExtract */
&file->folder->cache,
/* Size of cache, will be changed by SzExtract */
&file->folder->size,
/* Offset of this file inside the cache, set by SzExtract */
&file->offset,
&fileSize, /* Size of this file */
&file->archive->stream.allocImp,
&file->archive->stream.allocTempImp));
if (rc != SZ_OK)
return -1;
} /* if */
/* Copy wanted bytes over from cache to outBuffer */
memcpy(outBuffer,
(file->folder->cache +
file->offset + file->position),
wantedSize);
file->position += wantedSize; /* Increase virtual position */
return objCount;
} /* LZMA_read */
static PHYSFS_sint64 LZMA_write(fvoid *opaque, const void *buf,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, -1);
} /* LZMA_write */
static int LZMA_eof(fvoid *opaque)
{
LZMAfile *file = (LZMAfile *) opaque;
return (file->position >= file->item->Size);
} /* LZMA_eof */
static PHYSFS_sint64 LZMA_tell(fvoid *opaque)
{
LZMAfile *file = (LZMAfile *) opaque;
return (file->position);
} /* LZMA_tell */
static int LZMA_seek(fvoid *opaque, PHYSFS_uint64 offset)
{
LZMAfile *file = (LZMAfile *) opaque;
BAIL_IF_MACRO(offset < 0, ERR_SEEK_OUT_OF_RANGE, 0);
BAIL_IF_MACRO(offset > file->item->Size, ERR_PAST_EOF, 0);
file->position = offset; /* We only use a virtual position... */
return 1;
} /* LZMA_seek */
static PHYSFS_sint64 LZMA_fileLength(fvoid *opaque)
{
LZMAfile *file = (LZMAfile *) opaque;
return (file->item->Size);
} /* LZMA_fileLength */
static int LZMA_fileClose(fvoid *opaque)
{
LZMAfile *file = (LZMAfile *) opaque;
BAIL_IF_MACRO(file->folder == NULL, ERR_NOT_A_FILE, 0);
/* Only decrease refcount if someone actually requested this file... Prevents from overflows and close-on-open... */
if (file->folder->references > 0)
file->folder->references--;
if (file->folder->references == 0)
{
/* Free the cache which might have been allocated by LZMA_read() */
allocator.Free(file->folder->cache);
file->folder->cache = NULL;
}
return(1);
} /* LZMA_fileClose */
static int LZMA_isArchive(const char *filename, int forWriting)
{
PHYSFS_uint8 sig[k7zSignatureSize];
void *in;
BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, 0);
in = __PHYSFS_platformOpenRead(filename);
BAIL_IF_MACRO(in == NULL, NULL, 0);
/* Read signature bytes */
if (__PHYSFS_platformRead(in, sig, k7zSignatureSize, 1) != 1)
{
__PHYSFS_platformClose(in); /* Don't forget to close the file before returning... */
BAIL_MACRO(NULL, 0);
}
__PHYSFS_platformClose(in);
/* Test whether sig is the 7z signature */
return(TestSignatureCandidate(sig));
} /* LZMA_isArchive */
static void *LZMA_openArchive(const char *name, int forWriting)
{
size_t len = 0;
LZMAarchive *archive = NULL;
BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, NULL);
BAIL_IF_MACRO(!LZMA_isArchive(name,forWriting), ERR_UNSUPPORTED_ARCHIVE, 0);
archive = (LZMAarchive *) allocator.Malloc(sizeof (LZMAarchive));
BAIL_IF_MACRO(archive == NULL, ERR_OUT_OF_MEMORY, NULL);
lzma_archive_init(archive);
if ( (archive->stream.file = __PHYSFS_platformOpenRead(name)) == NULL )
{
__PHYSFS_platformClose(archive->stream.file);
lzma_archive_exit(archive);
return(NULL); /* Error is set by platformOpenRead! */
}
CrcGenerateTable();
SzArDbExInit(&archive->db);
if (lzma_err(SzArchiveOpen(&archive->stream.inStream,
&archive->db,
&archive->stream.allocImp,
&archive->stream.allocTempImp)) != SZ_OK)
{
SzArDbExFree(&archive->db, SzFreePhysicsFS);
__PHYSFS_platformClose(archive->stream.file);
lzma_archive_exit(archive);
return NULL; /* Error is set by lzma_err! */
} /* if */
len = archive->db.Database.NumFiles * sizeof (LZMAfile);
archive->files = (LZMAfile *) allocator.Malloc(len);
if (archive->files == NULL)
{
SzArDbExFree(&archive->db, SzFreePhysicsFS);
__PHYSFS_platformClose(archive->stream.file);
lzma_archive_exit(archive);
BAIL_MACRO(ERR_OUT_OF_MEMORY, NULL);
}
/*
* Init with 0 so we know when a folder is already cached
* Values will be set by LZMA_openRead()
*/
memset(archive->files, 0, len);
len = archive->db.Database.NumFolders * sizeof (LZMAfolder);
archive->folders = (LZMAfolder *) allocator.Malloc(len);
if (archive->folders == NULL)
{
SzArDbExFree(&archive->db, SzFreePhysicsFS);
__PHYSFS_platformClose(archive->stream.file);
lzma_archive_exit(archive);
BAIL_MACRO(ERR_OUT_OF_MEMORY, NULL);
}
/*
* Init with 0 so we know when a folder is already cached
* Values will be set by LZMA_read()
*/
memset(archive->folders, 0, len);
if(!lzma_files_init(archive))
{
SzArDbExFree(&archive->db, SzFreePhysicsFS);
__PHYSFS_platformClose(archive->stream.file);
lzma_archive_exit(archive);
BAIL_MACRO(ERR_UNKNOWN_ERROR, NULL);
}
return(archive);
} /* LZMA_openArchive */
/*
* Moved to seperate function so we can use alloca then immediately throw
* away the allocated stack space...
*/
static void doEnumCallback(PHYSFS_EnumFilesCallback cb, void *callbackdata,
const char *odir, const char *str, size_t flen)
{
char *newstr = __PHYSFS_smallAlloc(flen + 1);
if (newstr == NULL)
return;
memcpy(newstr, str, flen);
newstr[flen] = '\0';
cb(callbackdata, odir, newstr);
__PHYSFS_smallFree(newstr);
} /* doEnumCallback */
static void LZMA_enumerateFiles(dvoid *opaque, const char *dname,
int omitSymLinks, PHYSFS_EnumFilesCallback cb,
const char *origdir, void *callbackdata)
{
size_t dlen = strlen(dname),
dlen_inc = dlen + ((dlen > 0) ? 1 : 0);
LZMAarchive *archive = (LZMAarchive *) opaque;
LZMAfile *file = NULL,
*lastFile = &archive->files[archive->db.Database.NumFiles];
if (dlen)
{
file = lzma_find_file(archive, dname);
if (file != NULL) /* if 'file' is NULL it should stay so, otherwise errors will not be handled */
file += 1;
}
else
{
file = archive->files;
}
BAIL_IF_MACRO(file == NULL, ERR_NO_SUCH_FILE, );
while (file < lastFile)
{
const char * fname = file->item->Name;
const char * dirNameEnd = fname + dlen_inc;
if (strncmp(dname, fname, dlen) != 0) /* Stop after mismatch, archive->files is sorted */
break;
if (strchr(dirNameEnd, '/')) /* Skip subdirs */
{
file++;
continue;
}
/* Do the actual callback... */
doEnumCallback(cb, callbackdata, origdir, dirNameEnd, strlen(dirNameEnd));
file++;
}
} /* LZMA_enumerateFiles */
static int LZMA_exists(dvoid *opaque, const char *name)
{
LZMAarchive *archive = (LZMAarchive *) opaque;
return(lzma_find_file(archive, name) != NULL);
} /* LZMA_exists */
static PHYSFS_sint64 LZMA_getLastModTime(dvoid *opaque,
const char *name,
int *fileExists)
{
LZMAarchive *archive = (LZMAarchive *) opaque;
LZMAfile *file = lzma_find_file(archive, name);
*fileExists = (file != NULL);
BAIL_IF_MACRO(file == NULL, NULL, -1);
BAIL_IF_MACRO(!file->item->IsLastWriteTimeDefined, NULL, -1); /* write-time may not be defined for every file */
return(lzma_filetime_to_unix_timestamp(&file->item->LastWriteTime));
} /* LZMA_getLastModTime */
static int LZMA_isDirectory(dvoid *opaque, const char *name, int *fileExists)
{
LZMAarchive *archive = (LZMAarchive *) opaque;
LZMAfile *file = lzma_find_file(archive, name);
*fileExists = (file != NULL);
return(file == NULL ? 0 : file->item->IsDirectory);
} /* LZMA_isDirectory */
static int LZMA_isSymLink(dvoid *opaque, const char *name, int *fileExists)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* LZMA_isSymLink */
static fvoid *LZMA_openRead(dvoid *opaque, const char *name, int *fileExists)
{
LZMAarchive *archive = (LZMAarchive *) opaque;
LZMAfile *file = lzma_find_file(archive, name);
*fileExists = (file != NULL);
BAIL_IF_MACRO(file == NULL, ERR_NO_SUCH_FILE, NULL);
BAIL_IF_MACRO(file->folder == NULL, ERR_NOT_A_FILE, NULL);
file->position = 0;
file->folder->references++; /* Increase refcount for automatic cleanup... */
return(file);
} /* LZMA_openRead */
static fvoid *LZMA_openWrite(dvoid *opaque, const char *filename)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* LZMA_openWrite */
static fvoid *LZMA_openAppend(dvoid *opaque, const char *filename)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* LZMA_openAppend */
static void LZMA_dirClose(dvoid *opaque)
{
LZMAarchive *archive = (LZMAarchive *) opaque;
PHYSFS_uint32 fileIndex = 0, numFiles = archive->db.Database.NumFiles;
for (fileIndex = 0; fileIndex < numFiles; fileIndex++)
{
LZMA_fileClose(&archive->files[fileIndex]);
} /* for */
SzArDbExFree(&archive->db, SzFreePhysicsFS);
__PHYSFS_platformClose(archive->stream.file);
lzma_archive_exit(archive);
} /* LZMA_dirClose */
static int LZMA_remove(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* LZMA_remove */
static int LZMA_mkdir(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* LZMA_mkdir */
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_LZMA =
{
"7Z",
LZMA_ARCHIVE_DESCRIPTION,
"Dennis Schridde <devurandom@gmx.net>",
"http://icculus.org/physfs/",
};
const PHYSFS_Archiver __PHYSFS_Archiver_LZMA =
{
&__PHYSFS_ArchiveInfo_LZMA,
LZMA_isArchive, /* isArchive() method */
LZMA_openArchive, /* openArchive() method */
LZMA_enumerateFiles, /* enumerateFiles() method */
LZMA_exists, /* exists() method */
LZMA_isDirectory, /* isDirectory() method */
LZMA_isSymLink, /* isSymLink() method */
LZMA_getLastModTime, /* getLastModTime() method */
LZMA_openRead, /* openRead() method */
LZMA_openWrite, /* openWrite() method */
LZMA_openAppend, /* openAppend() method */
LZMA_remove, /* remove() method */
LZMA_mkdir, /* mkdir() method */
LZMA_dirClose, /* dirClose() method */
LZMA_read, /* read() method */
LZMA_write, /* write() method */
LZMA_eof, /* eof() method */
LZMA_tell, /* tell() method */
LZMA_seek, /* seek() method */
LZMA_fileLength, /* fileLength() method */
LZMA_fileClose /* fileClose() method */
};
#endif /* defined PHYSFS_SUPPORTS_7Z */
/* end of lzma.c ... */
+471
View File
@@ -0,0 +1,471 @@
/*
* MVL support routines for PhysicsFS.
*
* This driver handles Descent II Movielib archives.
*
* The file format of MVL is quite easy...
*
* //MVL File format - Written by Heiko Herrmann
* char sig[4] = {'D','M', 'V', 'L'}; // "DMVL"=Descent MoVie Library
*
* int num_files; // the number of files in this MVL
*
* struct {
* char file_name[13]; // Filename, padded to 13 bytes with 0s
* int file_size; // filesize in bytes
* }DIR_STRUCT[num_files];
*
* struct {
* char data[file_size]; // The file data
* }FILE_STRUCT[num_files];
*
* (That info is from http://www.descent2.com/ddn/specs/mvl/)
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by Bradley Bell.
* Based on grp.c by Ryan C. Gordon.
*/
#if (defined PHYSFS_SUPPORTS_MVL)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
typedef struct
{
char name[13];
PHYSFS_uint32 startPos;
PHYSFS_uint32 size;
} MVLentry;
typedef struct
{
char *filename;
PHYSFS_sint64 last_mod_time;
PHYSFS_uint32 entryCount;
MVLentry *entries;
} MVLinfo;
typedef struct
{
void *handle;
MVLentry *entry;
PHYSFS_uint32 curPos;
} MVLfileinfo;
static void MVL_dirClose(dvoid *opaque)
{
MVLinfo *info = ((MVLinfo *) opaque);
allocator.Free(info->filename);
allocator.Free(info->entries);
allocator.Free(info);
} /* MVL_dirClose */
static PHYSFS_sint64 MVL_read(fvoid *opaque, void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
MVLfileinfo *finfo = (MVLfileinfo *) opaque;
MVLentry *entry = finfo->entry;
PHYSFS_uint32 bytesLeft = entry->size - finfo->curPos;
PHYSFS_uint32 objsLeft = (bytesLeft / objSize);
PHYSFS_sint64 rc;
if (objsLeft < objCount)
objCount = objsLeft;
rc = __PHYSFS_platformRead(finfo->handle, buffer, objSize, objCount);
if (rc > 0)
finfo->curPos += (PHYSFS_uint32) (rc * objSize);
return(rc);
} /* MVL_read */
static PHYSFS_sint64 MVL_write(fvoid *opaque, const void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, -1);
} /* MVL_write */
static int MVL_eof(fvoid *opaque)
{
MVLfileinfo *finfo = (MVLfileinfo *) opaque;
MVLentry *entry = finfo->entry;
return(finfo->curPos >= entry->size);
} /* MVL_eof */
static PHYSFS_sint64 MVL_tell(fvoid *opaque)
{
return(((MVLfileinfo *) opaque)->curPos);
} /* MVL_tell */
static int MVL_seek(fvoid *opaque, PHYSFS_uint64 offset)
{
MVLfileinfo *finfo = (MVLfileinfo *) opaque;
MVLentry *entry = finfo->entry;
int rc;
BAIL_IF_MACRO(offset < 0, ERR_INVALID_ARGUMENT, 0);
BAIL_IF_MACRO(offset >= entry->size, ERR_PAST_EOF, 0);
rc = __PHYSFS_platformSeek(finfo->handle, entry->startPos + offset);
if (rc)
finfo->curPos = (PHYSFS_uint32) offset;
return(rc);
} /* MVL_seek */
static PHYSFS_sint64 MVL_fileLength(fvoid *opaque)
{
MVLfileinfo *finfo = (MVLfileinfo *) opaque;
return((PHYSFS_sint64) finfo->entry->size);
} /* MVL_fileLength */
static int MVL_fileClose(fvoid *opaque)
{
MVLfileinfo *finfo = (MVLfileinfo *) opaque;
BAIL_IF_MACRO(!__PHYSFS_platformClose(finfo->handle), NULL, 0);
allocator.Free(finfo);
return(1);
} /* MVL_fileClose */
static int mvl_open(const char *filename, int forWriting,
void **fh, PHYSFS_uint32 *count)
{
PHYSFS_uint8 buf[4];
*fh = NULL;
BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, 0);
*fh = __PHYSFS_platformOpenRead(filename);
BAIL_IF_MACRO(*fh == NULL, NULL, 0);
if (__PHYSFS_platformRead(*fh, buf, 4, 1) != 1)
goto openMvl_failed;
if (memcmp(buf, "DMVL", 4) != 0)
{
__PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
goto openMvl_failed;
} /* if */
if (__PHYSFS_platformRead(*fh, count, sizeof (PHYSFS_uint32), 1) != 1)
goto openMvl_failed;
*count = PHYSFS_swapULE32(*count);
return(1);
openMvl_failed:
if (*fh != NULL)
__PHYSFS_platformClose(*fh);
*count = -1;
*fh = NULL;
return(0);
} /* mvl_open */
static int MVL_isArchive(const char *filename, int forWriting)
{
void *fh;
PHYSFS_uint32 fileCount;
int retval = mvl_open(filename, forWriting, &fh, &fileCount);
if (fh != NULL)
__PHYSFS_platformClose(fh);
return(retval);
} /* MVL_isArchive */
static int mvl_entry_cmp(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
if (one != two)
{
const MVLentry *a = (const MVLentry *) _a;
return(strcmp(a[one].name, a[two].name));
} /* if */
return 0;
} /* mvl_entry_cmp */
static void mvl_entry_swap(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
if (one != two)
{
MVLentry tmp;
MVLentry *first = &(((MVLentry *) _a)[one]);
MVLentry *second = &(((MVLentry *) _a)[two]);
memcpy(&tmp, first, sizeof (MVLentry));
memcpy(first, second, sizeof (MVLentry));
memcpy(second, &tmp, sizeof (MVLentry));
} /* if */
} /* mvl_entry_swap */
static int mvl_load_entries(const char *name, int forWriting, MVLinfo *info)
{
void *fh = NULL;
PHYSFS_uint32 fileCount;
PHYSFS_uint32 location = 8; /* sizeof sig. */
MVLentry *entry;
BAIL_IF_MACRO(!mvl_open(name, forWriting, &fh, &fileCount), NULL, 0);
info->entryCount = fileCount;
info->entries = (MVLentry *) allocator.Malloc(sizeof(MVLentry)*fileCount);
if (info->entries == NULL)
{
__PHYSFS_platformClose(fh);
BAIL_MACRO(ERR_OUT_OF_MEMORY, 0);
} /* if */
location += (17 * fileCount);
for (entry = info->entries; fileCount > 0; fileCount--, entry++)
{
if (__PHYSFS_platformRead(fh, &entry->name, 13, 1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
if (__PHYSFS_platformRead(fh, &entry->size, 4, 1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
entry->size = PHYSFS_swapULE32(entry->size);
entry->startPos = location;
location += entry->size;
} /* for */
__PHYSFS_platformClose(fh);
__PHYSFS_sort(info->entries, info->entryCount,
mvl_entry_cmp, mvl_entry_swap);
return(1);
} /* mvl_load_entries */
static void *MVL_openArchive(const char *name, int forWriting)
{
PHYSFS_sint64 modtime = __PHYSFS_platformGetLastModTime(name);
MVLinfo *info = (MVLinfo *) allocator.Malloc(sizeof (MVLinfo));
BAIL_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, NULL);
memset(info, '\0', sizeof (MVLinfo));
info->filename = (char *) allocator.Malloc(strlen(name) + 1);
GOTO_IF_MACRO(!info->filename, ERR_OUT_OF_MEMORY, MVL_openArchive_failed);
if (!mvl_load_entries(name, forWriting, info))
goto MVL_openArchive_failed;
strcpy(info->filename, name);
info->last_mod_time = modtime;
return(info);
MVL_openArchive_failed:
if (info != NULL)
{
if (info->filename != NULL)
allocator.Free(info->filename);
if (info->entries != NULL)
allocator.Free(info->entries);
allocator.Free(info);
} /* if */
return(NULL);
} /* MVL_openArchive */
static void MVL_enumerateFiles(dvoid *opaque, const char *dname,
int omitSymLinks, PHYSFS_EnumFilesCallback cb,
const char *origdir, void *callbackdata)
{
/* no directories in MVL files. */
if (*dname == '\0')
{
MVLinfo *info = ((MVLinfo *) opaque);
MVLentry *entry = info->entries;
PHYSFS_uint32 max = info->entryCount;
PHYSFS_uint32 i;
for (i = 0; i < max; i++, entry++)
cb(callbackdata, origdir, entry->name);
} /* if */
} /* MVL_enumerateFiles */
static MVLentry *mvl_find_entry(MVLinfo *info, const char *name)
{
char *ptr = strchr(name, '.');
MVLentry *a = info->entries;
PHYSFS_sint32 lo = 0;
PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
PHYSFS_sint32 middle;
int rc;
/*
* Rule out filenames to avoid unneeded processing...no dirs,
* big filenames, or extensions > 3 chars.
*/
BAIL_IF_MACRO((ptr) && (strlen(ptr) > 4), ERR_NO_SUCH_FILE, NULL);
BAIL_IF_MACRO(strlen(name) > 12, ERR_NO_SUCH_FILE, NULL);
BAIL_IF_MACRO(strchr(name, '/') != NULL, ERR_NO_SUCH_FILE, NULL);
while (lo <= hi)
{
middle = lo + ((hi - lo) / 2);
rc = __PHYSFS_stricmpASCII(name, a[middle].name);
if (rc == 0) /* found it! */
return(&a[middle]);
else if (rc > 0)
lo = middle + 1;
else
hi = middle - 1;
} /* while */
BAIL_MACRO(ERR_NO_SUCH_FILE, NULL);
} /* mvl_find_entry */
static int MVL_exists(dvoid *opaque, const char *name)
{
return(mvl_find_entry(((MVLinfo *) opaque), name) != NULL);
} /* MVL_exists */
static int MVL_isDirectory(dvoid *opaque, const char *name, int *fileExists)
{
*fileExists = MVL_exists(opaque, name);
return(0); /* never directories in a groupfile. */
} /* MVL_isDirectory */
static int MVL_isSymLink(dvoid *opaque, const char *name, int *fileExists)
{
*fileExists = MVL_exists(opaque, name);
return(0); /* never symlinks in a groupfile. */
} /* MVL_isSymLink */
static PHYSFS_sint64 MVL_getLastModTime(dvoid *opaque,
const char *name,
int *fileExists)
{
MVLinfo *info = ((MVLinfo *) opaque);
PHYSFS_sint64 retval = -1;
*fileExists = (mvl_find_entry(info, name) != NULL);
if (*fileExists) /* use time of MVL itself in the physical filesystem. */
retval = info->last_mod_time;
return(retval);
} /* MVL_getLastModTime */
static fvoid *MVL_openRead(dvoid *opaque, const char *fnm, int *fileExists)
{
MVLinfo *info = ((MVLinfo *) opaque);
MVLfileinfo *finfo;
MVLentry *entry;
entry = mvl_find_entry(info, fnm);
*fileExists = (entry != NULL);
BAIL_IF_MACRO(entry == NULL, NULL, NULL);
finfo = (MVLfileinfo *) allocator.Malloc(sizeof (MVLfileinfo));
BAIL_IF_MACRO(finfo == NULL, ERR_OUT_OF_MEMORY, NULL);
finfo->handle = __PHYSFS_platformOpenRead(info->filename);
if ( (finfo->handle == NULL) ||
(!__PHYSFS_platformSeek(finfo->handle, entry->startPos)) )
{
allocator.Free(finfo);
return(NULL);
} /* if */
finfo->curPos = 0;
finfo->entry = entry;
return(finfo);
} /* MVL_openRead */
static fvoid *MVL_openWrite(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* MVL_openWrite */
static fvoid *MVL_openAppend(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* MVL_openAppend */
static int MVL_remove(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* MVL_remove */
static int MVL_mkdir(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* MVL_mkdir */
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_MVL =
{
"MVL",
MVL_ARCHIVE_DESCRIPTION,
"Bradley Bell <btb@icculus.org>",
"http://icculus.org/physfs/",
};
const PHYSFS_Archiver __PHYSFS_Archiver_MVL =
{
&__PHYSFS_ArchiveInfo_MVL,
MVL_isArchive, /* isArchive() method */
MVL_openArchive, /* openArchive() method */
MVL_enumerateFiles, /* enumerateFiles() method */
MVL_exists, /* exists() method */
MVL_isDirectory, /* isDirectory() method */
MVL_isSymLink, /* isSymLink() method */
MVL_getLastModTime, /* getLastModTime() method */
MVL_openRead, /* openRead() method */
MVL_openWrite, /* openWrite() method */
MVL_openAppend, /* openAppend() method */
MVL_remove, /* remove() method */
MVL_mkdir, /* mkdir() method */
MVL_dirClose, /* dirClose() method */
MVL_read, /* read() method */
MVL_write, /* write() method */
MVL_eof, /* eof() method */
MVL_tell, /* tell() method */
MVL_seek, /* seek() method */
MVL_fileLength, /* fileLength() method */
MVL_fileClose /* fileClose() method */
};
#endif /* defined PHYSFS_SUPPORTS_MVL */
/* end of mvl.c ... */
+633
View File
@@ -0,0 +1,633 @@
/*
* QPAK support routines for PhysicsFS.
*
* This archiver handles the archive format utilized by Quake 1 and 2.
* Quake3-based games use the PkZip/Info-Zip format (which our zip.c
* archiver handles).
*
* ========================================================================
*
* This format info (in more detail) comes from:
* http://debian.fmi.uni-sofia.bg/~sergei/cgsr/docs/pak.txt
*
* Quake PAK Format
*
* Header
* (4 bytes) signature = 'PACK'
* (4 bytes) directory offset
* (4 bytes) directory length
*
* Directory
* (56 bytes) file name
* (4 bytes) file position
* (4 bytes) file length
*
* ========================================================================
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by Ryan C. Gordon.
*/
#if (defined PHYSFS_SUPPORTS_QPAK)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
#if 1 /* Make this case insensitive? */
#define QPAK_strcmp(x, y) __PHYSFS_stricmpASCII(x, y)
#define QPAK_strncmp(x, y, z) __PHYSFS_strnicmpASCII(x, y, z)
#else
#define QPAK_strcmp(x, y) strcmp(x, y)
#define QPAK_strncmp(x, y, z) strncmp(x, y, z)
#endif
typedef struct
{
char name[56];
PHYSFS_uint32 startPos;
PHYSFS_uint32 size;
} QPAKentry;
typedef struct
{
char *filename;
PHYSFS_sint64 last_mod_time;
PHYSFS_uint32 entryCount;
QPAKentry *entries;
} QPAKinfo;
typedef struct
{
void *handle;
QPAKentry *entry;
PHYSFS_uint32 curPos;
} QPAKfileinfo;
/* Magic numbers... */
#define QPAK_SIG 0x4b434150 /* "PACK" in ASCII. */
static void QPAK_dirClose(dvoid *opaque)
{
QPAKinfo *info = ((QPAKinfo *) opaque);
allocator.Free(info->filename);
allocator.Free(info->entries);
allocator.Free(info);
} /* QPAK_dirClose */
static PHYSFS_sint64 QPAK_read(fvoid *opaque, void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
QPAKfileinfo *finfo = (QPAKfileinfo *) opaque;
QPAKentry *entry = finfo->entry;
PHYSFS_uint32 bytesLeft = entry->size - finfo->curPos;
PHYSFS_uint32 objsLeft = (bytesLeft / objSize);
PHYSFS_sint64 rc;
if (objsLeft < objCount)
objCount = objsLeft;
rc = __PHYSFS_platformRead(finfo->handle, buffer, objSize, objCount);
if (rc > 0)
finfo->curPos += (PHYSFS_uint32) (rc * objSize);
return(rc);
} /* QPAK_read */
static PHYSFS_sint64 QPAK_write(fvoid *opaque, const void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, -1);
} /* QPAK_write */
static int QPAK_eof(fvoid *opaque)
{
QPAKfileinfo *finfo = (QPAKfileinfo *) opaque;
QPAKentry *entry = finfo->entry;
return(finfo->curPos >= entry->size);
} /* QPAK_eof */
static PHYSFS_sint64 QPAK_tell(fvoid *opaque)
{
return(((QPAKfileinfo *) opaque)->curPos);
} /* QPAK_tell */
static int QPAK_seek(fvoid *opaque, PHYSFS_uint64 offset)
{
QPAKfileinfo *finfo = (QPAKfileinfo *) opaque;
QPAKentry *entry = finfo->entry;
int rc;
BAIL_IF_MACRO(offset < 0, ERR_INVALID_ARGUMENT, 0);
BAIL_IF_MACRO(offset >= entry->size, ERR_PAST_EOF, 0);
rc = __PHYSFS_platformSeek(finfo->handle, entry->startPos + offset);
if (rc)
finfo->curPos = (PHYSFS_uint32) offset;
return(rc);
} /* QPAK_seek */
static PHYSFS_sint64 QPAK_fileLength(fvoid *opaque)
{
QPAKfileinfo *finfo = (QPAKfileinfo *) opaque;
return((PHYSFS_sint64) finfo->entry->size);
} /* QPAK_fileLength */
static int QPAK_fileClose(fvoid *opaque)
{
QPAKfileinfo *finfo = (QPAKfileinfo *) opaque;
BAIL_IF_MACRO(!__PHYSFS_platformClose(finfo->handle), NULL, 0);
allocator.Free(finfo);
return(1);
} /* QPAK_fileClose */
static int qpak_open(const char *filename, int forWriting,
void **fh, PHYSFS_uint32 *count)
{
PHYSFS_uint32 buf;
*fh = NULL;
BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, 0);
*fh = __PHYSFS_platformOpenRead(filename);
BAIL_IF_MACRO(*fh == NULL, NULL, 0);
if (__PHYSFS_platformRead(*fh, &buf, sizeof (PHYSFS_uint32), 1) != 1)
goto openQpak_failed;
buf = PHYSFS_swapULE32(buf);
GOTO_IF_MACRO(buf != QPAK_SIG, ERR_UNSUPPORTED_ARCHIVE, openQpak_failed);
if (__PHYSFS_platformRead(*fh, &buf, sizeof (PHYSFS_uint32), 1) != 1)
goto openQpak_failed;
buf = PHYSFS_swapULE32(buf); /* directory table offset. */
if (__PHYSFS_platformRead(*fh, count, sizeof (PHYSFS_uint32), 1) != 1)
goto openQpak_failed;
*count = PHYSFS_swapULE32(*count);
/* corrupted archive? */
GOTO_IF_MACRO((*count % 64) != 0, ERR_CORRUPTED, openQpak_failed);
if (!__PHYSFS_platformSeek(*fh, buf))
goto openQpak_failed;
*count /= 64;
return(1);
openQpak_failed:
if (*fh != NULL)
__PHYSFS_platformClose(*fh);
*count = -1;
*fh = NULL;
return(0);
} /* qpak_open */
static int QPAK_isArchive(const char *filename, int forWriting)
{
void *fh;
PHYSFS_uint32 fileCount;
int retval = qpak_open(filename, forWriting, &fh, &fileCount);
if (fh != NULL)
__PHYSFS_platformClose(fh);
return(retval);
} /* QPAK_isArchive */
static int qpak_entry_cmp(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
if (one != two)
{
const QPAKentry *a = (const QPAKentry *) _a;
return(QPAK_strcmp(a[one].name, a[two].name));
} /* if */
return 0;
} /* qpak_entry_cmp */
static void qpak_entry_swap(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
if (one != two)
{
QPAKentry tmp;
QPAKentry *first = &(((QPAKentry *) _a)[one]);
QPAKentry *second = &(((QPAKentry *) _a)[two]);
memcpy(&tmp, first, sizeof (QPAKentry));
memcpy(first, second, sizeof (QPAKentry));
memcpy(second, &tmp, sizeof (QPAKentry));
} /* if */
} /* qpak_entry_swap */
static int qpak_load_entries(const char *name, int forWriting, QPAKinfo *info)
{
void *fh = NULL;
PHYSFS_uint32 fileCount;
QPAKentry *entry;
BAIL_IF_MACRO(!qpak_open(name, forWriting, &fh, &fileCount), NULL, 0);
info->entryCount = fileCount;
info->entries = (QPAKentry*) allocator.Malloc(sizeof(QPAKentry)*fileCount);
if (info->entries == NULL)
{
__PHYSFS_platformClose(fh);
BAIL_MACRO(ERR_OUT_OF_MEMORY, 0);
} /* if */
for (entry = info->entries; fileCount > 0; fileCount--, entry++)
{
PHYSFS_uint32 loc;
if (__PHYSFS_platformRead(fh,&entry->name,sizeof(entry->name),1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
if (__PHYSFS_platformRead(fh,&loc,sizeof(loc),1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
if (__PHYSFS_platformRead(fh,&entry->size,sizeof(entry->size),1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
entry->size = PHYSFS_swapULE32(entry->size);
entry->startPos = PHYSFS_swapULE32(loc);
} /* for */
__PHYSFS_platformClose(fh);
__PHYSFS_sort(info->entries, info->entryCount,
qpak_entry_cmp, qpak_entry_swap);
return(1);
} /* qpak_load_entries */
static void *QPAK_openArchive(const char *name, int forWriting)
{
QPAKinfo *info = (QPAKinfo *) allocator.Malloc(sizeof (QPAKinfo));
PHYSFS_sint64 modtime = __PHYSFS_platformGetLastModTime(name);
BAIL_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, NULL);
memset(info, '\0', sizeof (QPAKinfo));
info->filename = (char *) allocator.Malloc(strlen(name) + 1);
if (info->filename == NULL)
{
__PHYSFS_setError(ERR_OUT_OF_MEMORY);
goto QPAK_openArchive_failed;
} /* if */
if (!qpak_load_entries(name, forWriting, info))
goto QPAK_openArchive_failed;
strcpy(info->filename, name);
info->last_mod_time = modtime;
return(info);
QPAK_openArchive_failed:
if (info != NULL)
{
if (info->filename != NULL)
allocator.Free(info->filename);
if (info->entries != NULL)
allocator.Free(info->entries);
allocator.Free(info);
} /* if */
return(NULL);
} /* QPAK_openArchive */
static PHYSFS_sint32 qpak_find_start_of_dir(QPAKinfo *info, const char *path,
int stop_on_first_find)
{
PHYSFS_sint32 lo = 0;
PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
PHYSFS_sint32 middle;
PHYSFS_uint32 dlen = strlen(path);
PHYSFS_sint32 retval = -1;
const char *name;
int rc;
if (*path == '\0') /* root dir? */
return(0);
if ((dlen > 0) && (path[dlen - 1] == '/')) /* ignore trailing slash. */
dlen--;
while (lo <= hi)
{
middle = lo + ((hi - lo) / 2);
name = info->entries[middle].name;
rc = QPAK_strncmp(path, name, dlen);
if (rc == 0)
{
char ch = name[dlen];
if (ch < '/') /* make sure this isn't just a substr match. */
rc = -1;
else if (ch > '/')
rc = 1;
else
{
if (stop_on_first_find) /* Just checking dir's existance? */
return(middle);
if (name[dlen + 1] == '\0') /* Skip initial dir entry. */
return(middle + 1);
/* there might be more entries earlier in the list. */
retval = middle;
hi = middle - 1;
} /* else */
} /* if */
if (rc > 0)
lo = middle + 1;
else
hi = middle - 1;
} /* while */
return(retval);
} /* qpak_find_start_of_dir */
/*
* Moved to seperate function so we can use alloca then immediately throw
* away the allocated stack space...
*/
static void doEnumCallback(PHYSFS_EnumFilesCallback cb, void *callbackdata,
const char *odir, const char *str, PHYSFS_sint32 ln)
{
char *newstr = __PHYSFS_smallAlloc(ln + 1);
if (newstr == NULL)
return;
memcpy(newstr, str, ln);
newstr[ln] = '\0';
cb(callbackdata, odir, newstr);
__PHYSFS_smallFree(newstr);
} /* doEnumCallback */
static void QPAK_enumerateFiles(dvoid *opaque, const char *dname,
int omitSymLinks, PHYSFS_EnumFilesCallback cb,
const char *origdir, void *callbackdata)
{
QPAKinfo *info = ((QPAKinfo *) opaque);
PHYSFS_sint32 dlen, dlen_inc, max, i;
i = qpak_find_start_of_dir(info, dname, 0);
if (i == -1) /* no such directory. */
return;
dlen = strlen(dname);
if ((dlen > 0) && (dname[dlen - 1] == '/')) /* ignore trailing slash. */
dlen--;
dlen_inc = ((dlen > 0) ? 1 : 0) + dlen;
max = (PHYSFS_sint32) info->entryCount;
while (i < max)
{
char *add;
char *ptr;
PHYSFS_sint32 ln;
char *e = info->entries[i].name;
if ((dlen) && ((QPAK_strncmp(e, dname, dlen)) || (e[dlen] != '/')))
break; /* past end of this dir; we're done. */
add = e + dlen_inc;
ptr = strchr(add, '/');
ln = (PHYSFS_sint32) ((ptr) ? ptr-add : strlen(add));
doEnumCallback(cb, callbackdata, origdir, add, ln);
ln += dlen_inc; /* point past entry to children... */
/* increment counter and skip children of subdirs... */
while ((++i < max) && (ptr != NULL))
{
char *e_new = info->entries[i].name;
if ((QPAK_strncmp(e, e_new, ln) != 0) || (e_new[ln] != '/'))
break;
} /* while */
} /* while */
} /* QPAK_enumerateFiles */
/*
* This will find the QPAKentry associated with a path in platform-independent
* notation. Directories don't have QPAKentries associated with them, but
* (*isDir) will be set to non-zero if a dir was hit.
*/
static QPAKentry *qpak_find_entry(QPAKinfo *info, const char *path, int *isDir)
{
QPAKentry *a = info->entries;
PHYSFS_sint32 pathlen = strlen(path);
PHYSFS_sint32 lo = 0;
PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
PHYSFS_sint32 middle;
const char *thispath = NULL;
int rc;
while (lo <= hi)
{
middle = lo + ((hi - lo) / 2);
thispath = a[middle].name;
rc = QPAK_strncmp(path, thispath, pathlen);
if (rc > 0)
lo = middle + 1;
else if (rc < 0)
hi = middle - 1;
else /* substring match...might be dir or entry or nothing. */
{
if (isDir != NULL)
{
*isDir = (thispath[pathlen] == '/');
if (*isDir)
return(NULL);
} /* if */
if (thispath[pathlen] == '\0') /* found entry? */
return(&a[middle]);
/* adjust search params, try again. */
else if (thispath[pathlen] > '/')
hi = middle - 1;
else
lo = middle + 1;
} /* if */
} /* while */
if (isDir != NULL)
*isDir = 0;
BAIL_MACRO(ERR_NO_SUCH_FILE, NULL);
} /* qpak_find_entry */
static int QPAK_exists(dvoid *opaque, const char *name)
{
int isDir;
QPAKinfo *info = (QPAKinfo *) opaque;
QPAKentry *entry = qpak_find_entry(info, name, &isDir);
return((entry != NULL) || (isDir));
} /* QPAK_exists */
static int QPAK_isDirectory(dvoid *opaque, const char *name, int *fileExists)
{
QPAKinfo *info = (QPAKinfo *) opaque;
int isDir;
QPAKentry *entry = qpak_find_entry(info, name, &isDir);
*fileExists = ((isDir) || (entry != NULL));
if (isDir)
return(1); /* definitely a dir. */
BAIL_MACRO(ERR_NO_SUCH_FILE, 0);
} /* QPAK_isDirectory */
static int QPAK_isSymLink(dvoid *opaque, const char *name, int *fileExists)
{
*fileExists = QPAK_exists(opaque, name);
return(0); /* never symlinks in a quake pak. */
} /* QPAK_isSymLink */
static PHYSFS_sint64 QPAK_getLastModTime(dvoid *opaque,
const char *name,
int *fileExists)
{
int isDir;
QPAKinfo *info = ((QPAKinfo *) opaque);
PHYSFS_sint64 retval = -1;
QPAKentry *entry = qpak_find_entry(info, name, &isDir);
*fileExists = ((isDir) || (entry != NULL));
if (*fileExists) /* use time of QPAK itself in the physical filesystem. */
retval = info->last_mod_time;
return(retval);
} /* QPAK_getLastModTime */
static fvoid *QPAK_openRead(dvoid *opaque, const char *fnm, int *fileExists)
{
QPAKinfo *info = ((QPAKinfo *) opaque);
QPAKfileinfo *finfo;
QPAKentry *entry;
int isDir;
entry = qpak_find_entry(info, fnm, &isDir);
*fileExists = ((entry != NULL) || (isDir));
BAIL_IF_MACRO(isDir, ERR_NOT_A_FILE, NULL);
BAIL_IF_MACRO(entry == NULL, ERR_NO_SUCH_FILE, NULL);
finfo = (QPAKfileinfo *) allocator.Malloc(sizeof (QPAKfileinfo));
BAIL_IF_MACRO(finfo == NULL, ERR_OUT_OF_MEMORY, NULL);
finfo->handle = __PHYSFS_platformOpenRead(info->filename);
if ( (finfo->handle == NULL) ||
(!__PHYSFS_platformSeek(finfo->handle, entry->startPos)) )
{
allocator.Free(finfo);
return(NULL);
} /* if */
finfo->curPos = 0;
finfo->entry = entry;
return(finfo);
} /* QPAK_openRead */
static fvoid *QPAK_openWrite(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* QPAK_openWrite */
static fvoid *QPAK_openAppend(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* QPAK_openAppend */
static int QPAK_remove(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* QPAK_remove */
static int QPAK_mkdir(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* QPAK_mkdir */
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_QPAK =
{
"PAK",
QPAK_ARCHIVE_DESCRIPTION,
"Ryan C. Gordon <icculus@icculus.org>",
"http://icculus.org/physfs/",
};
const PHYSFS_Archiver __PHYSFS_Archiver_QPAK =
{
&__PHYSFS_ArchiveInfo_QPAK,
QPAK_isArchive, /* isArchive() method */
QPAK_openArchive, /* openArchive() method */
QPAK_enumerateFiles, /* enumerateFiles() method */
QPAK_exists, /* exists() method */
QPAK_isDirectory, /* isDirectory() method */
QPAK_isSymLink, /* isSymLink() method */
QPAK_getLastModTime, /* getLastModTime() method */
QPAK_openRead, /* openRead() method */
QPAK_openWrite, /* openWrite() method */
QPAK_openAppend, /* openAppend() method */
QPAK_remove, /* remove() method */
QPAK_mkdir, /* mkdir() method */
QPAK_dirClose, /* dirClose() method */
QPAK_read, /* read() method */
QPAK_write, /* write() method */
QPAK_eof, /* eof() method */
QPAK_tell, /* tell() method */
QPAK_seek, /* seek() method */
QPAK_fileLength, /* fileLength() method */
QPAK_fileClose /* fileClose() method */
};
#endif /* defined PHYSFS_SUPPORTS_QPAK */
/* end of qpak.c ... */
+534
View File
@@ -0,0 +1,534 @@
/*
* WAD support routines for PhysicsFS.
*
* This driver handles DOOM engine archives ("wads").
* This format (but not this driver) was designed by id Software for use
* with the DOOM engine.
* The specs of the format are from the unofficial doom specs v1.666
* found here: http://www.gamers.org/dhs/helpdocs/dmsp1666.html
* The format of the archive: (from the specs)
*
* A WAD file has three parts:
* (1) a twelve-byte header
* (2) one or more "lumps"
* (3) a directory or "info table" that contains the names, offsets, and
* sizes of all the lumps in the WAD
*
* The header consists of three four-byte parts:
* (a) an ASCII string which must be either "IWAD" or "PWAD"
* (b) a 4-byte (long) integer which is the number of lumps in the wad
* (c) a long integer which is the file offset to the start of
* the directory
*
* The directory has one 16-byte entry for every lump. Each entry consists
* of three parts:
*
* (a) a long integer, the file offset to the start of the lump
* (b) a long integer, the size of the lump in bytes
* (c) an 8-byte ASCII string, the name of the lump, padded with zeros.
* For example, the "DEMO1" entry in hexadecimal would be
* (44 45 4D 4F 31 00 00 00)
*
* Note that there is no way to tell if an opened WAD archive is a
* IWAD or PWAD with this archiver.
* I couldn't think of a way to provide that information, without being too
* hacky.
* I don't think it's really that important though.
*
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by Travis Wells, based on the GRP archiver by
* Ryan C. Gordon.
*/
#if (defined PHYSFS_SUPPORTS_WAD)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
typedef struct
{
char name[18];
PHYSFS_uint32 startPos;
PHYSFS_uint32 size;
} WADentry;
typedef struct
{
char *filename;
PHYSFS_sint64 last_mod_time;
PHYSFS_uint32 entryCount;
PHYSFS_uint32 entryOffset;
WADentry *entries;
} WADinfo;
typedef struct
{
void *handle;
WADentry *entry;
PHYSFS_uint32 curPos;
} WADfileinfo;
static void WAD_dirClose(dvoid *opaque)
{
WADinfo *info = ((WADinfo *) opaque);
allocator.Free(info->filename);
allocator.Free(info->entries);
allocator.Free(info);
} /* WAD_dirClose */
static PHYSFS_sint64 WAD_read(fvoid *opaque, void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
WADfileinfo *finfo = (WADfileinfo *) opaque;
WADentry *entry = finfo->entry;
PHYSFS_uint32 bytesLeft = entry->size - finfo->curPos;
PHYSFS_uint32 objsLeft = (bytesLeft / objSize);
PHYSFS_sint64 rc;
if (objsLeft < objCount)
objCount = objsLeft;
rc = __PHYSFS_platformRead(finfo->handle, buffer, objSize, objCount);
if (rc > 0)
finfo->curPos += (PHYSFS_uint32) (rc * objSize);
return(rc);
} /* WAD_read */
static PHYSFS_sint64 WAD_write(fvoid *opaque, const void *buffer,
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, -1);
} /* WAD_write */
static int WAD_eof(fvoid *opaque)
{
WADfileinfo *finfo = (WADfileinfo *) opaque;
WADentry *entry = finfo->entry;
return(finfo->curPos >= entry->size);
} /* WAD_eof */
static PHYSFS_sint64 WAD_tell(fvoid *opaque)
{
return(((WADfileinfo *) opaque)->curPos);
} /* WAD_tell */
static int WAD_seek(fvoid *opaque, PHYSFS_uint64 offset)
{
WADfileinfo *finfo = (WADfileinfo *) opaque;
WADentry *entry = finfo->entry;
int rc;
BAIL_IF_MACRO(offset < 0, ERR_INVALID_ARGUMENT, 0);
BAIL_IF_MACRO(offset >= entry->size, ERR_PAST_EOF, 0);
rc = __PHYSFS_platformSeek(finfo->handle, entry->startPos + offset);
if (rc)
finfo->curPos = (PHYSFS_uint32) offset;
return(rc);
} /* WAD_seek */
static PHYSFS_sint64 WAD_fileLength(fvoid *opaque)
{
WADfileinfo *finfo = (WADfileinfo *) opaque;
return((PHYSFS_sint64) finfo->entry->size);
} /* WAD_fileLength */
static int WAD_fileClose(fvoid *opaque)
{
WADfileinfo *finfo = (WADfileinfo *) opaque;
BAIL_IF_MACRO(!__PHYSFS_platformClose(finfo->handle), NULL, 0);
allocator.Free(finfo);
return(1);
} /* WAD_fileClose */
static int wad_open(const char *filename, int forWriting,
void **fh, PHYSFS_uint32 *count,PHYSFS_uint32 *offset)
{
PHYSFS_uint8 buf[4];
*fh = NULL;
BAIL_IF_MACRO(forWriting, ERR_ARC_IS_READ_ONLY, 0);
*fh = __PHYSFS_platformOpenRead(filename);
BAIL_IF_MACRO(*fh == NULL, NULL, 0);
if (__PHYSFS_platformRead(*fh, buf, 4, 1) != 1)
goto openWad_failed;
if (memcmp(buf, "IWAD", 4) != 0 && memcmp(buf, "PWAD", 4) != 0)
{
__PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
goto openWad_failed;
} /* if */
if (__PHYSFS_platformRead(*fh, count, sizeof (PHYSFS_uint32), 1) != 1)
goto openWad_failed;
*count = PHYSFS_swapULE32(*count);
if (__PHYSFS_platformRead(*fh, offset, sizeof (PHYSFS_uint32), 1) != 1)
goto openWad_failed;
*offset = PHYSFS_swapULE32(*offset);
return(1);
openWad_failed:
if (*fh != NULL)
__PHYSFS_platformClose(*fh);
*count = -1;
*fh = NULL;
return(0);
} /* wad_open */
static int WAD_isArchive(const char *filename, int forWriting)
{
void *fh;
PHYSFS_uint32 fileCount,offset;
int retval = wad_open(filename, forWriting, &fh, &fileCount,&offset);
if (fh != NULL)
__PHYSFS_platformClose(fh);
return(retval);
} /* WAD_isArchive */
static int wad_entry_cmp(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
if (one != two)
{
const WADentry *a = (const WADentry *) _a;
return(strcmp(a[one].name, a[two].name));
} /* if */
return 0;
} /* wad_entry_cmp */
static void wad_entry_swap(void *_a, PHYSFS_uint32 one, PHYSFS_uint32 two)
{
if (one != two)
{
WADentry tmp;
WADentry *first = &(((WADentry *) _a)[one]);
WADentry *second = &(((WADentry *) _a)[two]);
memcpy(&tmp, first, sizeof (WADentry));
memcpy(first, second, sizeof (WADentry));
memcpy(second, &tmp, sizeof (WADentry));
} /* if */
} /* wad_entry_swap */
static int wad_load_entries(const char *name, int forWriting, WADinfo *info)
{
void *fh = NULL;
PHYSFS_uint32 fileCount;
PHYSFS_uint32 directoryOffset;
WADentry *entry;
char lastDirectory[9];
lastDirectory[8] = 0; /* Make sure lastDirectory stays null-terminated. */
BAIL_IF_MACRO(!wad_open(name, forWriting, &fh, &fileCount,&directoryOffset), NULL, 0);
info->entryCount = fileCount;
info->entries = (WADentry *) allocator.Malloc(sizeof(WADentry)*fileCount);
if (info->entries == NULL)
{
__PHYSFS_platformClose(fh);
BAIL_MACRO(ERR_OUT_OF_MEMORY, 0);
} /* if */
__PHYSFS_platformSeek(fh,directoryOffset);
for (entry = info->entries; fileCount > 0; fileCount--, entry++)
{
if (__PHYSFS_platformRead(fh, &entry->startPos, 4, 1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
if (__PHYSFS_platformRead(fh, &entry->size, 4, 1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
if (__PHYSFS_platformRead(fh, &entry->name, 8, 1) != 1)
{
__PHYSFS_platformClose(fh);
return(0);
} /* if */
entry->name[8] = '\0'; /* name might not be null-terminated in file. */
entry->size = PHYSFS_swapULE32(entry->size);
entry->startPos = PHYSFS_swapULE32(entry->startPos);
} /* for */
__PHYSFS_platformClose(fh);
__PHYSFS_sort(info->entries, info->entryCount,
wad_entry_cmp, wad_entry_swap);
return(1);
} /* wad_load_entries */
static void *WAD_openArchive(const char *name, int forWriting)
{
PHYSFS_sint64 modtime = __PHYSFS_platformGetLastModTime(name);
WADinfo *info = (WADinfo *) allocator.Malloc(sizeof (WADinfo));
BAIL_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, NULL);
memset(info, '\0', sizeof (WADinfo));
info->filename = (char *) allocator.Malloc(strlen(name) + 1);
GOTO_IF_MACRO(!info->filename, ERR_OUT_OF_MEMORY, WAD_openArchive_failed);
if (!wad_load_entries(name, forWriting, info))
goto WAD_openArchive_failed;
strcpy(info->filename, name);
info->last_mod_time = modtime;
return(info);
WAD_openArchive_failed:
if (info != NULL)
{
if (info->filename != NULL)
allocator.Free(info->filename);
if (info->entries != NULL)
allocator.Free(info->entries);
allocator.Free(info);
} /* if */
return(NULL);
} /* WAD_openArchive */
static void WAD_enumerateFiles(dvoid *opaque, const char *dname,
int omitSymLinks, PHYSFS_EnumFilesCallback cb,
const char *origdir, void *callbackdata)
{
WADinfo *info = ((WADinfo *) opaque);
WADentry *entry = info->entries;
PHYSFS_uint32 max = info->entryCount;
PHYSFS_uint32 i;
const char *name;
char *sep;
if (*dname == '\0') /* root directory enumeration? */
{
for (i = 0; i < max; i++, entry++)
{
name = entry->name;
if (strchr(name, '/') == NULL)
cb(callbackdata, origdir, name);
} /* for */
} /* if */
else
{
for (i = 0; i < max; i++, entry++)
{
name = entry->name;
sep = strchr(name, '/');
if (sep != NULL)
{
if (strncmp(dname, name, (sep - name)) == 0)
cb(callbackdata, origdir, sep + 1);
} /* if */
} /* for */
} /* else */
} /* WAD_enumerateFiles */
static WADentry *wad_find_entry(WADinfo *info, const char *name)
{
WADentry *a = info->entries;
PHYSFS_sint32 lo = 0;
PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
PHYSFS_sint32 middle;
int rc;
while (lo <= hi)
{
middle = lo + ((hi - lo) / 2);
rc = strcmp(name, a[middle].name);
if (rc == 0) /* found it! */
return(&a[middle]);
else if (rc > 0)
lo = middle + 1;
else
hi = middle - 1;
} /* while */
BAIL_MACRO(ERR_NO_SUCH_FILE, NULL);
} /* wad_find_entry */
static int WAD_exists(dvoid *opaque, const char *name)
{
return(wad_find_entry(((WADinfo *) opaque), name) != NULL);
} /* WAD_exists */
static int WAD_isDirectory(dvoid *opaque, const char *name, int *fileExists)
{
WADentry *entry = wad_find_entry(((WADinfo *) opaque), name);
if (entry != NULL)
{
char *n;
*fileExists = 1;
/* Can't be a directory if it's a subdirectory. */
if (strchr(entry->name, '/') != NULL)
return(0);
/* Check if it matches "MAP??" or "E?M?" ... */
n = entry->name;
if ((n[0] == 'E' && n[2] == 'M') ||
(n[0] == 'M' && n[1] == 'A' && n[2] == 'P' && n[6] == 0))
{
return(1);
} /* if */
return(0);
} /* if */
else
{
*fileExists = 0;
return(0);
} /* else */
} /* WAD_isDirectory */
static int WAD_isSymLink(dvoid *opaque, const char *name, int *fileExists)
{
*fileExists = WAD_exists(opaque, name);
return(0); /* never symlinks in a wad. */
} /* WAD_isSymLink */
static PHYSFS_sint64 WAD_getLastModTime(dvoid *opaque,
const char *name,
int *fileExists)
{
WADinfo *info = ((WADinfo *) opaque);
PHYSFS_sint64 retval = -1;
*fileExists = (wad_find_entry(info, name) != NULL);
if (*fileExists) /* use time of WAD itself in the physical filesystem. */
retval = info->last_mod_time;
return(retval);
} /* WAD_getLastModTime */
static fvoid *WAD_openRead(dvoid *opaque, const char *fnm, int *fileExists)
{
WADinfo *info = ((WADinfo *) opaque);
WADfileinfo *finfo;
WADentry *entry;
entry = wad_find_entry(info, fnm);
*fileExists = (entry != NULL);
BAIL_IF_MACRO(entry == NULL, NULL, NULL);
finfo = (WADfileinfo *) allocator.Malloc(sizeof (WADfileinfo));
BAIL_IF_MACRO(finfo == NULL, ERR_OUT_OF_MEMORY, NULL);
finfo->handle = __PHYSFS_platformOpenRead(info->filename);
if ( (finfo->handle == NULL) ||
(!__PHYSFS_platformSeek(finfo->handle, entry->startPos)) )
{
allocator.Free(finfo);
return(NULL);
} /* if */
finfo->curPos = 0;
finfo->entry = entry;
return(finfo);
} /* WAD_openRead */
static fvoid *WAD_openWrite(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* WAD_openWrite */
static fvoid *WAD_openAppend(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, NULL);
} /* WAD_openAppend */
static int WAD_remove(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* WAD_remove */
static int WAD_mkdir(dvoid *opaque, const char *name)
{
BAIL_MACRO(ERR_NOT_SUPPORTED, 0);
} /* WAD_mkdir */
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_WAD =
{
"WAD",
WAD_ARCHIVE_DESCRIPTION,
"Travis Wells <traviswells@mchsi.com>",
"http://www.3dmm2.com/doom/",
};
const PHYSFS_Archiver __PHYSFS_Archiver_WAD =
{
&__PHYSFS_ArchiveInfo_WAD,
WAD_isArchive, /* isArchive() method */
WAD_openArchive, /* openArchive() method */
WAD_enumerateFiles, /* enumerateFiles() method */
WAD_exists, /* exists() method */
WAD_isDirectory, /* isDirectory() method */
WAD_isSymLink, /* isSymLink() method */
WAD_getLastModTime, /* getLastModTime() method */
WAD_openRead, /* openRead() method */
WAD_openWrite, /* openWrite() method */
WAD_openAppend, /* openAppend() method */
WAD_remove, /* remove() method */
WAD_mkdir, /* mkdir() method */
WAD_dirClose, /* dirClose() method */
WAD_read, /* read() method */
WAD_write, /* write() method */
WAD_eof, /* eof() method */
WAD_tell, /* tell() method */
WAD_seek, /* seek() method */
WAD_fileLength, /* fileLength() method */
WAD_fileClose /* fileClose() method */
};
#endif /* defined PHYSFS_SUPPORTS_WAD */
/* end of wad.c ... */
File diff suppressed because it is too large Load Diff
+102
View File
@@ -0,0 +1,102 @@
# Install script for directory: /home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2
# Set the install prefix
IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
SET(CMAKE_INSTALL_PREFIX "/usr/local")
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
STRING(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install configuration name.
IF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
IF(BUILD_TYPE)
STRING(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
ELSE(BUILD_TYPE)
SET(CMAKE_INSTALL_CONFIG_NAME "")
ENDIF(BUILD_TYPE)
MESSAGE(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
ENDIF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
# Set the component getting installed.
IF(NOT CMAKE_INSTALL_COMPONENT)
IF(COMPONENT)
MESSAGE(STATUS "Install component: \"${COMPONENT}\"")
SET(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
ELSE(COMPONENT)
SET(CMAKE_INSTALL_COMPONENT)
ENDIF(COMPONENT)
ENDIF(NOT CMAKE_INSTALL_COMPONENT)
# Install shared libraries without execute permission?
IF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
SET(CMAKE_INSTALL_SO_NO_EXE "1")
ENDIF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/libphysfs.a")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
FOREACH(file
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libphysfs.so.2.0.2"
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libphysfs.so.1"
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libphysfs.so"
)
IF(EXISTS "${file}" AND
NOT IS_SYMLINK "${file}")
FILE(RPATH_CHECK
FILE "${file}"
RPATH "")
ENDIF()
ENDFOREACH()
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/libphysfs.so.2.0.2"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/libphysfs.so.1"
"/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/libphysfs.so"
)
FOREACH(file
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libphysfs.so.2.0.2"
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libphysfs.so.1"
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libphysfs.so"
)
IF(EXISTS "${file}" AND
NOT IS_SYMLINK "${file}")
IF(CMAKE_INSTALL_DO_STRIP)
EXECUTE_PROCESS(COMMAND "/usr/bin/strip" "${file}")
ENDIF(CMAKE_INSTALL_DO_STRIP)
ENDIF()
ENDFOREACH()
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
IF(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/test_physfs" AND
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/test_physfs")
FILE(RPATH_CHECK
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/test_physfs"
RPATH "")
ENDIF()
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/test_physfs")
IF(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/test_physfs" AND
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/test_physfs")
FILE(RPATH_REMOVE
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/test_physfs")
IF(CMAKE_INSTALL_DO_STRIP)
EXECUTE_PROCESS(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/test_physfs")
ENDIF(CMAKE_INSTALL_DO_STRIP)
ENDIF()
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/physfs.h")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
IF(CMAKE_INSTALL_COMPONENT)
SET(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
ELSE(CMAKE_INSTALL_COMPONENT)
SET(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
ENDIF(CMAKE_INSTALL_COMPONENT)
FILE(WRITE "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/${CMAKE_INSTALL_MANIFEST}" "")
FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES})
FILE(APPEND "/home/hagish/workspace/adt/love-native-android/jni/physfs-2.0.2/${CMAKE_INSTALL_MANIFEST}" "${file}\n")
ENDFOREACH(file)
+58
View File
@@ -0,0 +1,58 @@
using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("PhysFS.NET")]
[assembly: AssemblyDescription("PhysFS Bindings for .NET")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("PhysFS.NET")]
[assembly: AssemblyCopyright("(c)2003 Gregory S. Read")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
+113
View File
@@ -0,0 +1,113 @@
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.0.9466"
SchemaVersion = "1.0"
ProjectGuid = "{C6205A43-3D4D-41E6-872C-96CD7BE55230}"
>
<Build>
<Settings
ApplicationIcon = ""
AssemblyKeyContainerName = ""
AssemblyName = "PhysFS.NET"
AssemblyOriginatorKeyFile = ""
DefaultClientScript = "JScript"
DefaultHTMLPageLayout = "Grid"
DefaultTargetSchema = "IE50"
DelaySign = "false"
OutputType = "Library"
RootNamespace = "PhysFS.NET"
StartupObject = ""
>
<Config
Name = "Debug"
AllowUnsafeBlocks = "true"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "DEBUG;TRACE"
DocumentationFile = ""
DebugSymbols = "true"
FileAlignment = "4096"
IncrementalBuild = "true"
Optimize = "false"
OutputPath = "bin\Debug\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
<Config
Name = "Release"
AllowUnsafeBlocks = "true"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "TRACE"
DocumentationFile = ""
DebugSymbols = "false"
FileAlignment = "4096"
IncrementalBuild = "false"
Optimize = "true"
OutputPath = "bin\Release\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
</Settings>
<References>
<Reference
Name = "System"
AssemblyName = "System"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
/>
<Reference
Name = "System.Data"
AssemblyName = "System.Data"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll"
/>
<Reference
Name = "System.XML"
AssemblyName = "System.Xml"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll"
/>
<Reference
Name = "System.Drawing"
AssemblyName = "System.Drawing"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll"
/>
<Reference
Name = "System.Windows.Forms"
AssemblyName = "System.Windows.Forms"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll"
/>
</References>
</Build>
<Files>
<Include>
<File
RelPath = "AssemblyInfo.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "PhysFS.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "PhysFS_DLL.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "PhysFSFileStream.cs"
SubType = "Code"
BuildAction = "Compile"
/>
</Include>
</Files>
</CSHARP>
</VisualStudioProject>
+21
View File
@@ -0,0 +1,21 @@
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PhysFS.NET", "PhysFS.NET.csproj", "{C6205A43-3D4D-41E6-872C-96CD7BE55230}"
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
ConfigName.0 = Debug
ConfigName.1 = Release
EndGlobalSection
GlobalSection(ProjectDependencies) = postSolution
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{C6205A43-3D4D-41E6-872C-96CD7BE55230}.Debug.ActiveCfg = Debug|.NET
{C6205A43-3D4D-41E6-872C-96CD7BE55230}.Debug.Build.0 = Debug|.NET
{C6205A43-3D4D-41E6-872C-96CD7BE55230}.Release.ActiveCfg = Release|.NET
{C6205A43-3D4D-41E6-872C-96CD7BE55230}.Release.Build.0 = Release|.NET
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal
+189
View File
@@ -0,0 +1,189 @@
/* PhysFS.cs - (c)2003 Gregory S. Read
* Provides access to PhysFS API calls not specific to file handle access.
*/
using System;
namespace PhysFS_NET
{
public class PhysFS
{
/* Initialize
* Inits the PhysFS API. This normally does not need to be called unless
* the API has been manually deinitialized since the PhysFS_DLL class
* initializes just before the first call is made into the DLL.
* Parameters
* none
* Returns
* none
* Exceptions
* PhysFSException - An error occured in the PhysFS API
*/
public static void Initialize()
{
// Initialize the physfs library, raise an exception if error
if(PhysFS_DLL.PHYSFS_init("") == 0)
throw new PhysFSException();
}
/* Deinitialize
* Deinits the PhysFS API. It is recommended that this method be called
* by the application before exiting in order to gracefully deallocate
* resources and close all filehandles, etc.
* Parameters
* none
* Returns
* none
* Exceptions
* PhysFSException - An error occured in the PhysFS API
*/
public static void Deinitialize()
{
// Deinit, raise an exception if an error occured
if(PhysFS_DLL.PHYSFS_deinit() == 0)
throw new PhysFSException();
}
/* BaseDir
* Gets the base directory configured for PhysFS. See the PhysFS API
* documentation for more information.
* Parameters
* none
* Returns
* A string value representing the Base Directory
* Exceptions
* none
*/
public static string BaseDir
{
get
{
// Return the current base directory
return PhysFS_DLL.PHYSFS_getBaseDir();
}
}
/* WriteDir
* Gets or sets the write directory configured for PhysFS. See the PhysFS API
* documentation for more information.
* Parameters
* set - Path to set the WriteDir property to
* Returns
* A string value representing the Write Directory
* Exceptions
* PhysFSException - An error occured in the PhysFS API when
* settings the write directory.
*/
public static string WriteDir
{
get
{
// Return the current write directory
return PhysFS_DLL.PHYSFS_getWriteDir();
}
set
{
// Set the write directory and raise an exception if an error occured
if(PhysFS_DLL.PHYSFS_setWriteDir(value) == 0)
throw new PhysFSException();
}
}
/* UserDir
* Gets or sets the write directory configured for PhysFS. See the PhysFS API
* documentation for more information.
* Parameters
* set - Path to set the WriteDir property to
* Returns
* A string value representing the Write Directory
* Exceptions
* PhysFSException - An error occured in the PhysFS API when
* settings the write directory.
*/
public static string UserDir
{
get
{
// Return the current user directory
return PhysFS_DLL.PHYSFS_getUserDir();
}
}
public static void AddToSearchPath(string NewDir, bool Append)
{
if(PhysFS_DLL.PHYSFS_addToSearchPath(NewDir, Append?1:0) == 0)
throw new PhysFSException();
}
public static void RemoveFromSearchPath(string OldDir)
{
if(PhysFS_DLL.PHYSFS_removeFromSearchPath(OldDir) == 0)
throw new PhysFSException();
}
public unsafe static string[] GetSearchPath()
{
byte** p; // Searchpath list from PhysFS dll
string[] pathlist; // List converted to an array
// Get the CDROM drive listing
p = PhysFS_DLL.PHYSFS_getSearchPath();
// Convert the C-style array to a .NET style array
pathlist = PhysFS_DLL.BytePPToArray(p);
// Free the original list since we're done with it
PhysFS_DLL.PHYSFS_freeList(p);
return pathlist;
}
public unsafe static string[] GetCDROMDrives()
{
byte** p; // CDROM list from PhysFS dll
string[] cdromlist; // List converted to an array
// Get the CDROM drive listing
p = PhysFS_DLL.PHYSFS_getCdRomDirs();
// Convert the C-style array to a .NET style array
cdromlist = PhysFS_DLL.BytePPToArray(p);
// Free the original list since we're done with it
PhysFS_DLL.PHYSFS_freeList(p);
return cdromlist;
}
public static void MkDir(string Dirname)
{
if(PhysFS_DLL.PHYSFS_mkdir(Dirname) == 0)
throw new PhysFSException();
}
public static void Delete(string Filename)
{
if(PhysFS_DLL.PHYSFS_delete(Filename) == 0)
throw new PhysFSException();
}
public static string GetRealDir(string Filename)
{
string RetValue;
RetValue = PhysFS_DLL.PHYSFS_getRealDir(Filename);
if(RetValue == null)
throw new PhysFSException("File not found in search path.");
// Return the real file path of the specified filename
return RetValue;
}
public unsafe static string[] EnumerateFiles(string Dirname)
{
byte** p; // File list from PhysFS dll
string[] filelist; // List converted to an array
// Get the CDROM drive listing
p = PhysFS_DLL.PHYSFS_enumerateFiles(Dirname);
// Convert the C-style array to a .NET style array
filelist = PhysFS_DLL.BytePPToArray(p);
// Free the original list since we're done with it
PhysFS_DLL.PHYSFS_freeList(p);
return filelist;
}
public static bool IsDirectory(string Filename)
{
// Return true if non-zero, otherwise return false
return (PhysFS_DLL.PHYSFS_isDirectory(Filename) == 0)?false:true;
}
}
}
+194
View File
@@ -0,0 +1,194 @@
/* PhysFSFileStream.cs - (c)2003 Gregory S. Read */
using System;
using System.Collections;
using System.IO;
namespace PhysFS_NET
{
public enum PhysFSFileMode {Read, Write, Append};
// Our exception class we'll use for throwing all PhysFS API related exception
public class PhysFSException : IOException
{
public PhysFSException(string Message) : base(Message) {}
public PhysFSException() : base(PhysFS_DLL.PHYSFS_getLastError()) {}
}
public unsafe class PhysFSFileStream : Stream
{
// ***Public properties***
public override bool CanRead
{
get
{
// Reading is supported
return true;
}
}
public override bool CanSeek
{
get
{
// Seek is supported
return true;
}
}
public override bool CanWrite
{
get
{
// Writing is supported
return true;
}
}
public override long Length
{
get
{
long TempLength;
TempLength = PhysFS_DLL.PHYSFS_fileLength(pHandle);
// If call returned an error, throw an exception
if(TempLength == -1)
throw new PhysFSException();
return TempLength;
}
}
public override long Position
{
get
{
long TempPosition;
TempPosition = PhysFS_DLL.PHYSFS_tell(pHandle);
// If call returned an error, throw an exception
if(TempPosition == -1)
throw new PhysFSException();
return TempPosition;
}
set
{
// Seek from beginning of file using the position value
Seek(value, SeekOrigin.Begin);
}
}
// ***Public methods***
public PhysFSFileStream(string FileName, PhysFSFileMode FileMode, ulong BufferSize)
{
// Open the specified file with the appropriate file access
switch(FileMode)
{
case PhysFSFileMode.Read:
pHandle = PhysFS_DLL.PHYSFS_openRead(FileName);
break;
case PhysFSFileMode.Write:
pHandle = PhysFS_DLL.PHYSFS_openWrite(FileName);
break;
case PhysFSFileMode.Append:
pHandle = PhysFS_DLL.PHYSFS_openAppend(FileName);
break;
default:
throw new PhysFSException("Invalid FileMode specified");
}
// If handle is null, an error occured, so raise an exception
//!!! Does object get created if exception is thrown?
if(pHandle == null)
throw new PhysFSException();
// Set buffer size, raise an exception if an error occured
if(PhysFS_DLL.PHYSFS_setBuffer(pHandle, BufferSize) == 0)
throw new PhysFSException();
}
// This constructor sets the buffer size to 0 if not specified
public PhysFSFileStream(string FileName, PhysFSFileMode FileMode) : this(FileName, FileMode, 0) {}
~PhysFSFileStream()
{
// Don't close the handle if they've specifically closed it already
if(!Closed)
Close();
}
public override void Flush()
{
if(PhysFS_DLL.PHYSFS_flush(pHandle) == 0)
throw new PhysFSException();
}
public override int Read(byte[] buffer, int offset, int count)
{
long RetValue;
fixed(byte *pbytes = &buffer[offset])
{
// Read into our allocated pointer
RetValue = PhysFS_DLL.PHYSFS_read(pHandle, pbytes, sizeof(byte), (uint)count);
}
if(RetValue == -1)
throw new PhysFSException();
// Return number of bytes read
// Note: This cast should be safe since we are only reading 'count' items, which
// is of type 'int'.
return (int)RetValue;
}
public override void Write(byte[] buffer, int offset, int count)
{
long RetValue;
fixed(byte* pbytes = &buffer[offset])
{
// Write buffer
RetValue = PhysFS_DLL.PHYSFS_write(pHandle, pbytes, sizeof(byte), (uint)count);
}
if(RetValue == -1)
throw new PhysFSException();
}
public override long Seek(long offset, SeekOrigin origin)
{
// Only seeking from beginning is supported by PhysFS API
if(origin != SeekOrigin.Begin)
throw new PhysFSException("Only seek origin of \"Begin\" is supported");
// Seek to specified offset, raise an exception if error occured
if(PhysFS_DLL.PHYSFS_seek(pHandle, (ulong)offset) == 0)
throw new PhysFSException();
// Since we always seek from beginning, the offset is always
// the absolute position.
return offset;
}
public override void SetLength(long value)
{
throw new NotSupportedException("SetLength method not supported in PhysFSFileStream objects.");
}
public override void Close()
{
// Close the handle
if(PhysFS_DLL.PHYSFS_close(pHandle) == 0)
throw new PhysFSException();
// File has been closed. Rock.
Closed = true;
}
// ***Private variables***
private void *pHandle;
private bool Closed = false;
}
}
+113
View File
@@ -0,0 +1,113 @@
/* PhysFS_DLL - (c)2003 Gregory S. Read
* Internal class that provides direct access to the PhysFS DLL. It is
* not accessible outside of the PhysFS.NET assembly.
*/
using System.Collections;
using System.Runtime.InteropServices;
namespace PhysFS_NET
{
internal class PhysFS_DLL
{
/* Static constructor
* Initializes the PhysFS API before any method is called in this class. This
* relieves the user from having to explicitly initialize the API.
* Parameters
* none
* Returns
* none
* Exceptions
* PhysFSException - An error occured in the PhysFS API
*/
static PhysFS_DLL()
{
if(PHYSFS_init("") == 0)
throw new PhysFSException();
}
/* BytePPToArray
* Converts a C-style string array into a .NET managed string array
* Parameters
* C-style string array pointer returned from PhysFS
* Returns
* .NET managed string array
* Exceptions
* none
*/
public unsafe static string[] BytePPToArray(byte **bytearray)
{
byte** ptr;
byte* c;
string tempstr;
ArrayList MyArrayList = new ArrayList();
string[] RetArray;
for(ptr = bytearray; *ptr != null; ptr++)
{
tempstr = "";
for(c = *ptr; *c != 0; c++)
{
tempstr += (char)*c;
}
// Add string to our list
MyArrayList.Add(tempstr);
}
// Return a normal array of the list
RetArray = new string[MyArrayList.Count];
MyArrayList.CopyTo(RetArray, 0);
return RetArray;
}
// Name of DLL to import
private const string PHYSFS_DLLNAME = "physfs.dll";
// DLL import declarations
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_init(string argv0);
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_deinit();
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe void PHYSFS_freeList(void *listVar);
[DllImport(PHYSFS_DLLNAME)] public static extern string PHYSFS_getLastError();
[DllImport(PHYSFS_DLLNAME)] public static extern string PHYSFS_getDirSeparator();
[DllImport(PHYSFS_DLLNAME)] public static extern void PHYSFS_permitSymbolicLinks(int allow);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe byte** PHYSFS_getCdRomDirs();
[DllImport(PHYSFS_DLLNAME)] public static extern string PHYSFS_getBaseDir();
[DllImport(PHYSFS_DLLNAME)] public static extern string PHYSFS_getUserDir();
[DllImport(PHYSFS_DLLNAME)] public static extern string PHYSFS_getWriteDir();
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_setWriteDir(string newDir);
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_addToSearchPath(string newDir, int appendToPath);
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_removeFromSearchPath(string oldDir);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe byte** PHYSFS_getSearchPath();
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_setSaneConfig(string organization,
string appName,
string archiveExt,
int includeCdRoms,
int archivesFirst);
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_mkdir(string dirName);
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_delete(string filename);
[DllImport(PHYSFS_DLLNAME)] public static extern string PHYSFS_getRealDir(string filename);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe byte** PHYSFS_enumerateFiles(string dir);
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_exists(string fname);
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_isDirectory(string fname);
[DllImport(PHYSFS_DLLNAME)] public static extern int PHYSFS_isSymbolicLink(string fname);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe void* PHYSFS_openWrite(string filename);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe void* PHYSFS_openAppend(string filename);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe void* PHYSFS_openRead(string filename);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe int PHYSFS_close(void* handle);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe long PHYSFS_getLastModTime(string filename);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe long PHYSFS_read(void* handle,
void *buffer,
uint objSize,
uint objCount);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe long PHYSFS_write(void* handle,
void *buffer,
uint objSize,
uint objCount);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe int PHYSFS_eof(void* handle);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe long PHYSFS_tell(void* handle);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe int PHYSFS_seek(void* handle, ulong pos);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe long PHYSFS_fileLength(void* handle);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe int PHYSFS_setBuffer(void* handle, ulong bufsize);
[DllImport(PHYSFS_DLLNAME)] public static extern unsafe int PHYSFS_flush(void* handle);
}
}
+10
View File
@@ -0,0 +1,10 @@
PhysFS.NET is a library that encapsulates the PhysFS API into a .NET assembly.
There are two class objects that are exposed in the assembly:
PhysFS.cs
This class exposes any non-filehandle specific functionality contained in
the PhysFS library.
PhysFSFileStream.cs
A System.IO.Stream derived class which provides file access via the
PhysFS API. Usage of this object is identical to a standard stream
object.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+58
View File
@@ -0,0 +1,58 @@
using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
+116
View File
@@ -0,0 +1,116 @@
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.0.9466"
SchemaVersion = "1.0"
ProjectGuid = "{9C1ECC6B-16C7-42B3-BF7C-8BA8D81BA980}"
>
<Build>
<Settings
ApplicationIcon = "App.ico"
AssemblyKeyContainerName = ""
AssemblyName = "TestApp"
AssemblyOriginatorKeyFile = ""
DefaultClientScript = "JScript"
DefaultHTMLPageLayout = "Grid"
DefaultTargetSchema = "IE50"
DelaySign = "false"
OutputType = "WinExe"
RootNamespace = "TestApp"
StartupObject = ""
>
<Config
Name = "Debug"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "DEBUG;TRACE"
DocumentationFile = ""
DebugSymbols = "true"
FileAlignment = "4096"
IncrementalBuild = "true"
Optimize = "false"
OutputPath = "bin\Debug\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
<Config
Name = "Release"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "TRACE"
DocumentationFile = ""
DebugSymbols = "false"
FileAlignment = "4096"
IncrementalBuild = "false"
Optimize = "true"
OutputPath = "bin\Release\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
</Settings>
<References>
<Reference
Name = "System"
AssemblyName = "System"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
/>
<Reference
Name = "System.Data"
AssemblyName = "System.Data"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll"
/>
<Reference
Name = "System.Drawing"
AssemblyName = "System.Drawing"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll"
/>
<Reference
Name = "System.Windows.Forms"
AssemblyName = "System.Windows.Forms"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll"
/>
<Reference
Name = "System.XML"
AssemblyName = "System.Xml"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll"
/>
<Reference
Name = "PhysFS.NET"
Project = "{C6205A43-3D4D-41E6-872C-96CD7BE55230}"
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
/>
</References>
</Build>
<Files>
<Include>
<File
RelPath = "App.ico"
BuildAction = "Content"
/>
<File
RelPath = "AssemblyInfo.cs"
BuildAction = "Compile"
/>
<File
RelPath = "TestAppForm.cs"
SubType = "Form"
BuildAction = "Compile"
/>
<File
RelPath = "TestAppForm.resx"
DependentUpon = "TestAppForm.cs"
BuildAction = "EmbeddedResource"
/>
</Include>
</Files>
</CSHARP>
</VisualStudioProject>
+27
View File
@@ -0,0 +1,27 @@
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApp", "TestApp.csproj", "{9C1ECC6B-16C7-42B3-BF7C-8BA8D81BA980}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PhysFS.NET", "..\PhysFS.NET.csproj", "{C6205A43-3D4D-41E6-872C-96CD7BE55230}"
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
ConfigName.0 = Debug
ConfigName.1 = Release
EndGlobalSection
GlobalSection(ProjectDependencies) = postSolution
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{9C1ECC6B-16C7-42B3-BF7C-8BA8D81BA980}.Debug.ActiveCfg = Debug|.NET
{9C1ECC6B-16C7-42B3-BF7C-8BA8D81BA980}.Debug.Build.0 = Debug|.NET
{9C1ECC6B-16C7-42B3-BF7C-8BA8D81BA980}.Release.ActiveCfg = Release|.NET
{9C1ECC6B-16C7-42B3-BF7C-8BA8D81BA980}.Release.Build.0 = Release|.NET
{C6205A43-3D4D-41E6-872C-96CD7BE55230}.Debug.ActiveCfg = Debug|.NET
{C6205A43-3D4D-41E6-872C-96CD7BE55230}.Debug.Build.0 = Debug|.NET
{C6205A43-3D4D-41E6-872C-96CD7BE55230}.Release.ActiveCfg = Release|.NET
{C6205A43-3D4D-41E6-872C-96CD7BE55230}.Release.Build.0 = Release|.NET
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal
+274
View File
@@ -0,0 +1,274 @@
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
using PhysFS_NET;
namespace TestApp
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class TestAppForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button RefreshCDsButton;
private System.Windows.Forms.ListBox CDDrivesList;
private System.Windows.Forms.ListBox SearchPathList;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox EnumFilesPath;
private System.Windows.Forms.ListBox EnumList;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox NewSearchPathText;
private System.Windows.Forms.Button AddSearchPathButton;
private System.Windows.Forms.Button RemovePathButton;
private System.Windows.Forms.Button RefreshEnumList;
private System.Windows.Forms.Button RefreshSearchPathButton;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public TestAppForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label2 = new System.Windows.Forms.Label();
this.RefreshCDsButton = new System.Windows.Forms.Button();
this.CDDrivesList = new System.Windows.Forms.ListBox();
this.SearchPathList = new System.Windows.Forms.ListBox();
this.label1 = new System.Windows.Forms.Label();
this.EnumFilesPath = new System.Windows.Forms.TextBox();
this.EnumList = new System.Windows.Forms.ListBox();
this.label3 = new System.Windows.Forms.Label();
this.RefreshEnumList = new System.Windows.Forms.Button();
this.NewSearchPathText = new System.Windows.Forms.TextBox();
this.AddSearchPathButton = new System.Windows.Forms.Button();
this.RemovePathButton = new System.Windows.Forms.Button();
this.RefreshSearchPathButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label2
//
this.label2.Location = new System.Drawing.Point(8, 8);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(136, 16);
this.label2.TabIndex = 2;
this.label2.Text = "Available CD-ROM Drives";
//
// RefreshCDsButton
//
this.RefreshCDsButton.Location = new System.Drawing.Point(8, 152);
this.RefreshCDsButton.Name = "RefreshCDsButton";
this.RefreshCDsButton.Size = new System.Drawing.Size(72, 24);
this.RefreshCDsButton.TabIndex = 4;
this.RefreshCDsButton.Text = "Refresh";
this.RefreshCDsButton.Click += new System.EventHandler(this.RefreshCDsButton_Click);
//
// CDDrivesList
//
this.CDDrivesList.Location = new System.Drawing.Point(8, 24);
this.CDDrivesList.Name = "CDDrivesList";
this.CDDrivesList.Size = new System.Drawing.Size(136, 121);
this.CDDrivesList.TabIndex = 7;
//
// SearchPathList
//
this.SearchPathList.Location = new System.Drawing.Point(152, 24);
this.SearchPathList.Name = "SearchPathList";
this.SearchPathList.Size = new System.Drawing.Size(248, 95);
this.SearchPathList.TabIndex = 8;
//
// label1
//
this.label1.Location = new System.Drawing.Point(152, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(136, 16);
this.label1.TabIndex = 10;
this.label1.Text = "Search Path";
//
// EnumFilesPath
//
this.EnumFilesPath.Location = new System.Drawing.Point(408, 128);
this.EnumFilesPath.Name = "EnumFilesPath";
this.EnumFilesPath.Size = new System.Drawing.Size(208, 20);
this.EnumFilesPath.TabIndex = 11;
this.EnumFilesPath.Text = "";
//
// EnumList
//
this.EnumList.Location = new System.Drawing.Point(408, 24);
this.EnumList.Name = "EnumList";
this.EnumList.Size = new System.Drawing.Size(208, 95);
this.EnumList.TabIndex = 12;
//
// label3
//
this.label3.Location = new System.Drawing.Point(408, 8);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(136, 16);
this.label3.TabIndex = 13;
this.label3.Text = "Enumerate Files";
//
// RefreshEnumList
//
this.RefreshEnumList.Location = new System.Drawing.Point(544, 152);
this.RefreshEnumList.Name = "RefreshEnumList";
this.RefreshEnumList.Size = new System.Drawing.Size(72, 24);
this.RefreshEnumList.TabIndex = 14;
this.RefreshEnumList.Text = "Refresh";
this.RefreshEnumList.Click += new System.EventHandler(this.RefreshEnumList_Click);
//
// NewSearchPathText
//
this.NewSearchPathText.Location = new System.Drawing.Point(152, 128);
this.NewSearchPathText.Name = "NewSearchPathText";
this.NewSearchPathText.Size = new System.Drawing.Size(248, 20);
this.NewSearchPathText.TabIndex = 15;
this.NewSearchPathText.Text = "";
//
// AddSearchPathButton
//
this.AddSearchPathButton.Location = new System.Drawing.Point(152, 152);
this.AddSearchPathButton.Name = "AddSearchPathButton";
this.AddSearchPathButton.Size = new System.Drawing.Size(72, 24);
this.AddSearchPathButton.TabIndex = 9;
this.AddSearchPathButton.Text = "Add Path";
this.AddSearchPathButton.Click += new System.EventHandler(this.AddSearchPathButton_Click);
//
// RemovePathButton
//
this.RemovePathButton.Location = new System.Drawing.Point(232, 152);
this.RemovePathButton.Name = "RemovePathButton";
this.RemovePathButton.Size = new System.Drawing.Size(88, 24);
this.RemovePathButton.TabIndex = 16;
this.RemovePathButton.Text = "Remove Path";
this.RemovePathButton.Click += new System.EventHandler(this.RemovePathButton_Click);
//
// RefreshSearchPathButton
//
this.RefreshSearchPathButton.Location = new System.Drawing.Point(328, 152);
this.RefreshSearchPathButton.Name = "RefreshSearchPathButton";
this.RefreshSearchPathButton.Size = new System.Drawing.Size(72, 24);
this.RefreshSearchPathButton.TabIndex = 17;
this.RefreshSearchPathButton.Text = "Refresh";
this.RefreshSearchPathButton.Click += new System.EventHandler(this.RefreshSearchPathButton_Click);
//
// TestAppForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(624, 309);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.RefreshSearchPathButton,
this.RemovePathButton,
this.NewSearchPathText,
this.RefreshEnumList,
this.label3,
this.EnumList,
this.EnumFilesPath,
this.label1,
this.SearchPathList,
this.CDDrivesList,
this.RefreshCDsButton,
this.label2,
this.AddSearchPathButton});
this.Name = "TestAppForm";
this.Text = "PhysFS Test Application";
this.Load += new System.EventHandler(this.TestAppForm_Load);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new TestAppForm());
}
private void TestAppForm_Load(object sender, System.EventArgs e)
{
}
private void RefreshCDsButton_Click(object sender, System.EventArgs e)
{
// Clear ths listbox if it contains any items
CDDrivesList.Items.Clear();
// Add the items to the list
CDDrivesList.Items.AddRange(PhysFS.GetCDROMDrives());
}
private void RefreshSearchPathButton_Click(object sender, System.EventArgs e)
{
// Clear ths listbox if it contains any items
SearchPathList.Items.Clear();
// Add the items to the list
SearchPathList.Items.AddRange(PhysFS.GetSearchPath());
}
private void AddSearchPathButton_Click(object sender, System.EventArgs e)
{
// Add search path
PhysFS.AddToSearchPath(NewSearchPathText.Text, false);
// Clear ths listbox if it contains any items
SearchPathList.Items.Clear();
// Add the items to the list
SearchPathList.Items.AddRange(PhysFS.GetSearchPath());
}
private void RemovePathButton_Click(object sender, System.EventArgs e)
{
if(SearchPathList.SelectedItem != null)
{
PhysFS.RemoveFromSearchPath(SearchPathList.SelectedItem.ToString());
// Clear ths listbox if it contains any items
SearchPathList.Items.Clear();
// Add the items to the list
SearchPathList.Items.AddRange(PhysFS.GetSearchPath());
}
}
private void RefreshEnumList_Click(object sender, System.EventArgs e)
{
EnumList.Items.Clear();
EnumList.Items.AddRange(PhysFS.EnumerateFiles(EnumFilesPath.Text));
}
}
}
+102
View File
@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 1.3
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">1.3</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1">this is my long string</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
[base64 mime encoded serialized .NET Framework object]
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
[base64 mime encoded string representing a byte array form of the .NET Framework object]
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="$this.Name">
<value>TestAppForm</value>
</data>
</root>
+165
View File
@@ -0,0 +1,165 @@
/*
* stdio/physfs abstraction layer 2003-04-02
*
* Adam D. Moss <adam@gimp.org> <aspirin@icculus.org>
*
* These wrapper macros and functions are designed to allow a program
* to perform file I/O with identical semantics and syntax regardless
* of whether PhysicsFS is being used or not.
*/
#ifndef _ABS_FILE_H
#define _ABS_FILE_H
/*
PLEASE NOTE: This license applies to abs-file.h ONLY (to make it clear that
you may embed this wrapper code within commercial software); PhysicsFS itself
is (at the time of writing) released under a different license with
additional restrictions.
Copyright (C) 2002-2003 Adam D. Moss (the "Author"). All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is fur-
nished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON-
NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of the Author of the
Software shall not be used in advertising or otherwise to promote the sale,
use or other dealings in this Software without prior written authorization
from the Author.
*/
#include <stdlib.h>
#include <stdio.h>
/*
* API:
*
* Macro/function use like stdio equivalent...
* -------------- ----------------------------
* MY_FILETYPE FILE
* MY_OPEN_FOR_READ fopen(..., "rb")
* MY_READ fread(...)
* MY_CLOSE fclose(...)
* MY_GETC fgetc(...)
* MY_GETS fgets(...)
* MY_ATEOF feof(...)
* MY_TELL ftell(...)
* MY_SEEK fseek(..., SEEK_SET)
* MY_REWIND rewind(...)
* MY_SETBUFFER (not a standard for stdio, does nothing there)
*/
/*
* Important DEFINEs:
* It is important to define these consistantly across the various
* compilation modules of your program if you wish to exchange file
* handles between them.
*
* USE_PHYSFS: Define USE_PHYSFS if PhysicsFS is being used; note that if
* you do intend to use PhysicsFS then you will still need to initialize
* PhysicsFS yourself and set up its search-paths.
*
* Optional DEFINEs:
*
* PHYSFS_DEFAULT_READ_BUFFER <bytes>: If set then abs-file.h sets the
* PhysicsFS buffer size to this value whenever you open a file. You
* may over-ride this on a per-filehandle basis by using the
* MY_SETBUFFER() macro (which simply does nothing when not using
* PhysicsFS). If you have not defined this value explicitly then
* abs-file.h will default to the same default buffer size as used by
* stdio if it can be determined, or 8192 bytes otherwise.
*/
#ifndef PHYSFS_DEFAULT_READ_BUFFER
#ifdef BUFSIZ
#define PHYSFS_DEFAULT_READ_BUFFER BUFSIZ
#else
#define PHYSFS_DEFAULT_READ_BUFFER 8192
#endif
#endif
#ifdef USE_PHYSFS
#include <physfs.h>
#define MY_FILETYPE PHYSFS_File
#define MY_SETBUFFER(fp,size) PHYSFS_setBuffer(fp,size)
#define MY_READ(p,s,n,fp) PHYSFS_read(fp,p,s,n)
#if PHYSFS_DEFAULT_READ_BUFFER
static MY_FILETYPE* MY_OPEN_FOR_READ(const char *const filename)
{
MY_FILETYPE *const file = PHYSFS_openRead(filename);
if (file) {
MY_SETBUFFER(file, PHYSFS_DEFAULT_READ_BUFFER);
}
return file;
}
#else
#define MY_OPEN_FOR_READ(fn) PHYSFS_openRead(fn)
#endif
static int MY_GETC(MY_FILETYPE *const fp) {
unsigned char c;
/*if (PHYSFS_eof(fp)) {
return EOF;
}
MY_READ(&c, 1, 1, fp);*/
if (MY_READ(&c, 1, 1, fp) != 1) {
return EOF;
}
return c;
}
static char * MY_GETS(char * const str, const int size,
MY_FILETYPE *const fp) {
int i = 0;
int c;
do {
if (i == size-1) {
break;
}
c = MY_GETC(fp);
if (c == EOF) {
break;
}
str[i++] = c;
} while (c != '\0' &&
c != -1 &&
c != '\n');
str[i] = '\0';
if (i == 0) {
return NULL;
}
return str;
}
#define MY_CLOSE(fp) PHYSFS_close(fp)
#define MY_ATEOF(fp) PHYSFS_eof(fp)
#define MY_TELL(fp) PHYSFS_tell(fp)
#define MY_SEEK(fp,o) PHYSFS_seek(fp,o)
#define MY_REWIND(fp) MY_SEEK(fp,0)
#else
#define MY_FILETYPE FILE
#define MY_READ(p,s,n,fp) fread(p,s,n,fp)
#define MY_OPEN_FOR_READ(n) fopen(n, "rb")
#define MY_GETC(fp) fgetc(fp)
#define MY_GETS(str,size,fp) fgets(str,size,fp)
#define MY_CLOSE(fp) fclose(fp)
#define MY_ATEOF(fp) feof(fp)
#define MY_TELL(fp) ftell(fp)
#define MY_SEEK(fp,o) fseek(fp,o, SEEK_SET)
#define MY_REWIND(fp) rewind(fp)
/*static void MY_SETBUFFER(const MY_FILETYPE *const file, const int num) { }*/
#define MY_SETBUFFER(fp,size)
#endif
#endif
File diff suppressed because it is too large Load Diff
+159
View File
@@ -0,0 +1,159 @@
/** \file globbing.c */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "physfs.h"
#include "globbing.h"
/**
* Please see globbing.h for details.
*
* License: this code is public domain. I make no warranty that it is useful,
* correct, harmless, or environmentally safe.
*
* This particular file may be used however you like, including copying it
* verbatim into a closed-source project, exploiting it commercially, and
* removing any trace of my name from the source (although I hope you won't
* do that). I welcome enhancements and corrections to this file, but I do
* not require you to send me patches if you make changes. This code has
* NO WARRANTY.
*
* Unless otherwise stated, the rest of PhysicsFS falls under the zlib license.
* Please see LICENSE.txt in the root of the source tree.
*
* \author Ryan C. Gordon.
*/
static int matchesPattern(const char *fname, const char *wildcard,
int caseSensitive)
{
char x, y;
const char *fnameptr = fname;
const char *wildptr = wildcard;
while ((*wildptr) && (*fnameptr))
{
y = *wildptr;
if (y == '*')
{
do
{
wildptr++; /* skip multiple '*' in a row... */
} while (*wildptr == '*');
y = (caseSensitive) ? *wildptr : (char) tolower(*wildptr);
while (1)
{
x = (caseSensitive) ? *fnameptr : (char) tolower(*fnameptr);
if ((!x) || (x == y))
break;
else
fnameptr++;
} /* while */
} /* if */
else if (y == '?')
{
wildptr++;
fnameptr++;
} /* else if */
else
{
if (caseSensitive)
x = *fnameptr;
else
{
x = tolower(*fnameptr);
y = tolower(y);
} /* if */
wildptr++;
fnameptr++;
if (x != y)
return(0);
} /* else */
} /* while */
while (*wildptr == '*')
wildptr++;
return(*fnameptr == *wildptr);
} /* matchesPattern */
char **PHYSFSEXT_enumerateFilesWildcard(const char *dir, const char *wildcard,
int caseSensitive)
{
char **rc = PHYSFS_enumerateFiles(dir);
char **i = rc;
char **j;
while (*i != NULL)
{
if (matchesPattern(*i, wildcard, caseSensitive))
i++;
else
{
/* FIXME: This counts on physfs's allocation method not changing! */
free(*i);
for (j = i; *j != NULL; j++)
j[0] = j[1];
} /* else */
} /* for */
return(rc);
} /* PHYSFSEXT_enumerateFilesWildcard */
#ifdef TEST_PHYSFSEXT_ENUMERATEFILESWILDCARD
int main(int argc, char **argv)
{
int rc;
char **flist;
char **i;
if (argc != 3)
{
printf("USAGE: %s <pattern> <caseSen>\n"
" where <caseSen> is 1 or 0.\n", argv[0]);
return(1);
} /* if */
if (!PHYSFS_init(argv[0]))
{
fprintf(stderr, "PHYSFS_init(): %s\n", PHYSFS_getLastError());
return(1);
} /* if */
if (!PHYSFS_addToSearchPath(".", 1))
{
fprintf(stderr, "PHYSFS_addToSearchPath(): %s\n", PHYSFS_getLastError());
PHYSFS_deinit();
return(1);
} /* if */
flist = PHYSFSEXT_enumerateFilesWildcard("/", argv[1], atoi(argv[2]));
rc = 0;
for (i = flist; *i; i++)
{
printf("%s\n", *i);
rc++;
} /* for */
printf("\n total %d files.\n\n", rc);
PHYSFS_freeList(flist);
PHYSFS_deinit();
return(0);
} /* main */
#endif
/* end of globbing.c ... */
+77
View File
@@ -0,0 +1,77 @@
/** \file globbing.h */
/**
* \mainpage PhysicsFS globbing
*
* This is an extension to PhysicsFS to let you search for files with basic
* wildcard matching, regardless of what sort of filesystem or archive they
* reside in. It does this by enumerating directories as needed and manually
* locating matching entries.
*
* Usage: Set up PhysicsFS as you normally would, then use
* PHYSFSEXT_enumerateFilesPattern() when enumerating files. This is just
* like PHYSFS_enumerateFiles(), but it returns a subset that matches your
* wildcard pattern. You must call PHYSFS_freeList() on the results, just
* like you would with PHYSFS_enumerateFiles().
*
* License: this code is public domain. I make no warranty that it is useful,
* correct, harmless, or environmentally safe.
*
* This particular file may be used however you like, including copying it
* verbatim into a closed-source project, exploiting it commercially, and
* removing any trace of my name from the source (although I hope you won't
* do that). I welcome enhancements and corrections to this file, but I do
* not require you to send me patches if you make changes. This code has
* NO WARRANTY.
*
* Unless otherwise stated, the rest of PhysicsFS falls under the zlib license.
* Please see LICENSE.txt in the root of the source tree.
*
* \author Ryan C. Gordon.
*/
/**
* \fn char **PHYSFS_enumerateFilesWildcard(const char *dir, const char *wildcard, int caseSensitive)
* \brief Get a file listing of a search path's directory.
*
* Matching directories are interpolated. That is, if "C:\mydir" is in the
* search path and contains a directory "savegames" that contains "x.sav",
* "y.Sav", and "z.txt", and there is also a "C:\userdir" in the search path
* that has a "savegames" subdirectory with "w.sav", then the following code:
*
* \code
* char **rc = PHYSFS_enumerateFilesWildcard("savegames", "*.sav", 0);
* char **i;
*
* for (i = rc; *i != NULL; i++)
* printf(" * We've got [%s].\n", *i);
*
* PHYSFS_freeList(rc);
* \endcode
*
* ...will print:
*
* \verbatim
* We've got [x.sav].
* We've got [y.Sav].
* We've got [w.sav].\endverbatim
*
* Feel free to sort the list however you like. We only promise there will
* be no duplicates, but not what order the final list will come back in.
*
* Wildcard strings can use the '*' and '?' characters, currently.
* Matches can be case-insensitive if you pass a zero for argument 3.
*
* Don't forget to call PHYSFS_freeList() with the return value from this
* function when you are done with it.
*
* \param dir directory in platform-independent notation to enumerate.
* \return Null-terminated array of null-terminated strings.
*/
__EXPORT__ char **PHYSFSEXT_enumerateFilesWildcard(const char *dir,
const char *wildcard,
int caseSensitive);
/* end of globbing.h ... */
+219
View File
@@ -0,0 +1,219 @@
/** \file ignorecase.c */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "physfs.h"
#include "ignorecase.h"
/**
* Please see ignorecase.h for details.
*
* License: this code is public domain. I make no warranty that it is useful,
* correct, harmless, or environmentally safe.
*
* This particular file may be used however you like, including copying it
* verbatim into a closed-source project, exploiting it commercially, and
* removing any trace of my name from the source (although I hope you won't
* do that). I welcome enhancements and corrections to this file, but I do
* not require you to send me patches if you make changes. This code has
* NO WARRANTY.
*
* Unless otherwise stated, the rest of PhysicsFS falls under the zlib license.
* Please see LICENSE.txt in the root of the source tree.
*
* \author Ryan C. Gordon.
*/
/* I'm not screwing around with stricmp vs. strcasecmp... */
/* !!! FIXME: this will NOT work with UTF-8 strings in physfs2.0 */
static int caseInsensitiveStringCompare(const char *x, const char *y)
{
int ux, uy;
do
{
ux = toupper((int) *x);
uy = toupper((int) *y);
if (ux != uy)
return((ux > uy) ? 1 : -1);
x++;
y++;
} while ((ux) && (uy));
return(0);
} /* caseInsensitiveStringCompare */
static int locateOneElement(char *buf)
{
char *ptr;
char **rc;
char **i;
if (PHYSFS_exists(buf))
return(1); /* quick rejection: exists in current case. */
ptr = strrchr(buf, '/'); /* find entry at end of path. */
if (ptr == NULL)
{
rc = PHYSFS_enumerateFiles("/");
ptr = buf;
} /* if */
else
{
*ptr = '\0';
rc = PHYSFS_enumerateFiles(buf);
*ptr = '/';
ptr++; /* point past dirsep to entry itself. */
} /* else */
for (i = rc; *i != NULL; i++)
{
if (caseInsensitiveStringCompare(*i, ptr) == 0)
{
strcpy(ptr, *i); /* found a match. Overwrite with this case. */
PHYSFS_freeList(rc);
return(1);
} /* if */
} /* for */
/* no match at all... */
PHYSFS_freeList(rc);
return(0);
} /* locateOneElement */
int PHYSFSEXT_locateCorrectCase(char *buf)
{
int rc;
char *ptr;
char *prevptr;
while (*buf == '/') /* skip any '/' at start of string... */
buf++;
ptr = prevptr = buf;
if (*ptr == '\0')
return(0); /* Uh...I guess that's success. */
while (ptr = strchr(ptr + 1, '/'))
{
*ptr = '\0'; /* block this path section off */
rc = locateOneElement(buf);
*ptr = '/'; /* restore path separator */
if (!rc)
return(-2); /* missing element in path. */
} /* while */
/* check final element... */
return(locateOneElement(buf) ? 0 : -1);
} /* PHYSFSEXT_locateCorrectCase */
#ifdef TEST_PHYSFSEXT_LOCATECORRECTCASE
int main(int argc, char **argv)
{
int rc;
char buf[128];
PHYSFS_File *f;
if (!PHYSFS_init(argv[0]))
{
fprintf(stderr, "PHYSFS_init(): %s\n", PHYSFS_getLastError());
return(1);
} /* if */
if (!PHYSFS_addToSearchPath(".", 1))
{
fprintf(stderr, "PHYSFS_addToSearchPath(): %s\n", PHYSFS_getLastError());
PHYSFS_deinit();
return(1);
} /* if */
if (!PHYSFS_setWriteDir("."))
{
fprintf(stderr, "PHYSFS_setWriteDir(): %s\n", PHYSFS_getLastError());
PHYSFS_deinit();
return(1);
} /* if */
if (!PHYSFS_mkdir("/a/b/c"))
{
fprintf(stderr, "PHYSFS_mkdir(): %s\n", PHYSFS_getLastError());
PHYSFS_deinit();
return(1);
} /* if */
if (!PHYSFS_mkdir("/a/b/C"))
{
fprintf(stderr, "PHYSFS_mkdir(): %s\n", PHYSFS_getLastError());
PHYSFS_deinit();
return(1);
} /* if */
f = PHYSFS_openWrite("/a/b/c/x.txt");
PHYSFS_close(f);
if (f == NULL)
{
fprintf(stderr, "PHYSFS_openWrite(): %s\n", PHYSFS_getLastError());
PHYSFS_deinit();
return(1);
} /* if */
f = PHYSFS_openWrite("/a/b/C/X.txt");
PHYSFS_close(f);
if (f == NULL)
{
fprintf(stderr, "PHYSFS_openWrite(): %s\n", PHYSFS_getLastError());
PHYSFS_deinit();
return(1);
} /* if */
strcpy(buf, "/a/b/c/x.txt");
rc = PHYSFSEXT_locateCorrectCase(buf);
if ((rc != 0) || (strcmp(buf, "/a/b/c/x.txt") != 0))
printf("test 1 failed\n");
strcpy(buf, "/a/B/c/x.txt");
rc = PHYSFSEXT_locateCorrectCase(buf);
if ((rc != 0) || (strcmp(buf, "/a/b/c/x.txt") != 0))
printf("test 2 failed\n");
strcpy(buf, "/a/b/C/x.txt");
rc = PHYSFSEXT_locateCorrectCase(buf);
if ((rc != 0) || (strcmp(buf, "/a/b/C/X.txt") != 0))
printf("test 3 failed\n");
strcpy(buf, "/a/b/c/X.txt");
rc = PHYSFSEXT_locateCorrectCase(buf);
if ((rc != 0) || (strcmp(buf, "/a/b/c/x.txt") != 0))
printf("test 4 failed\n");
strcpy(buf, "/a/b/c/z.txt");
rc = PHYSFSEXT_locateCorrectCase(buf);
if ((rc != -1) || (strcmp(buf, "/a/b/c/z.txt") != 0))
printf("test 5 failed\n");
strcpy(buf, "/A/B/Z/z.txt");
rc = PHYSFSEXT_locateCorrectCase(buf);
if ((rc != -2) || (strcmp(buf, "/a/b/Z/z.txt") != 0))
printf("test 6 failed\n");
printf("Testing completed.\n");
printf(" If no errors were reported, you're good to go.\n");
PHYSFS_delete("/a/b/c/x.txt");
PHYSFS_delete("/a/b/C/X.txt");
PHYSFS_delete("/a/b/c");
PHYSFS_delete("/a/b/C");
PHYSFS_delete("/a/b");
PHYSFS_delete("/a");
PHYSFS_deinit();
return(0);
} /* main */
#endif
/* end of ignorecase.c ... */
+75
View File
@@ -0,0 +1,75 @@
/** \file ignorecase.h */
/**
* \mainpage PhysicsFS ignorecase
*
* This is an extension to PhysicsFS to let you handle files in a
* case-insensitive manner, regardless of what sort of filesystem or
* archive they reside in. It does this by enumerating directories as
* needed and manually locating matching entries.
*
* Please note that this brings with it some caveats:
* - On filesystems that are case-insensitive to start with, such as those
* used on Windows or MacOS, you are adding extra overhead.
* - On filesystems that are case-sensitive, you might select the wrong dir
* or file (which brings security considerations and potential bugs). This
* code favours exact case matches, but you will lose access to otherwise
* duplicate filenames, or you might go down a wrong directory tree, etc.
* In practive, this is rarely a problem, but you need to be aware of it.
* - This doesn't do _anything_ with the write directory; you're on your
* own for opening the right files for writing. You can sort of get around
* this by adding your write directory to the search path, but then the
* interpolated directory tree can screw you up even more.
*
* This code should be considered an aid for legacy code. New development
* shouldn't do dumbass things that require this aid in the first place. :)
*
* Usage: Set up PhysicsFS as you normally would, then use
* PHYSFSEXT_locateCorrectCase() to get a "correct" pathname to pass to
* functions like PHYSFS_openRead(), etc.
*
* License: this code is public domain. I make no warranty that it is useful,
* correct, harmless, or environmentally safe.
*
* This particular file may be used however you like, including copying it
* verbatim into a closed-source project, exploiting it commercially, and
* removing any trace of my name from the source (although I hope you won't
* do that). I welcome enhancements and corrections to this file, but I do
* not require you to send me patches if you make changes. This code has
* NO WARRANTY.
*
* Unless otherwise stated, the rest of PhysicsFS falls under the zlib license.
* Please see LICENSE.txt in the root of the source tree.
*
* \author Ryan C. Gordon.
*/
/**
* \fn int PHYSFSEXT_locateCorrectCase(char *buf)
* \brief Find an existing filename with matching case.
*
* This function will look for a path/filename that matches the passed in
* buffer. Each element of the buffer's path is checked for a
* case-insensitive match. The buffer must specify a null-terminated string
* in platform-independent notation.
*
* Please note results may be skewed differently depending on whether symlinks
* are enabled or not.
*
* Each element of the buffer is overwritten with the actual case of an
* existing match. If there is no match, the search aborts and reports an
* error. Exact matches are favored over case-insensitive matches.
*
* THIS IS RISKY. Please do not use this function for anything but crappy
* legacy code.
*
* \param buf Buffer with null-terminated string of path/file to locate.
* This buffer will be modified by this function.
* \return zero if match was found, -1 if the final element (the file itself)
* is missing, -2 if one of the parent directories is missing.
*/
int PHYSFSEXT_locateCorrectCase(char *buf);
/* end of ignorecase.h ... */
+85
View File
@@ -0,0 +1,85 @@
#!/usr/bin/perl -w
use warnings;
use strict;
print <<__EOF__;
/*
* This file is part of PhysicsFS (http://icculus.org/physfs/)
*
* This data generated by physfs/extras/makecasefoldhashtable.pl ...
* Do not manually edit this file!
*
* Please see the file LICENSE.txt in the source's root directory.
*/
#ifndef __PHYSICSFS_INTERNAL__
#error Do not include this header from your applications.
#endif
__EOF__
my @foldPairs;
for (my $i = 0; $i < 256; $i++) {
$foldPairs[$i] = '';
}
open(FH,'<','casefolding.txt') or die("failed to open casefolding.txt: $!\n");
while (<FH>) {
chomp;
# strip comments from textfile...
s/\#.*\Z//;
# strip whitespace...
s/\A\s+//;
s/\s+\Z//;
next if not /\A([a-fA-F0-9]+)\;\s*(.)\;\s*(.+)\;/;
my ($code, $status, $mapping) = ($1, $2, $3);
my $hexxed = hex($code);
my $hashed = (($hexxed ^ ($hexxed >> 8)) & 0xFF);
#print("// code '$code' status '$status' mapping '$mapping'\n");
#print("// hexxed '$hexxed' hashed '$hashed'\n");
if (($status eq 'C') or ($status eq 'F')) {
my ($map1, $map2, $map3) = ('0000', '0000', '0000');
$map1 = $1 if $mapping =~ s/\A([a-fA-F0-9]+)(\s*|\Z)//;
$map2 = $1 if $mapping =~ s/\A([a-fA-F0-9]+)(\s*|\Z)//;
$map3 = $1 if $mapping =~ s/\A([a-fA-F0-9]+)(\s*|\Z)//;
die("mapping space too small for '$code'\n") if ($mapping ne '');
$foldPairs[$hashed] .= " { 0x$code, 0x$map1, 0x$map2, 0x$map3 },\n";
}
}
close(FH);
for (my $i = 0; $i < 256; $i++) {
$foldPairs[$i] =~ s/,\n\Z//;
my $str = $foldPairs[$i];
next if $str eq '';
my $num = '000' . $i;
$num =~ s/\A.*?(\d\d\d)\Z/$1/;
my $sym = "case_fold_${num}";
print("static const CaseFoldMapping ${sym}[] = {\n$str\n};\n\n");
}
print("\nstatic const CaseFoldHashBucket case_fold_hash[256] = {\n");
for (my $i = 0; $i < 256; $i++) {
my $str = $foldPairs[$i];
if ($str eq '') {
print(" { 0, NULL },\n");
} else {
my $num = '000' . $i;
$num =~ s/\A.*?(\d\d\d)\Z/$1/;
my $sym = "case_fold_${num}";
print(" { __PHYSFS_ARRAYLEN($sym), $sym },\n");
}
}
print("};\n\n");
exit 0;
# end of makecashfoldhashtable.pl ...
@@ -0,0 +1,103 @@
# $Id: installer.rb,v 1.3 2003/07/21 03:46:50 icculus Exp $
require 'rbconfig'
require 'find'
require 'ftools'
include Config
module Slimb
class Installer
def initialize target_dir = "", &user_skip
@user_skip = user_skip or proc {|f| false}
@version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
@libdir = File.join(CONFIG["libdir"], "ruby", @version)
@sitedir = CONFIG["sitedir"] || File.join(@libdir, "site_ruby")
@dest = File.join @sitedir, target_dir
File::makedirs @dest
File::chmod 0755, @dest, true
end
def skip? file
@user_skip[file] or
file[0] == ?. or file[-1] == ?~ or file[-1] == ?#
end
def install_dir dir
File::makedirs(File.join(@dest, dir))
File::chmod(0755, File.join(@dest, dir), true)
Dir.foreach(dir) {|file|
next if skip? file
if File.ftype(File.join(dir, file)) == "directory"
install_dir File.join(dir, file)
else
install_file File.join(dir, file)
end
}
end
def install_file file
if file =~ /\.so$/
install_so file
else
File::install file, File.join(@dest, file), 0644, true
end
end
def install_so file
File::install file, File.join(CONFIG["sitearchdir"], file), 0644, true
end
def uninstall_so file
file = File.join(CONFIG["sitearchdir"], file)
File::safe_unlink file
end
def install something
case something
when Array
something.each {|x|
install x if x.is_a? String
}
when String
if File.ftype(something) == "directory"
install_dir something
else
install_file something
end
end
end
def uninstall what = "*"
case what
when Array
files = what.map {|x| File.join(@dest, x)}
when String
files = Dir[File.join(@dest, what)]
end
files.each {|x|
# FIXME: recursive uninstall is a must
next if FileTest.directory? x
File::safe_unlink x
}
end
def run files, argv
if !argv.grep(/--uninstall/).empty?
uninstall files
else
install files
end
end
end
end
# self-installation
if $0 == __FILE__
$stderr.puts "Installing slimb installer..."
Slimb::Installer.new("slimb").install File.basename(__FILE__)
end
@@ -0,0 +1,9 @@
require 'mkmf'
$CFLAGS += `sdl-config --cflags`.chomp
$LDFLAGS += `sdl-config --libs`.chomp
have_library "physfs", "PHYSFS_init"
have_library "SDL", "SDL_AllocRW"
create_makefile "physfs_so"
@@ -0,0 +1,7 @@
#!/usr/local/bin/ruby
if __FILE__ == $0
require 'slimb/installer'
files = ["physfs.rb", "physfs_so.so"]
installer = Slimb::Installer.new.run files, ARGV
end
@@ -0,0 +1,9 @@
#!/bin/sh
ruby extconf.rb
make
cd ..
ruby installer.rb
cd physfs
ruby install.rb
cd test
ruby test_physfs.rb
@@ -0,0 +1,121 @@
#
# PhysicsFS - ruby interface
#
# Author: Ed Sinjiashvili (slimb@vlinkmail.com)
# License: LGPL
#
require 'physfs_so'
module PhysicsFS
class Version
def initialize major, minor, patch
@major = major
@minor = minor
@patch = patch
end
attr_reader :major, :minor, :patch
def to_s
"#@major.#@minor.#@patch"
end
end
class ArchiveInfo
def initialize ext, desc, author, url
@extension = ext
@description = desc
@author = author
@url = url
end
attr_reader :extension, :description
attr_reader :author, :url
def to_s
" * #@extension: #@description\n Written by #@author.\n #@url\n"
end
end
#
# convenience methods
#
class << self
def init argv0 = $0
init_internal argv0
end
def append_search_path str
add_to_search_path str, 1
self
end
def prepend_search_path str
add_to_search_path str, 0
self
end
alias_method :<<, :append_search_path
alias_method :push, :append_search_path
alias_method :unshift, :prepend_search_path
def ls path = ""
enumerate path
end
end
#
# File - PhysicsFS abstract file - can be drawn from various sources
#
class File
def write_str str
write str, 1, str.length
end
def cat
prev_pos = tell
seek 0
r = read length, 1
seek prev_pos
r
end
alias_method :size, :length
end
#
# RWops - general stdio like operations on file-like creatures
#
class RWops
SEEK_SET = 0
SEEK_CUR = 1
SEEK_END = 2
# tell current position of RWopted entity
def tell
seek 0, SEEK_CUR
end
# length of RWops abstracted entity
def length
cur = tell
r = seek 0, SEEK_END
seek cur, SEEK_SET
r
end
alias_method :size, :length
#
# create rwops from PhysicsFS file object
#
def self.from_physfs file
file.to_rwops
end
end
end
# physfs.rb ends here #
@@ -0,0 +1,192 @@
/*
* This code provides a glue layer between PhysicsFS and Simple Directmedia
* Layer's (SDL) RWops i/o abstraction.
*
* License: this code is public domain. I make no warranty that it is useful,
* correct, harmless, or environmentally safe.
*
* This particular file may be used however you like, including copying it
* verbatim into a closed-source project, exploiting it commercially, and
* removing any trace of my name from the source (although I hope you won't
* do that). I welcome enhancements and corrections to this file, but I do
* not require you to send me patches if you make changes.
*
* Unless otherwise stated, the rest of PhysicsFS falls under the GNU Lesser
* General Public License: http://www.gnu.org/licenses/lgpl.txt
*
* SDL falls under the LGPL, too. You can get SDL at http://www.libsdl.org/
*
* This file was written by Ryan C. Gordon. (icculus@icculus.org).
*/
#include <stdio.h> /* used for SEEK_SET, SEEK_CUR, SEEK_END ... */
#include "physfsrwops.h"
static int physfsrwops_seek(SDL_RWops *rw, int offset, int whence)
{
PHYSFS_File *handle = (PHYSFS_File *) rw->hidden.unknown.data1;
int pos = 0;
if (whence == SEEK_SET)
{
pos = offset;
} /* if */
else if (whence == SEEK_CUR)
{
PHYSFS_sint64 current = PHYSFS_tell(handle);
if (current == -1)
{
SDL_SetError("Can't find position in file: %s",
PHYSFS_getLastError());
return(-1);
} /* if */
pos = (int) current;
if ( ((PHYSFS_sint64) pos) != current )
{
SDL_SetError("Can't fit current file position in an int!");
return(-1);
} /* if */
if (offset == 0) /* this is a "tell" call. We're done. */
return(pos);
pos += offset;
} /* else if */
else if (whence == SEEK_END)
{
PHYSFS_sint64 len = PHYSFS_fileLength(handle);
if (len == -1)
{
SDL_SetError("Can't find end of file: %s", PHYSFS_getLastError());
return(-1);
} /* if */
pos = (int) len;
if ( ((PHYSFS_sint64) pos) != len )
{
SDL_SetError("Can't fit end-of-file position in an int!");
return(-1);
} /* if */
pos += offset;
} /* else if */
else
{
SDL_SetError("Invalid 'whence' parameter.");
return(-1);
} /* else */
if ( pos < 0 )
{
SDL_SetError("Attempt to seek past start of file.");
return(-1);
} /* if */
if (!PHYSFS_seek(handle, (PHYSFS_uint64) pos))
{
SDL_SetError("PhysicsFS error: %s", PHYSFS_getLastError());
return(-1);
} /* if */
return(pos);
} /* physfsrwops_seek */
static int physfsrwops_read(SDL_RWops *rw, void *ptr, int size, int maxnum)
{
PHYSFS_File *handle = (PHYSFS_File *) rw->hidden.unknown.data1;
PHYSFS_sint64 rc = PHYSFS_read(handle, ptr, size, maxnum);
if (rc != maxnum)
{
if (!PHYSFS_eof(handle)) /* not EOF? Must be an error. */
SDL_SetError("PhysicsFS error: %s", PHYSFS_getLastError());
} /* if */
return((int) rc);
} /* physfsrwops_read */
static int physfsrwops_write(SDL_RWops *rw, const void *ptr, int size, int num)
{
PHYSFS_File *handle = (PHYSFS_File *) rw->hidden.unknown.data1;
PHYSFS_sint64 rc = PHYSFS_write(handle, ptr, size, num);
if (rc != num)
SDL_SetError("PhysicsFS error: %s", PHYSFS_getLastError());
return((int) rc);
} /* physfsrwops_write */
static int physfsrwops_close(SDL_RWops *rw)
{
PHYSFS_File *handle = (PHYSFS_File *) rw->hidden.unknown.data1;
if (!PHYSFS_close(handle))
{
SDL_SetError("PhysicsFS error: %s", PHYSFS_getLastError());
return(-1);
} /* if */
SDL_FreeRW(rw);
return(0);
} /* physfsrwops_close */
static SDL_RWops *create_rwops(PHYSFS_File *handle)
{
SDL_RWops *retval = NULL;
if (handle == NULL)
SDL_SetError("PhysicsFS error: %s", PHYSFS_getLastError());
else
{
retval = SDL_AllocRW();
if (retval != NULL)
{
retval->seek = physfsrwops_seek;
retval->read = physfsrwops_read;
retval->write = physfsrwops_write;
retval->close = physfsrwops_close;
retval->hidden.unknown.data1 = handle;
} /* if */
} /* else */
return(retval);
} /* create_rwops */
SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_File *handle)
{
SDL_RWops *retval = NULL;
if (handle == NULL)
SDL_SetError("NULL pointer passed to PHYSFSRWOPS_makeRWops().");
else
retval = create_rwops(handle);
return(retval);
} /* PHYSFSRWOPS_makeRWops */
SDL_RWops *PHYSFSRWOPS_openRead(const char *fname)
{
return(create_rwops(PHYSFS_openRead(fname)));
} /* PHYSFSRWOPS_openRead */
SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname)
{
return(create_rwops(PHYSFS_openWrite(fname)));
} /* PHYSFSRWOPS_openWrite */
SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname)
{
return(create_rwops(PHYSFS_openAppend(fname)));
} /* PHYSFSRWOPS_openAppend */
/* end of physfsrwops.c ... */
@@ -0,0 +1,87 @@
/*
* This code provides a glue layer between PhysicsFS and Simple Directmedia
* Layer's (SDL) RWops i/o abstraction.
*
* License: this code is public domain. I make no warranty that it is useful,
* correct, harmless, or environmentally safe.
*
* This particular file may be used however you like, including copying it
* verbatim into a closed-source project, exploiting it commercially, and
* removing any trace of my name from the source (although I hope you won't
* do that). I welcome enhancements and corrections to this file, but I do
* not require you to send me patches if you make changes.
*
* Unless otherwise stated, the rest of PhysicsFS falls under the GNU Lesser
* General Public License: http://www.gnu.org/licenses/lgpl.txt
*
* SDL falls under the LGPL, too. You can get SDL at http://www.libsdl.org/
*
* This file was written by Ryan C. Gordon. (icculus@icculus.org).
*/
#ifndef _INCLUDE_PHYSFSRWOPS_H_
#define _INCLUDE_PHYSFSRWOPS_H_
#include "physfs.h"
#include "SDL.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Open a platform-independent filename for reading, and make it accessible
* via an SDL_RWops structure. The file will be closed in PhysicsFS when the
* RWops is closed. PhysicsFS should be configured to your liking before
* opening files through this method.
*
* @param filename File to open in platform-independent notation.
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
__EXPORT__ SDL_RWops *PHYSFSRWOPS_openRead(const char *fname);
/**
* Open a platform-independent filename for writing, and make it accessible
* via an SDL_RWops structure. The file will be closed in PhysicsFS when the
* RWops is closed. PhysicsFS should be configured to your liking before
* opening files through this method.
*
* @param filename File to open in platform-independent notation.
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
__EXPORT__ SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname);
/**
* Open a platform-independent filename for appending, and make it accessible
* via an SDL_RWops structure. The file will be closed in PhysicsFS when the
* RWops is closed. PhysicsFS should be configured to your liking before
* opening files through this method.
*
* @param filename File to open in platform-independent notation.
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
__EXPORT__ SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname);
/**
* Make a SDL_RWops from an existing PhysicsFS file handle. You should
* dispose of any references to the handle after successful creation of
* the RWops. The actual PhysicsFS handle will be destroyed when the
* RWops is closed.
*
* @param handle a valid PhysicsFS file handle.
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
__EXPORT__ SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle);
#ifdef __cplusplus
}
#endif
#endif /* include-once blocker */
/* end of physfsrwops.h ... */

Some files were not shown because too many files have changed in this diff Show More