scons osx cleanup

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1485 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-12-10 18:33:13 +00:00
parent 761dfca9ed
commit 900407c1fe
6 changed files with 41 additions and 49 deletions

View File

@ -123,10 +123,11 @@ CFrame::CFrame(wxFrame* parent,
const wxSize& size,
long style)
: wxFrame(parent, id, title, pos, size, style)
, m_Panel(NULL)
, m_pStatusBar(NULL)
, m_pMenuBar(NULL)
, HaveLeds(false), HaveSpeakers(false)
, m_Panel(NULL)
, m_pMenuBar(NULL)
{
InitBitmaps();

View File

@ -20,16 +20,8 @@ files = [
]
dspenv = env.Clone()
if not dspenv['osx64']:
dspenv.Append(
CXXFLAGS = [ '-fPIC' ],
LIBS = [ 'common' ],
)
else:
dspenv.Append(
CXXFLAGS = [ '-fPIC','-arch', 'x86_64' ],
LINKFLAGS = [ '-arch', 'x86_64' ],
LIBS = [ 'common' ],
)
dspenv.Append(
CXXFLAGS = [ '-fPIC' ],
LIBS = [ 'common' ],
)
dspenv.SharedLibrary(env['plugin_dir']+name, files)

View File

@ -14,7 +14,7 @@ files = [
]
padenv = env.Clone()
if not padenv['osx64']:
if not padenv['HAVE_WX']:
files += [
"GUI/ConfigDlg.cpp",
"XInputBase.cpp",
@ -22,10 +22,4 @@ if not padenv['osx64']:
padenv.Append(LIBS = [ 'common' ])
if padenv['osx64']:
padenv.Append(
CXXFLAGS = [ '-arch', 'x86_64' ],
LINKFLAGS = [ '-arch', 'x86_64' ],
)
padenv.SharedLibrary(env['plugin_dir']+name, files)

View File

@ -54,14 +54,12 @@ if gfxenv['HAVE_WX']:
'Debugger/PBView.cpp',
]
if gfxenv['osx64']:
files += [ 'cocoaGL.m' ]
compileFlags += [
'-x',
'objective-c++',
]
if gfxenv['HAVE_COCOA']:
files += [ 'cocoaGL.m' ]
compileFlags += [
'-x',
'objective-c++',
]
tests = {'CheckPKG' : utils.CheckPKG}
conf = gfxenv.Configure(custom_tests = tests,
@ -72,24 +70,27 @@ if sys.platform == 'darwin':
# Use libraries from MacPorts.
compileFlags.append('-I/opt/local/include')
linkFlags.append('-L/opt/local/lib')
conf.CheckPKG('cocoa')
conf.CheckPKG('OpenGL')
if not conf.CheckPKG('Cg'):
print name + " must have Cg from nvidia to be build"
else:
if not (conf.CheckPKG('GL') and conf.CheckPKG('GLU')):
print name + " must have opengl and glu to be build"
Return()
if not conf.CheckPKG('Cg') or not conf.CheckPKG('CgGL'):
print name + " must have cg and cggl to be build"
Return()
if not conf.CheckPKG('Cg') or not conf.CheckPKG('CgGL'):
print name + " must have cg and cggl to be build"
Return()
if not conf.CheckPKG('GLEW'):
print name + " must have glew to be build"
Return()
# check for xxf86vm
gfxenv['HAVE_XXF86VM'] = gfxenv['HAVE_X11'] and conf.CheckPKG('xxf86vm')
gfxenv['HAVE_XXF86VM'] = conf.CheckPKG('xxf86vm')
conf.Define('HAVE_XXF86VM', gfxenv['HAVE_XXF86VM'])
conf.Finish()

View File

@ -20,5 +20,5 @@ padenv.Append(
CXXFLAGS = [ '-fPIC' ],
LIBS = [ 'common' ],
)
if not env['osx64']:
padenv.SharedLibrary(env['plugin_dir']+name, files)
padenv.SharedLibrary(env['plugin_dir']+name, files)