add cocoa in ogl plugin

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@976 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
tmator
2008-10-27 20:29:32 +00:00
parent 62b49ea2d6
commit a7be7689c1
5 changed files with 43 additions and 16 deletions

View File

@ -13,9 +13,17 @@ files = [
]
padenv = env.Clone()
padenv.Append(
CXXFLAGS = [ '-fPIC' ],
LIBS = [ 'common' ],
)
if not env['osx64']:
padenv.SharedLibrary(output, files)
if padenv['osx64']:
padenv.Append(
CXXFLAGS = [ '-arch', 'x86_64' ],
LINKFLAGS = [ '-arch', 'x86_64' ],
LIBS = [ 'common' ],
)
else:
padenv.Append(
CXXFLAGS = [ '-fPIC' ],
LIBS = [ 'common' ],
)
padenv.SharedLibrary(output, files)

View File

@ -1,4 +1,6 @@
#if !defined(OSX64)
#include <wx/aboutdlg.h>
#endif
#include "Common.h"
#include "StringUtil.h"
@ -145,11 +147,13 @@ extern "C" void GetDllInfo (PLUGIN_INFO* _PluginInfo)
extern "C" void DllAbout(HWND _hParent)
{
#if !defined(OSX64)
wxAboutDialogInfo info;
info.SetName(_T("Wiimote test plugin"));
info.AddDeveloper(_T("masken (masken3@gmail.com)"));
info.SetDescription(_T("Wiimote test plugin"));
wxAboutBox(info);
#endif
}
extern "C" void DllConfig(HWND _hParent)