Separate config files for MinGW/Cygwin.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1921 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2005-10-25 10:52:10 +00:00
parent 6effc2b53e
commit 4d95b7b771
7 changed files with 96 additions and 11 deletions
+4
View File
@@ -7,6 +7,10 @@
* If you want anything else than the defaults, you'll have to edit
* that file manually. */
# include "msvc++/config.h"
#elif defined (__MINGW32__) || defined (__CYGWIN__)
/* If we're compiling on MS Windows using build.sh, use
* config_win.h, generated from * src/config_win.h.in. */
# include "config_win.h"
#else
/* If we're compiling in unix, use config_unix.h, generated from
* src/config_unix.h.in by build.sh. */
+4 -2
View File
@@ -1,8 +1,10 @@
/* This file contains some compile-time configuration options for *nix
* systems.
* config_unix.h is generated from config_unix.h.in by build.sh
* For windows, you'll have to edit src/msvc++/config.h manually
* if you want anything else than the defaults.
* When building on MS Windows using build.sh (MinGW, Cygwin),
* config_win.h is generated from src/config_win.h.in.
* When using MSVC on MS Windows, you'll have to edit src/msvc++/config.h
* manually if you want anything else than the defaults.
*/
#ifndef _CONFIG_UNIX_H
+58
View File
@@ -0,0 +1,58 @@
/* This file contains some compile-time configuration options for MS Windows
* systems when building using build.sh (MinGW, Cygwin).
* config_win.h is generated from src/config_win.h.in by build.sh
* For building using MSVC, you'll have to edit src/msvc++/config.h manually
* if you want anything else than the defaults.
* For *nix systems, config_unix.h is used, which is generated by build.sh
* from src/config_unix.h.in.
*/
#ifndef _CONFIG_WIN_H
#define _CONFIG_WIN_H
/* Directory where the UQM game data is located */
#define CONTENTDIR "@CONTENTDIR@"
/* Directory where game data will be stored */
//#define USERDIR "../userdata/"
#define USERDIR "%APPDATA%/uqm/"
/* Directory where config files will be stored */
#define CONFIGDIR USERDIR
/* Directory where supermelee teams will be stored */
#define MELEEDIR "%UQM_CONFIG_DIR%teams/"
/* Directory where save games will be stored */
#define SAVEDIR "%UQM_CONFIG_DIR%save/"
/* Defined if words are stored with the most significant byte first */
@WORDS_BIGENDIAN@
/* Defined if your system has readdir_r of its own */
@HAVE_READDIR_R@
/* Defined if your system has setenv of its own */
@HAVE_SETENV@
/* Defined if your system has strupr of its own */
@HAVE_STRUPR@
/* Defined if your system has stricmp of its own */
@HAVE_STRICMP@
/* Defined if your system has getopt.h */
@HAVE_GETOPT_H@
/* Defined if your system has iswgraph of its own*/
@HAVE_ISWGRAPH@
/* Defined if your system has wchar_t of its own */
@HAVE_WCHAR_T@
/* Defined if your system has wint_t of its own */
@HAVE_WINT_T@
#endif /* _CONFIG_WIN_H */
+5 -3
View File
@@ -1,8 +1,10 @@
/* This file contains some compile-time configuration options for MS Windows
* systems.
* systems when building using MSVC.
* Change the values below if you want anything other than the defaults.
* For *nix systems, src/config.h is used, which is generated by
* build.sh from src/config.h.in.
* For *nix systems, config_unix.h is used, which is generated by build.sh
* from src/config_unix.h.in.
* When building on MS Windows using build.sh (MinGW, Cygwin),
* config_win.h is generated from src/config_win.h.in.
*/
#ifndef _CONFIG_H