diff --git a/dtool/Config.Cygwin.pp b/dtool/Config.Cygwin.pp new file mode 100644 index 0000000000..ee793f7b91 --- /dev/null +++ b/dtool/Config.Cygwin.pp @@ -0,0 +1,9 @@ +// +// Config.Cygwin.pp +// +// This file defines some custom config variables for the Windows +// platform, when ppremake has been compiled using Cygwin. It +// inherits most of its parameters from Config.Win32.pp. +// + +#include $[THISDIRPREFIX]Config.Win32.pp diff --git a/dtool/Config.pp b/dtool/Config.pp index 63a6c3e3d4..f38b5f270c 100644 --- a/dtool/Config.pp +++ b/dtool/Config.pp @@ -66,8 +66,10 @@ // not taking advantage of distributed make, because of // the overhead associated with Cygwin fork() calls. -#if $[eq $[PLATFORM],Win32] +#if $[eq $[PLATFORM], Win32] #define BUILD_TYPE gmsvc +#elif $[eq $[PLATFORM], Cygwin] + #define BUILD_TYPE msvc #else #define BUILD_TYPE unix #endif @@ -401,7 +403,7 @@ #if $[eq $[PLATFORM], Win32] #if $[eq $[USE_COMPILER],] - #define USE_COMPILER MSVC + #define USE_COMPILER MSVC7 #endif #elif $[eq $[PLATFORM], Irix] #define USE_COMPILER MIPS diff --git a/dtool/pptempl/System.pp b/dtool/pptempl/System.pp index 61d178a557..e6ff928042 100644 --- a/dtool/pptempl/System.pp +++ b/dtool/pptempl/System.pp @@ -41,8 +41,8 @@ // PLATFORM variable, and help it to control the effects of functions // like $[os] and $[isfullpath]. -// True if we are building on some flavor of Unix. -#define UNIX_PLATFORM $[ne $[PLATFORM],Win32] - // True if we are building on some flavor of Windows. -#define WINDOWS_PLATFORM $[eq $[PLATFORM],Win32] +#define WINDOWS_PLATFORM $[or $[eq $[PLATFORM],Win32]$[eq $[PLATFORM],Cygwin]] + +// True if we are building on some flavor of Unix. +#define UNIX_PLATFORM $[not $[WINDOWS_PLATFORM]]