Some modifications for WIN64. SConscript not ready for that yet.

This commit is contained in:
ntoskrnl 2012-07-29 20:33:01 +03:00 committed by Simon Robertshaw
parent f94fabd999
commit 4343faa10f
2 changed files with 9 additions and 3 deletions

View File

@ -119,13 +119,15 @@ if(GetOption('lin'):
env.Append(LIBS=['X11', 'rt'])
env.Append(CPPDEFINES=["LIN"])
if GetOption('_64bit'):
env.Append(CPPDEFINES=["_64BIT"])
env.Append(LINKFAGS=['-m64'])
env.Append(CCFLAGS=['-m64'])
else:
env.Append(LINKFLAGS=['-m32'])
env.Append(CCFLAGS=['-m32'])
if GetOption('_64bit'):
env.Append(CPPDEFINES=["_64BIT"])
if(GetOption('beta')):
env.Append(CPPDEFINES='BETA')

View File

@ -45,15 +45,19 @@
#endif
#if defined(WIN)
#if defined(_64BIT)
#define IDENT_PLATFORM "WIN64"
#else
#define IDENT_PLATFORM "WIN32"
#elif defined(MACOSX)
#define IDENT_PLATFORM "MACOSX"
#endif
#elif defined(LIN)
#if defined(_64BIT)
#define IDENT_PLATFORM "LIN64"
#else
#define IDENT_PLATFORM "LIN32"
#endif
#elif defined(MACOSX)
#define IDENT_PLATFORM "MACOSX"
#else
#define IDENT_PLATFORM "UNKNOWN"
#endif