- Reverted "Set FREE_WINDOWS when compiling with MinGW"
- Reverted own changes made to _stat function BLI_exists - Use __MINGW32__ instead of FREE_WINDOWS in BLI_exists - Removed recently added lib dependencies for mingw
This commit is contained in:
@@ -182,7 +182,7 @@ C_WARN = [ '-Wall' , '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
|
||||
|
||||
CC_WARN = [ '-Wall' ]
|
||||
|
||||
LLIBS = [ '-ldxguid', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++', '-luuid', '-lole32', '-lmsvcr90'] #'-lutil', '-lc', '-lm', '-ldl', '-lpthread' ]
|
||||
LLIBS = [ '-ldxguid', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++', '-luuid', '-lole32'] #'-lutil', '-lc', '-lm', '-ldl', '-lpthread' ]
|
||||
|
||||
BF_DEBUG = False
|
||||
BF_DEBUG_CCFLAGS = ['-g']
|
||||
|
@@ -173,7 +173,7 @@ C_WARN = [ '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
|
||||
|
||||
CC_WARN = [ '-Wall' ]
|
||||
|
||||
LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++','-lole32','-luuid', '-lmsvcr90']
|
||||
LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++','-lole32','-luuid']
|
||||
|
||||
BF_DEBUG = False
|
||||
BF_DEBUG_CCFLAGS= ['-g']
|
||||
|
@@ -7,7 +7,7 @@ cflags=''
|
||||
incs = '. ../makesdna ../blenkernel #/intern/guardedalloc #/intern/ghost ../editors/include ../gpu'
|
||||
incs += ' ' + env['BF_FREETYPE_INC']
|
||||
incs += ' ' + env['BF_ZLIB_INC']
|
||||
defs = []
|
||||
defs = ''
|
||||
|
||||
if env['OURPLATFORM'] == 'linux2':
|
||||
cflags='-pthread'
|
||||
@@ -16,9 +16,6 @@ if env['OURPLATFORM'] == 'linux2':
|
||||
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
||||
incs += ' ' + env['BF_PTHREADS_INC']
|
||||
|
||||
if env['OURPLATFORM'] == 'win32-mingw':
|
||||
defs.append('FREE_WINDOWS')
|
||||
|
||||
if env['OURPLATFORM'] == 'linuxcross':
|
||||
if env['WITH_BF_OPENMP']:
|
||||
incs += ' ' + env['BF_OPENMP_INC']
|
||||
@@ -27,4 +24,4 @@ if env['OURPLATFORM'] == 'darwin':
|
||||
if env['WITH_BF_OPENMP']:
|
||||
env.Append(CFLAGS=['-DPARALLEL=1'])
|
||||
|
||||
env.BlenderLib ( 'bf_blenlib', sources, Split(incs), defs, libtype=['core','player'], priority = [363,170], compileflags =cflags )
|
||||
env.BlenderLib ( 'bf_blenlib', sources, Split(incs), Split(defs), libtype=['core','player'], priority = [363,170], compileflags =cflags )
|
||||
|
@@ -437,7 +437,7 @@ int BLI_filepathsize(const char *path)
|
||||
|
||||
int BLI_exist(char *name)
|
||||
{
|
||||
#if defined(WIN32) && !defined(FREE_WINDOWS)
|
||||
#if defined(WIN32) && !defined(__MINGW32__)
|
||||
struct _stat64i32 st;
|
||||
/* in Windows stat doesn't recognize dir ending on a slash
|
||||
To not break code where the ending slash is expected we
|
||||
@@ -447,7 +447,7 @@ int BLI_exist(char *name)
|
||||
BLI_strncpy(tmp, name, FILE_MAXDIR+FILE_MAXFILE);
|
||||
len = strlen(tmp);
|
||||
if (len > 3 && ( tmp[len-1]=='\\' || tmp[len-1]=='/') ) tmp[len-1] = '\0';
|
||||
res = _stat64i32(tmp, &st);
|
||||
res = _stat(tmp, &st);
|
||||
if (res == -1) return(0);
|
||||
#else
|
||||
struct stat st;
|
||||
|
Reference in New Issue
Block a user