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:
parent
7ad7acd248
commit
e79fcce1d4
|
@ -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)
|
||||
|
|
|
@ -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'] = []
|
||||
|
||||
|
|
|
@ -97,6 +97,7 @@ 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'
|
||||
|
|
Loading…
Reference in New Issue