cygwin buildscripts changed again to be more stable.
added a couple more endlines to eof
This commit is contained in:
parent
b8b6324ba3
commit
2faad5ca51
25
SConstruct
25
SConstruct
|
@ -1,5 +1,21 @@
|
||||||
#fetch environment
|
# XXX path separator fixed right now
|
||||||
env = Environment()
|
opts = Options()
|
||||||
|
opts.Add('PSS_STYLE', 'Path separator style', 1)
|
||||||
|
opts.Add('LSB_FIRST', 'Least significant byte first?', 1)
|
||||||
|
|
||||||
|
#Import('env')
|
||||||
|
env = Environment(options = opts,
|
||||||
|
CPPDEFINES={'PSS_STYLE' : '${PSS_STYLE}',
|
||||||
|
'LSB_FIRST' : '${LSB_FIRST}'})
|
||||||
|
|
||||||
|
print "platform: ", env['PLATFORM']
|
||||||
|
|
||||||
|
#special flags for cygwin
|
||||||
|
#we have to do this here so that the function and lib checks will go through mingw
|
||||||
|
if env['PLATFORM'] == 'cygwin':
|
||||||
|
env['CCFLAGS'] += "-mno-cygwin";
|
||||||
|
env['LINKFLAGS'] += "-mno-cygwin";
|
||||||
|
env['LIBS'] = ['ddraw','dinput','dsound','gdi32','dxguid','winmm','shell32','wsock32','comdlg32','ole32'];
|
||||||
|
|
||||||
conf = Configure(env)
|
conf = Configure(env)
|
||||||
if not conf.CheckLib('SDL'):
|
if not conf.CheckLib('SDL'):
|
||||||
|
@ -8,8 +24,9 @@ if not conf.CheckLib('SDL'):
|
||||||
if not conf.CheckLib('z'):
|
if not conf.CheckLib('z'):
|
||||||
print 'Did not find libz.a or z.lib, exiting!'
|
print 'Did not find libz.a or z.lib, exiting!'
|
||||||
Exit(1)
|
Exit(1)
|
||||||
if not conf.CheckFunc('asprintf'):
|
if conf.CheckFunc('asprintf'):
|
||||||
env['CCFLAGS'] += " -DHAVE_ASPRINTF"
|
conf.env['CCFLAGS'].append("-DHAVE_ASPRINTF");
|
||||||
|
|
||||||
|
|
||||||
env = conf.Finish()
|
env = conf.Finish()
|
||||||
Export('env')
|
Export('env')
|
||||||
|
|
|
@ -41,15 +41,8 @@ drivers/pc/SConscript
|
||||||
#palettes/SConscript
|
#palettes/SConscript
|
||||||
Import('file_list')
|
Import('file_list')
|
||||||
|
|
||||||
# XXX path separator fixed right now
|
Import('env')
|
||||||
opts = Options()
|
|
||||||
opts.Add('PSS_STYLE', 'Path separator style', 1)
|
|
||||||
opts.Add('LSB_FIRST', 'Least significant byte first?', 1)
|
|
||||||
|
|
||||||
env = Environment(options = opts,
|
|
||||||
CPPDEFINES={'PSS_STYLE' : '${PSS_STYLE}',
|
|
||||||
'LSB_FIRST' : '${LSB_FIRST}'})
|
|
||||||
|
|
||||||
# use sdl-config to get the cflags and libpath
|
# use sdl-config to get the cflags and libpath
|
||||||
import os;
|
import os;
|
||||||
sdl_cflags_pipe = os.popen("sdl-config --cflags");
|
sdl_cflags_pipe = os.popen("sdl-config --cflags");
|
||||||
|
@ -68,23 +61,18 @@ for flag in sdl_libflags.split(' '):
|
||||||
elif flag.find("-l") == 0:
|
elif flag.find("-l") == 0:
|
||||||
sdl_libs.append(flag.strip("-l"));
|
sdl_libs.append(flag.strip("-l"));
|
||||||
else:
|
else:
|
||||||
env['LINKFLAGS'] += " " + flag;
|
print "extra link flag: ", flag;
|
||||||
|
env['LINKFLAGS'] += flag;
|
||||||
|
|
||||||
sdl_libflags_pipe.close();
|
sdl_libflags_pipe.close();
|
||||||
|
|
||||||
# add zlib
|
# add zlib
|
||||||
libs = sdl_libs;
|
env['LIBS'].append('z');
|
||||||
libs.append('z');
|
env['LIBS'].extend(sdl_libs);
|
||||||
|
|
||||||
# include sdl cflags
|
# include sdl cflags
|
||||||
env['CCFLAGS'] += sdl_cflags;
|
env['CCFLAGS'] += sdl_cflags;
|
||||||
|
|
||||||
#special flags for cygwin
|
print env['LINKFLAGS']
|
||||||
print "platform: " + env['PLATFORM']
|
|
||||||
if env['PLATFORM'] == 'cygwin':
|
|
||||||
env['CCFLAGS'] += " -mno-cygwin"
|
|
||||||
#env['LINKFLAGS'] += " -mno-cygwin"
|
|
||||||
libs.extend(['ddraw','dinput','dsound','gdi32','dxguid','winmm','shell32','wsock32','comdlg32','ole32']);
|
|
||||||
|
|
||||||
print env['CCFLAGS']
|
|
||||||
|
|
||||||
env.Program('fceu', file_list, LIBS=libs, LIBPATH=sdl_libpath)
|
env.Program('fceu', file_list, LIBPATH=sdl_libpath)
|
||||||
|
|
|
@ -31,4 +31,4 @@ FCEUX\n\
|
||||||
strcpy(aboutString,aboutTemplate);
|
strcpy(aboutString,aboutTemplate);
|
||||||
strcat(aboutString,compilerString);
|
strcat(aboutString,compilerString);
|
||||||
return aboutString;
|
return aboutString;
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,4 +74,4 @@ void Mapper43_init(void)
|
||||||
SetReadHandler(0x6000,0xffff,CartBR);
|
SetReadHandler(0x6000,0xffff,CartBR);
|
||||||
MapIRQHook=M43Ho;
|
MapIRQHook=M43Ho;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -73,4 +73,4 @@ void Mapper226_init(void)
|
||||||
GameStateRestore=M26Restore;
|
GameStateRestore=M26Restore;
|
||||||
M26Reset();
|
M26Reset();
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue