Oops, removed one <sys/stat.h> too many.
No need to autoconf for libusbhid - all USB-capable BSD's have it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5996 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
24fdf942a4
commit
f081710800
|
@ -11,6 +11,7 @@ files = [
|
||||||
]
|
]
|
||||||
|
|
||||||
if sys.platform.count('bsd'):
|
if sys.platform.count('bsd'):
|
||||||
|
env['LIBS'] += ['usbhid']
|
||||||
files += [
|
files += [
|
||||||
'src/joystick/bsd/SDL_sysjoystick.c',
|
'src/joystick/bsd/SDL_sysjoystick.c',
|
||||||
'src/stdlib/SDL_malloc.c',
|
'src/stdlib/SDL_malloc.c',
|
||||||
|
|
74
SConstruct
74
SConstruct
|
@ -132,32 +132,6 @@ if not env['verbose']:
|
||||||
env['SHLINKCOMSTR'] = "Linking $TARGET"
|
env['SHLINKCOMSTR'] = "Linking $TARGET"
|
||||||
env['TARCOMSTR'] = "Creating $TARGET"
|
env['TARCOMSTR'] = "Creating $TARGET"
|
||||||
|
|
||||||
dirs = [
|
|
||||||
'Externals/Bochs_disasm',
|
|
||||||
'Externals/Lua',
|
|
||||||
'Externals/MemcardManager',
|
|
||||||
'Externals/WiiUse/Src',
|
|
||||||
'Source/Core/AudioCommon/Src',
|
|
||||||
'Source/Core/Common/Src',
|
|
||||||
'Source/Core/Core/Src',
|
|
||||||
'Source/Core/DSPCore/Src',
|
|
||||||
'Source/Core/DebuggerUICommon/Src',
|
|
||||||
'Source/Core/DebuggerWX/Src',
|
|
||||||
'Source/Core/DiscIO/Src',
|
|
||||||
'Source/Core/DolphinWX/Src',
|
|
||||||
'Source/Core/InputCommon/Src',
|
|
||||||
'Source/Core/InputUICommon/Src',
|
|
||||||
'Source/Core/VideoCommon/Src',
|
|
||||||
'Source/DSPTool/Src',
|
|
||||||
'Source/Plugins/Plugin_DSP_HLE/Src',
|
|
||||||
'Source/Plugins/Plugin_DSP_LLE/Src',
|
|
||||||
'Source/Plugins/Plugin_VideoOGL/Src',
|
|
||||||
'Source/Plugins/Plugin_VideoSoftware/Src',
|
|
||||||
'Source/Plugins/Plugin_Wiimote/Src',
|
|
||||||
'Source/Plugins/Plugin_WiimoteNew/Src',
|
|
||||||
'Source/UnitTests',
|
|
||||||
]
|
|
||||||
|
|
||||||
# Object files
|
# Object files
|
||||||
env['build_dir'] = 'Build' + os.sep + platform.system() + \
|
env['build_dir'] = 'Build' + os.sep + platform.system() + \
|
||||||
'-' + platform.machine() + '-' + env['flavor']
|
'-' + platform.machine() + '-' + env['flavor']
|
||||||
|
@ -184,8 +158,7 @@ rev = utils.GenerateRevFile(env['flavor'],
|
||||||
|
|
||||||
env['CCFLAGS'] = ccFlags
|
env['CCFLAGS'] = ccFlags
|
||||||
env['CPPDEFINES'] = cppDefines
|
env['CPPDEFINES'] = cppDefines
|
||||||
env['CPPPATH'] = ['#' + path for path in dirs]
|
env['CPPPATH'] = ['#Source/PluginSpecs']
|
||||||
env['CPPPATH'] += ['#Source/PluginSpecs']
|
|
||||||
env['CXXFLAGS'] = ['-fvisibility-inlines-hidden']
|
env['CXXFLAGS'] = ['-fvisibility-inlines-hidden']
|
||||||
env['LIBPATH'] = []
|
env['LIBPATH'] = []
|
||||||
env['LIBS'] = []
|
env['LIBS'] = []
|
||||||
|
@ -234,7 +207,6 @@ if sys.platform == 'darwin':
|
||||||
env['plugin_dir'] = '#' + env['prefix'] + '/Dolphin.app/Contents/PlugIns'
|
env['plugin_dir'] = '#' + env['prefix'] + '/Dolphin.app/Contents/PlugIns'
|
||||||
env.Install(env['data_dir'], 'Data/Sys')
|
env.Install(env['data_dir'], 'Data/Sys')
|
||||||
env.Install(env['data_dir'], 'Data/User')
|
env.Install(env['data_dir'], 'Data/User')
|
||||||
dirs += ['Externals/dylibbundler']
|
|
||||||
if env['bundle']:
|
if env['bundle']:
|
||||||
app = env['prefix'] + '/Dolphin.app'
|
app = env['prefix'] + '/Dolphin.app'
|
||||||
dmg = env['prefix'] + '/Dolphin-r' + rev + '.dmg'
|
dmg = env['prefix'] + '/Dolphin-r' + rev + '.dmg'
|
||||||
|
@ -244,8 +216,6 @@ if sys.platform == 'darwin':
|
||||||
|
|
||||||
elif sys.platform == 'win32':
|
elif sys.platform == 'win32':
|
||||||
env['tools'] = ['mingw']
|
env['tools'] = ['mingw']
|
||||||
dirs += ['Source/Plugins/Plugin_VideoDX9/Src']
|
|
||||||
dirs += ['Source/Plugins/Plugin_VideoDX11/Src']
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
env['CCFLAGS'] += ['-pthread']
|
env['CCFLAGS'] += ['-pthread']
|
||||||
|
@ -287,8 +257,6 @@ else:
|
||||||
print "WX libraries not found - see config.log"
|
print "WX libraries not found - see config.log"
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
|
||||||
conf.CheckPKG('usbhid')
|
|
||||||
|
|
||||||
env['HAVE_BLUEZ'] = conf.CheckPKG('bluez')
|
env['HAVE_BLUEZ'] = conf.CheckPKG('bluez')
|
||||||
conf.Define('HAVE_BLUEZ', env['HAVE_BLUEZ'])
|
conf.Define('HAVE_BLUEZ', env['HAVE_BLUEZ'])
|
||||||
|
|
||||||
|
@ -399,6 +367,8 @@ else:
|
||||||
# during autoconfiguration as they will then be detected as system libraries.
|
# during autoconfiguration as they will then be detected as system libraries.
|
||||||
env['LIBPATH'].insert(0, env['local_libs'])
|
env['LIBPATH'].insert(0, env['local_libs'])
|
||||||
|
|
||||||
|
dirs = []
|
||||||
|
|
||||||
if not env.has_key('shared_glew') or not env['shared_glew']:
|
if not env.has_key('shared_glew') or not env['shared_glew']:
|
||||||
env['CPPPATH'] += ['#Externals/GLew/include']
|
env['CPPPATH'] += ['#Externals/GLew/include']
|
||||||
dirs += ['Externals/GLew']
|
dirs += ['Externals/GLew']
|
||||||
|
@ -419,9 +389,43 @@ if not env.has_key('shared_zlib') or not env['shared_zlib']:
|
||||||
env['CPPPATH'] += ['#Externals/zlib']
|
env['CPPPATH'] += ['#Externals/zlib']
|
||||||
dirs += ['Externals/zlib']
|
dirs += ['Externals/zlib']
|
||||||
|
|
||||||
|
dirs += [
|
||||||
|
'Externals/Bochs_disasm',
|
||||||
|
#'Externals/CLRun',
|
||||||
|
'Externals/Lua',
|
||||||
|
'Externals/MemcardManager',
|
||||||
|
'Externals/WiiUse/Src',
|
||||||
|
#'Externals/OpenAL',
|
||||||
|
#'Externals/dylibbundler',
|
||||||
|
#'Externals/wxWidgets',
|
||||||
|
'Source/Core/AudioCommon/Src',
|
||||||
|
'Source/Core/Common/Src',
|
||||||
|
'Source/Core/Core/Src',
|
||||||
|
'Source/Core/DSPCore/Src',
|
||||||
|
'Source/Core/DebuggerUICommon/Src',
|
||||||
|
'Source/Core/DebuggerWX/Src',
|
||||||
|
'Source/Core/DiscIO/Src',
|
||||||
|
'Source/Core/DolphinWX/Src',
|
||||||
|
'Source/Core/InputCommon/Src',
|
||||||
|
'Source/Core/InputUICommon/Src',
|
||||||
|
'Source/Core/VideoCommon/Src',
|
||||||
|
'Source/DSPTool/Src',
|
||||||
|
'Source/Plugins/Plugin_DSP_HLE/Src',
|
||||||
|
'Source/Plugins/Plugin_DSP_LLE/Src',
|
||||||
|
#'Source/Plugins/Plugin_VideoDX9/Src',
|
||||||
|
#'Source/Plugins/Plugin_VideoDX11/Src',
|
||||||
|
'Source/Plugins/Plugin_VideoOGL/Src',
|
||||||
|
'Source/Plugins/Plugin_VideoSoftware/Src',
|
||||||
|
'Source/Plugins/Plugin_Wiimote/Src',
|
||||||
|
'Source/Plugins/Plugin_WiimoteNew/Src',
|
||||||
|
'Source/UnitTests',
|
||||||
|
]
|
||||||
|
|
||||||
for subdir in dirs:
|
for subdir in dirs:
|
||||||
SConscript(subdir + os.sep + 'SConscript',
|
SConscript(dirs = subdir, duplicate = 0, exports = 'env',
|
||||||
variant_dir = env['build_dir'] + os.sep + subdir, duplicate = 0)
|
variant_dir = env['build_dir'] + os.sep + subdir)
|
||||||
|
if subdir.count('Externals') or subdir.count('Source/Core'):
|
||||||
|
env['CPPPATH'] += ['#' + subdir]
|
||||||
|
|
||||||
# Print a nice progress indication when not compiling
|
# Print a nice progress indication when not compiling
|
||||||
Progress(['-\r', '\\\r', '|\r', '/\r'], interval = 5)
|
Progress(['-\r', '\\\r', '|\r', '/\r'], interval = 5)
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
|
|
Loading…
Reference in New Issue