mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Simplify the SCons build:
On OS X, build all code as Objective-C(++). Centralize framework handling. Cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5645 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -19,6 +19,7 @@ files = [
|
||||
"Rumble.cpp",
|
||||
"UDPWiimote.cpp"
|
||||
]
|
||||
|
||||
if wmenv['HAVE_WX']:
|
||||
files += [
|
||||
"ConfigBasicDlg.cpp",
|
||||
@ -28,27 +29,20 @@ if wmenv['HAVE_WX']:
|
||||
"ConfigRecording.cpp",
|
||||
"FillReport.cpp",
|
||||
]
|
||||
|
||||
libs = [ 'common', 'inputcommon' ]
|
||||
|
||||
cxxflags = [ ]
|
||||
|
||||
if wmenv['HAVE_WIIUSE']:
|
||||
libs += [ 'wiiuse' ]
|
||||
files += [ "wiimote_real.cpp" ]
|
||||
files += [ "ReadWiimote.cpp" ]
|
||||
cxxflags += ['-DHAVE_WIIUSE']
|
||||
libs += [ 'wiiuse' ]
|
||||
files += [ "wiimote_real.cpp" ]
|
||||
files += [ "ReadWiimote.cpp" ]
|
||||
cxxflags += ['-DHAVE_WIIUSE']
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
wmenv.Append(
|
||||
CXXFLAGS = cxxflags,
|
||||
LINKFLAGS = ['-framework', 'IOBluetooth'],
|
||||
LIBS = libs,
|
||||
)
|
||||
wmenv['FRAMEWORKS'] = ['Cocoa', 'System']
|
||||
else:
|
||||
wmenv.Append(
|
||||
CXXFLAGS = cxxflags,
|
||||
LIBS = libs,
|
||||
)
|
||||
wmenv.Append(
|
||||
CXXFLAGS = cxxflags,
|
||||
LIBS = libs,
|
||||
)
|
||||
|
||||
wmenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||
|
Reference in New Issue
Block a user