now core, padsimple and dsp null can be buil in 64bit on osx
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@947 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
63f3e1ab8c
commit
a03f39ac36
|
@ -3,3 +3,22 @@ GFXPlugin = Plugins/libzeroogl.so
|
||||||
DSPPlugin = Plugins/libdsphle.so
|
DSPPlugin = Plugins/libdsphle.so
|
||||||
PadPlugin = Plugins/libPlugin_nJoy_SDL.so
|
PadPlugin = Plugins/libPlugin_nJoy_SDL.so
|
||||||
WiiMotePlugin = Plugins/libPlugin_Wiimote.so
|
WiiMotePlugin = Plugins/libPlugin_Wiimote.so
|
||||||
|
[General]
|
||||||
|
LastFilename =
|
||||||
|
GCMPathes = 0
|
||||||
|
[Core]
|
||||||
|
GFXPlugin = Plugins/libzeroogl.so
|
||||||
|
DSPPlugin = Plugins/libdsphle.so
|
||||||
|
PadPlugin = Plugins/libPlugin_nJoy_SDL.so
|
||||||
|
WiiMotePlugin = Plugins/libPlugin_Wiimote.so
|
||||||
|
HLEBios = True
|
||||||
|
UseDynarec = True
|
||||||
|
UseDualCore = False
|
||||||
|
SkipIdle = True
|
||||||
|
LockThreads = True
|
||||||
|
DefaultGCM =
|
||||||
|
DVDRoot =
|
||||||
|
OptimizeQuantizers = True
|
||||||
|
SelectedLanguage = 0
|
||||||
|
RunCompareServer = False
|
||||||
|
RunCompareClient = False
|
||||||
|
|
12
SConstruct
12
SConstruct
|
@ -173,8 +173,9 @@ if not env['osx64']:
|
||||||
if not conf.CheckSDL('1.0.0'):
|
if not conf.CheckSDL('1.0.0'):
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
|
||||||
if not conf.CheckPKG('ao'):
|
if not env['osx64']:
|
||||||
Exit(1)
|
if not conf.CheckPKG('ao'):
|
||||||
|
Exit(1)
|
||||||
|
|
||||||
# handling wx flags CCFLAGS should be created before
|
# handling wx flags CCFLAGS should be created before
|
||||||
if not env['nowx']:
|
if not env['nowx']:
|
||||||
|
@ -198,15 +199,16 @@ if not env['nowx']:
|
||||||
compileFlags += ['-DUSE_WX',]
|
compileFlags += ['-DUSE_WX',]
|
||||||
|
|
||||||
#osx 64bit need this
|
#osx 64bit need this
|
||||||
#if env['osx64']:
|
if env['osx64']:
|
||||||
# compileFlags += ['\-arch x86_64',]
|
compileFlags += ['-arch' , 'x86_64', '-DOSX64']
|
||||||
|
|
||||||
#get sdl stuff
|
#get sdl stuff
|
||||||
if not env['osx64']:
|
if not env['osx64']:
|
||||||
env.ParseConfig('sdl-config --cflags --libs')
|
env.ParseConfig('sdl-config --cflags --libs')
|
||||||
|
|
||||||
# lib ao (needed for sound plugins)
|
# lib ao (needed for sound plugins)
|
||||||
env.ParseConfig('pkg-config --cflags --libs ao')
|
if not env['osx64']:
|
||||||
|
env.ParseConfig('pkg-config --cflags --libs ao')
|
||||||
|
|
||||||
# add methods from utils to env
|
# add methods from utils to env
|
||||||
env.AddMethod(utils.filterWarnings)
|
env.AddMethod(utils.filterWarnings)
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
#define _CRTDBG_MAP_ALLOC
|
#define _CRTDBG_MAP_ALLOC
|
||||||
#define _CRTDBG_MAP_ALLOC_NEW
|
#define _CRTDBG_MAP_ALLOC_NEW
|
||||||
|
|
||||||
|
#ifdef OSX64
|
||||||
|
#define MAP_32BIT 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CHECK_HEAP_INTEGRITY()
|
#define CHECK_HEAP_INTEGRITY()
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include "VolumeCreator.h"
|
#include "VolumeCreator.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
#if !defined(_LP64) && !defined(__APPLE__)
|
#if !defined(OSX64)
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
#include "CodeWindow.h"
|
#include "CodeWindow.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -36,7 +36,7 @@ static std::string s_DataBasePath_EUR = "Data_EUR";
|
||||||
static std::string s_DataBasePath_USA = "Data_USA";
|
static std::string s_DataBasePath_USA = "Data_USA";
|
||||||
static std::string s_DataBasePath_JAP = "Data_JAP";
|
static std::string s_DataBasePath_JAP = "Data_JAP";
|
||||||
|
|
||||||
#if !defined(_LP64) && !defined(__APPLE__)
|
#if !defined(OSX64)
|
||||||
extern CFrame* main_frame;
|
extern CFrame* main_frame;
|
||||||
extern CCodeWindow* g_pCodeWindow;
|
extern CCodeWindow* g_pCodeWindow;
|
||||||
#endif
|
#endif
|
||||||
|
@ -51,7 +51,7 @@ bool BootCore(const std::string& _rFilename)
|
||||||
{
|
{
|
||||||
SCoreStartupParameter StartUp = SConfig::GetInstance().m_LocalCoreStartupParameter;
|
SCoreStartupParameter StartUp = SConfig::GetInstance().m_LocalCoreStartupParameter;
|
||||||
|
|
||||||
#if !defined(_LP64) && !defined(__APPLE__)
|
#if !defined(OSX64)
|
||||||
if (g_pCodeWindow)
|
if (g_pCodeWindow)
|
||||||
{
|
{
|
||||||
// StartUp.bUseDualCore = code_frame->UseDualCore();
|
// StartUp.bUseDualCore = code_frame->UseDualCore();
|
||||||
|
@ -68,7 +68,7 @@ bool BootCore(const std::string& _rFilename)
|
||||||
SConfig::GetInstance().m_LastFilename = StartUp.m_strFilename;
|
SConfig::GetInstance().m_LastFilename = StartUp.m_strFilename;
|
||||||
StartUp.bRunCompareClient = false;
|
StartUp.bRunCompareClient = false;
|
||||||
StartUp.bRunCompareServer = false;
|
StartUp.bRunCompareServer = false;
|
||||||
#if !defined(_LP64) && !defined(__APPLE__)
|
#if !defined(OSX64)
|
||||||
StartUp.bEnableDebugging = g_pCodeWindow ? true : false; // RUNNING_DEBUG
|
StartUp.bEnableDebugging = g_pCodeWindow ? true : false; // RUNNING_DEBUG
|
||||||
#endif //osx 64
|
#endif //osx 64
|
||||||
std::string BaseDataPath;
|
std::string BaseDataPath;
|
||||||
|
@ -93,7 +93,7 @@ bool BootCore(const std::string& _rFilename)
|
||||||
ini.Get("Core", "SkipIdle", &StartUp.bSkipIdle, StartUp.bSkipIdle);
|
ini.Get("Core", "SkipIdle", &StartUp.bSkipIdle, StartUp.bSkipIdle);
|
||||||
ini.Get("Core", "OptimizeQuantizers", &StartUp.bOptimizeQuantizers, StartUp.bOptimizeQuantizers);
|
ini.Get("Core", "OptimizeQuantizers", &StartUp.bOptimizeQuantizers, StartUp.bOptimizeQuantizers);
|
||||||
}
|
}
|
||||||
#if !defined(_LP64) && !defined(__APPLE__)
|
#if !defined(OSX64)
|
||||||
if(main_frame)
|
if(main_frame)
|
||||||
StartUp.hMainWindow = main_frame->GetRenderHandle();
|
StartUp.hMainWindow = main_frame->GetRenderHandle();
|
||||||
#endif
|
#endif
|
||||||
|
@ -104,7 +104,7 @@ bool BootCore(const std::string& _rFilename)
|
||||||
return(false);
|
return(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(_LP64) && !defined(__APPLE__)
|
#if !defined(OSX64)
|
||||||
Core::SetState(g_pCodeWindow ? Core::CORE_PAUSE : Core::CORE_RUN);
|
Core::SetState(g_pCodeWindow ? Core::CORE_PAUSE : Core::CORE_RUN);
|
||||||
#else
|
#else
|
||||||
Core::SetState(Core::CORE_RUN);
|
Core::SetState(Core::CORE_RUN);
|
||||||
|
|
|
@ -86,7 +86,7 @@ enum
|
||||||
//#include <wx/wxprec.h>
|
//#include <wx/wxprec.h>
|
||||||
|
|
||||||
//#ifndef WX_PRECOMP
|
//#ifndef WX_PRECOMP
|
||||||
#if !defined(__APPLE__)
|
#if !defined(OSX64)
|
||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
bool IsCompressed() const {return m_BlobCompressed;}
|
bool IsCompressed() const {return m_BlobCompressed;}
|
||||||
u64 GetFileSize() const {return m_FileSize;}
|
u64 GetFileSize() const {return m_FileSize;}
|
||||||
u64 GetVolumeSize() const {return m_VolumeSize;}
|
u64 GetVolumeSize() const {return m_VolumeSize;}
|
||||||
#if !defined(__APPLE__)
|
#if !defined(OSX64)
|
||||||
const wxImage& GetImage() const {return m_Image;}
|
const wxImage& GetImage() const {return m_Image;}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ private:
|
||||||
|
|
||||||
DiscIO::IVolume::ECountry m_Country;
|
DiscIO::IVolume::ECountry m_Country;
|
||||||
|
|
||||||
#if !defined(__APPLE__)
|
#if !defined(OSX64)
|
||||||
wxImage m_Image;
|
wxImage m_Image;
|
||||||
#endif
|
#endif
|
||||||
bool m_Valid;
|
bool m_Valid;
|
||||||
|
|
|
@ -78,7 +78,7 @@ void Host_SysMessage(const char *fmt, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Include SDL header so it can hijack main().
|
// Include SDL header so it can hijack main().
|
||||||
#if !defined(_LP64) && !defined(__APPLE__)
|
#if !defined(OSX64)
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
#endif
|
#endif
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
|
|
|
@ -29,10 +29,10 @@ libs = [
|
||||||
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'common', 'z'
|
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'common', 'z'
|
||||||
]
|
]
|
||||||
|
|
||||||
if not env['osx64']:
|
|
||||||
libs = [ 'debwx' ] + libs
|
|
||||||
wxenv = env.Clone()
|
wxenv = env.Clone()
|
||||||
wxenv.Append(
|
if not wxenv['osx64']:
|
||||||
|
libs = [ 'debwx' ] + libs
|
||||||
|
wxenv.Append(
|
||||||
CPPDEFINES = [
|
CPPDEFINES = [
|
||||||
'USE_XPM_BITMAPS',
|
'USE_XPM_BITMAPS',
|
||||||
'wxNEEDS_CHARPP',
|
'wxNEEDS_CHARPP',
|
||||||
|
@ -42,6 +42,19 @@ wxenv.Append(
|
||||||
],
|
],
|
||||||
LIBS = libs
|
LIBS = libs
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
wxenv.Append(
|
||||||
|
CPPDEFINES = [
|
||||||
|
'USE_XPM_BITMAPS',
|
||||||
|
'wxNEEDS_CHARPP',
|
||||||
|
],
|
||||||
|
LINKFLAGS = [
|
||||||
|
'-pthread',
|
||||||
|
'-arch',
|
||||||
|
'x86_64'
|
||||||
|
],
|
||||||
|
LIBS = libs
|
||||||
|
)
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
exeGUI = '../../../../Binary/mac/Dolphin.app/Contents/MacOS/Dolphin'
|
exeGUI = '../../../../Binary/mac/Dolphin.app/Contents/MacOS/Dolphin'
|
||||||
|
@ -72,6 +85,6 @@ else:
|
||||||
exeNoGUI = '../../../../Binary/linux/DolphinNoGUI'
|
exeNoGUI = '../../../../Binary/linux/DolphinNoGUI'
|
||||||
|
|
||||||
objects = [ wxenv.Object(srcFile) for srcFile in files ]
|
objects = [ wxenv.Object(srcFile) for srcFile in files ]
|
||||||
if not env['osx64']:
|
if not wxenv['osx64']:
|
||||||
wxenv.Program(exeGUI, objects + [ 'Main.cpp' ])
|
wxenv.Program(exeGUI, objects + [ 'Main.cpp' ])
|
||||||
wxenv.Program(exeNoGUI, objects + [ 'MainNoGUI.cpp' ])
|
wxenv.Program(exeNoGUI, objects + [ 'MainNoGUI.cpp' ])
|
||||||
|
|
|
@ -23,8 +23,16 @@ files = [
|
||||||
]
|
]
|
||||||
|
|
||||||
dspenv = env.Clone()
|
dspenv = env.Clone()
|
||||||
dspenv.Append(
|
if not dspenv['osx64']:
|
||||||
|
dspenv.Append(
|
||||||
CXXFLAGS = [ '-fPIC' ],
|
CXXFLAGS = [ '-fPIC' ],
|
||||||
LIBS = [ 'common' ],
|
LIBS = [ 'common' ],
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
dspenv.Append(
|
||||||
|
CXXFLAGS = [ '-fPIC','-arch', 'x86_64' ],
|
||||||
|
LINKFLAGS = [ '-arch', 'x86_64' ],
|
||||||
|
LIBS = [ 'common' ],
|
||||||
|
)
|
||||||
|
|
||||||
dspenv.SharedLibrary(output, files)
|
dspenv.SharedLibrary(output, files)
|
||||||
|
|
|
@ -23,7 +23,9 @@
|
||||||
#include "PadSimple.h"
|
#include "PadSimple.h"
|
||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
|
|
||||||
|
#if !defined(OSX64)
|
||||||
#include "GUI/ConfigDlg.h"
|
#include "GUI/ConfigDlg.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "XInput.h"
|
#include "XInput.h"
|
||||||
|
@ -163,7 +165,7 @@ void DllConfig(HWND _hParent)
|
||||||
ConfigDialog frame(&win);
|
ConfigDialog frame(&win);
|
||||||
frame.ShowModal();
|
frame.ShowModal();
|
||||||
win.SetHWND(0);
|
win.SetHWND(0);
|
||||||
#else
|
#elif !defined(OSX64)
|
||||||
ConfigDialog frame(NULL);
|
ConfigDialog frame(NULL);
|
||||||
frame.ShowModal();
|
frame.ShowModal();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -10,11 +10,21 @@ else:
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
"PadSimple.cpp",
|
"PadSimple.cpp",
|
||||||
"XInputBase.cpp",
|
|
||||||
"GUI/ConfigDlg.cpp",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
padenv = env.Clone()
|
padenv = env.Clone()
|
||||||
|
|
||||||
|
if not padenv['osx64']:
|
||||||
|
file += [
|
||||||
|
"GUI/ConfigDlg.cpp",
|
||||||
|
"XInputBase.cpp",
|
||||||
|
]
|
||||||
|
|
||||||
padenv.Append(LIBS = [ 'common' ])
|
padenv.Append(LIBS = [ 'common' ])
|
||||||
if not env['osx64']:
|
|
||||||
padenv.SharedLibrary(output, files)
|
if padenv['osx64']:
|
||||||
|
padenv.Append(
|
||||||
|
CXXFLAGS = [ '-arch', 'x86_64' ],
|
||||||
|
LINKFLAGS = [ '-arch', 'x86_64' ],
|
||||||
|
)
|
||||||
|
|
||||||
|
padenv.SharedLibrary(output, files)
|
||||||
|
|
Loading…
Reference in New Issue