Fix compiling wiiuse on with CMake and SCons

Also fix confusing formatting in a SConscript file

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6395 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
NeoBrainX 2010-11-13 19:36:33 +00:00
parent 7ad7acd248
commit e79fcce1d4
3 changed files with 8 additions and 17 deletions

View File

@ -194,6 +194,7 @@ include_directories(Source/Core/DSPCore/Src)
include_directories(Source/Core/InputCommon/Src)
include_directories(Source/Core/InputUICommon/Src)
include_directories(Source/Core/VideoCommon/Src)
include_directories(Source/Core/wiiuse/Src)
########################################
@ -269,17 +270,6 @@ else(ZLIB_FOUND)
include_directories(Externals/zlib)
endif(ZLIB_FOUND)
if(UNIX OR APPLE)
add_subdirectory(Externals/WiiUse)
include_directories(Externals/WiiUse/Src)
elseif(WIN32)
# use the precompiled ones
# TODO: Use the 64 bit lib on 64 bit systems...
# TODO: If WDK is installed, we can compile this from source as well
find_library(WIIUSE wiiuse PATHS Externals/WiiUse/Win32 NO_DEFAULT_PATH)
include_directories(Externals/WiiUse/Src)
endif()
if(WIN32)
find_library(GLEW glew32s PATHS Externals/GLew)
include_directories(Externals/GLew/include)

View File

@ -98,7 +98,7 @@ if env['flavor'] == 'debug':
env['CPPDEFINES'] += ['_DEBUG']
elif env['flavor'] == 'fastlog':
env['CPPDEFINES'] += ['DEBUGFAST']
env['CPPPATH'] = ['#Source/PluginSpecs']
env['CPPPATH'] = ['#Source/PluginSpecs', 'Source/Core/wiiuse/Src']
env['LIBPATH'] = []
env['LIBS'] = []

View File

@ -97,11 +97,12 @@ elif sys.platform == 'darwin' and env['HAVE_WX']:
env.Fixup(exeGUIdist, exeGUI)
else:
files += [ 'X11Utils.cpp' ]
libs += [ 'SDL' ]
exeGUI = env['binary_dir'] + '/dolphin-emu'
exeNoGUI = env['binary_dir'] + '/dolphin-emu-nogui'
env.InstallAs(env['data_dir'] + '/sys', '#Data/Sys')
env.InstallAs(env['data_dir'] + '/user', '#Data/User')
libs += [ 'SDL' ]
exeGUI = env['binary_dir'] + '/dolphin-emu'
exeNoGUI = env['binary_dir'] + '/dolphin-emu-nogui'
env.InstallAs(env['data_dir'] + '/sys', '#Data/Sys')
env.InstallAs(env['data_dir'] + '/user', '#Data/User')
if env['HAVE_WX']:
env.Program(exeGUI, files, LIBS = wxlibs + libs + env['LIBS'])