Fix OS X build.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6997 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2011-01-31 01:53:57 +00:00
parent fbaf965995
commit 18bb65b300
11 changed files with 16 additions and 52 deletions

View File

@ -331,14 +331,6 @@ dirs = [
'Externals/SFML/src', 'Externals/SFML/src',
#'Externals/wxWidgets', #'Externals/wxWidgets',
'Externals/zlib', 'Externals/zlib',
]
if sys.platform == 'darwin':
dirs += ['Source/Plugins/Plugin_VideoOGL/Src']
else:
dirs += ['Source/Plugins/Plugin_VideoSoftware/Src']
dirs += [
'Source/Core/AudioCommon/Src', 'Source/Core/AudioCommon/Src',
'Source/Core/Common/Src', 'Source/Core/Common/Src',
'Source/Core/Core/Src', 'Source/Core/Core/Src',
@ -350,6 +342,8 @@ dirs += [
'Source/Core/VideoCommon/Src', 'Source/Core/VideoCommon/Src',
'Source/Core/VideoUICommon/Src', 'Source/Core/VideoUICommon/Src',
'Source/DSPTool/Src', 'Source/DSPTool/Src',
'Source/Plugins/Plugin_VideoOGL/Src',
#'Source/Plugins/Plugin_VideoSoftware/Src',
'Source/UnitTests', 'Source/UnitTests',
] ]

View File

@ -4,7 +4,6 @@ set(SRCS Src/ABI.cpp
Src/ColorUtil.cpp Src/ColorUtil.cpp
Src/ConsoleListener.cpp Src/ConsoleListener.cpp
Src/CPUDetect.cpp Src/CPUDetect.cpp
Src/DynamicLibrary.cpp
Src/FileSearch.cpp Src/FileSearch.cpp
Src/FileUtil.cpp Src/FileUtil.cpp
Src/Hash.cpp Src/Hash.cpp
@ -17,8 +16,6 @@ set(SRCS Src/ABI.cpp
Src/MsgHandler.cpp Src/MsgHandler.cpp
Src/NandPaths.cpp Src/NandPaths.cpp
Src/OpenCL.cpp Src/OpenCL.cpp
Src/Plugin.cpp
Src/PluginVideo.cpp
Src/SDCardUtil.cpp Src/SDCardUtil.cpp
Src/StringUtil.cpp Src/StringUtil.cpp
Src/SymbolDB.cpp Src/SymbolDB.cpp
@ -27,6 +24,7 @@ set(SRCS Src/ABI.cpp
Src/Thunk.cpp Src/Thunk.cpp
Src/Timer.cpp Src/Timer.cpp
Src/Version.cpp Src/Version.cpp
Src/VideoBackendBase.cpp
Src/x64Analyzer.cpp Src/x64Analyzer.cpp
Src/x64Emitter.cpp Src/x64Emitter.cpp
Src/Crypto/aes_cbc.cpp Src/Crypto/aes_cbc.cpp

View File

@ -18,7 +18,6 @@ files = [
"ColorUtil.cpp", "ColorUtil.cpp",
"ConsoleListener.cpp", "ConsoleListener.cpp",
"CPUDetect.cpp", "CPUDetect.cpp",
"DynamicLibrary.cpp",
"FileSearch.cpp", "FileSearch.cpp",
"FileUtil.cpp", "FileUtil.cpp",
"Hash.cpp", "Hash.cpp",
@ -31,8 +30,6 @@ files = [
"MsgHandler.cpp", "MsgHandler.cpp",
"NandPaths.cpp", "NandPaths.cpp",
"OpenCL.cpp", "OpenCL.cpp",
"Plugin.cpp",
"PluginVideo.cpp",
"SDCardUtil.cpp", "SDCardUtil.cpp",
"StringUtil.cpp", "StringUtil.cpp",
"SymbolDB.cpp", "SymbolDB.cpp",
@ -41,6 +38,7 @@ files = [
"Thunk.cpp", "Thunk.cpp",
"Timer.cpp", "Timer.cpp",
"Version.cpp", "Version.cpp",
"VideoBackendBase.cpp",
"x64Emitter.cpp", "x64Emitter.cpp",
"x64Analyzer.cpp", "x64Analyzer.cpp",
"Crypto/aes_cbc.cpp", "Crypto/aes_cbc.cpp",

View File

@ -12,7 +12,6 @@ set(SRCS Src/ActionReplay.cpp
Src/MemTools.cpp Src/MemTools.cpp
Src/OnFrame.cpp Src/OnFrame.cpp
Src/PatchEngine.cpp Src/PatchEngine.cpp
Src/PluginManager.cpp
Src/PluginDSP.cpp Src/PluginDSP.cpp
Src/State.cpp Src/State.cpp
Src/stdafx.cpp Src/stdafx.cpp

View File

@ -15,7 +15,6 @@ files = [
"OnFrame.cpp", "OnFrame.cpp",
"MemTools.cpp", "MemTools.cpp",
"PatchEngine.cpp", "PatchEngine.cpp",
"PluginManager.cpp",
"PluginDSP.cpp", "PluginDSP.cpp",
"LuaInterface.cpp", "LuaInterface.cpp",
"State.cpp", "State.cpp",

View File

@ -252,10 +252,8 @@ void CConfigMain::UpdateGUI()
PathsPage->Disable(); PathsPage->Disable();
#if defined _WIN32 || defined __linux__
// Disable stuff on PluginsPage // Disable stuff on PluginsPage
GraphicSelection->Disable(); GraphicSelection->Disable();
#endif
} }
} }
@ -876,7 +874,6 @@ void CConfigMain::CreateGUIControls()
PathsPage->SetSizer(sPathsPage); PathsPage->SetSizer(sPathsPage);
#if defined _WIN32 || defined __linux__
// Plugins page // Plugins page
//sbGraphicsPlugin = new wxStaticBoxSizer(wxHORIZONTAL, PluginsPage, _("Graphics")); //sbGraphicsPlugin = new wxStaticBoxSizer(wxHORIZONTAL, PluginsPage, _("Graphics"));
//GraphicSelection = new wxChoice(PluginsPage, ID_GRAPHIC_CB, wxDefaultPosition, wxDefaultSize, 0, NULL, 0, wxDefaultValidator); //GraphicSelection = new wxChoice(PluginsPage, ID_GRAPHIC_CB, wxDefaultPosition, wxDefaultSize, 0, NULL, 0, wxDefaultValidator);
@ -891,7 +888,6 @@ void CConfigMain::CreateGUIControls()
//sPluginsPage->Add(sbGraphicsPlugin, 0, wxEXPAND|wxALL, 5); //sPluginsPage->Add(sbGraphicsPlugin, 0, wxEXPAND|wxALL, 5);
//PluginsPage->SetSizer(sPluginsPage); //PluginsPage->SetSizer(sPluginsPage);
#endif
m_Ok = new wxButton(this, wxID_OK); m_Ok = new wxButton(this, wxID_OK);

View File

@ -7,9 +7,10 @@ from SconsTests import utils
files = ['BootManager.cpp'] files = ['BootManager.cpp']
# 'plugin_videosoftware',
libs = [ libs = [
'core', 'core', 'discio', 'plugin_videoogl',
'audiocommon', 'common', 'discio', 'inputcommon', 'audiocommon', 'common', 'inputcommon', 'videocommon',
'GLEW', 'SOIL', 'bdisasm', 'lua', 'lzo2', 'sfml-network', 'z', 'GLEW', 'SOIL', 'bdisasm', 'lua', 'lzo2', 'sfml-network', 'z',
] ]
@ -55,12 +56,11 @@ else:
env.StaticLibrary(env['local_libs'] + "dolphinwx", libfiles) env.StaticLibrary(env['local_libs'] + "dolphinwx", libfiles)
wxlibs += ['debwx', 'debugger_ui_util', 'dolphinwx'] wxlibs += ['debwx', 'debugger_ui_util', 'dolphinwx', 'videouicommon']
if sys.platform == 'win32': if sys.platform == 'win32':
files += [ "stdafx.cpp" ] files += [ "stdafx.cpp" ]
elif sys.platform == 'darwin': elif sys.platform == 'darwin':
ldflags += [ '-Wl,-force_load,' + env['libvideo'][0].path ]
ldflags += [ '-Xarch_i386', '-Wl,-framework,QuickTime' ] ldflags += [ '-Xarch_i386', '-Wl,-framework,QuickTime' ]
ldflags += [ '-weak_framework', 'OpenCL' ] ldflags += [ '-weak_framework', 'OpenCL' ]
@ -126,8 +126,6 @@ elif sys.platform == 'darwin':
else: else:
files += [ 'X11Utils.cpp' ] files += [ 'X11Utils.cpp' ]
libs += [ 'SDL', 'clrun' ] libs += [ 'SDL', 'clrun' ]
ldflags += [ '-Wl,--whole-archive,' + env['libvideo'][0].path ]
ldflags += [ '-Wl,--no-whole-archive' ]
if env['HAVE_WX']: if env['HAVE_WX']:
exe = env['binary_dir'] + '/dolphin-emu' exe = env['binary_dir'] + '/dolphin-emu'
else: else:
@ -138,5 +136,4 @@ else:
libs = wxlibs + libs + env['LIBS'] libs = wxlibs + libs + env['LIBS']
linkflags = ldflags + env['LINKFLAGS'] linkflags = ldflags + env['LINKFLAGS']
env.Depends(exe, env['libvideo'])
env.Program(exe, files, LIBS = libs, LINKFLAGS = linkflags) env.Program(exe, files, LIBS = libs, LINKFLAGS = linkflags)

View File

@ -54,7 +54,12 @@ enum {
VB_HAS_UVTEXMTXSHIFT=13, VB_HAS_UVTEXMTXSHIFT=13,
}; };
#ifdef WIN32
#define LOADERDECL __cdecl #define LOADERDECL __cdecl
#else
#define LOADERDECL
#endif
typedef void (LOADERDECL *TPipelineFunction)(); typedef void (LOADERDECL *TPipelineFunction)();
enum VarType enum VarType

View File

@ -19,9 +19,4 @@ files = [
'GLUtil.cpp' 'GLUtil.cpp'
] ]
env['LIBS'] += ['videocommon'] env.StaticLibrary(env['local_libs'] + 'plugin_videoogl', files)
if env['HAVE_WX']:
env['LIBS'] += [ 'videouicommon' ]
env['libvideo'] = env.StaticLibrary(env['local_libs'] + 'video', files)

View File

@ -37,21 +37,4 @@ if env['HAVE_WX']:
if sys.platform == 'win32': if sys.platform == 'win32':
files += [ 'Win32.cpp' ] files += [ 'Win32.cpp' ]
#env['LIBS'] += ['videocommon'] env.StaticLibrary(env['local_libs'] + 'plugin_videosoftware', files)
#
#if env['HAVE_WX']:
# env['LIBS'] += [ 'videouicommon' ]
# XXX partially converted to libvideocommon, but there are still conflicts
files += [
'../../../Core/VideoCommon/Src/ImageWrite.cpp',
'../../../Core/VideoCommon/Src/IndexGenerator.cpp',
'../../../Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp',
'../../../Core/VideoCommon/Src/TextureDecoder.cpp',
'../../../Core/VideoCommon/Src/VertexLoader_Color.cpp',
'../../../Core/VideoCommon/Src/VertexLoader_Normal.cpp',
'../../../Core/VideoCommon/Src/VertexLoader_Position.cpp',
'../../../Core/VideoCommon/Src/VertexLoader_TextCoord.cpp',
'../../../Core/VideoCommon/Src/VertexManagerBase.cpp',
]
env['libvideo'] = env.StaticLibrary(env['local_libs'] + 'video', files)

View File

@ -189,4 +189,4 @@ void VideoBackend::Video_AbortFrame(void)
} }
} }