diff --git a/Externals/LZO/lzo/lzo1x.h b/Externals/LZO/lzo/lzo1x.h new file mode 100644 index 0000000000..c7955edf69 --- /dev/null +++ b/Externals/LZO/lzo/lzo1x.h @@ -0,0 +1 @@ +#include "minilzo.h" diff --git a/Externals/SOIL/SOIL/SOIL.h b/Externals/SOIL/SOIL/SOIL.h new file mode 100644 index 0000000000..260875d4c4 --- /dev/null +++ b/Externals/SOIL/SOIL/SOIL.h @@ -0,0 +1 @@ +#include "SOIL/../SOIL.h" diff --git a/SConstruct b/SConstruct index 2c7e366e23..f8aebfa58f 100644 --- a/SConstruct +++ b/SConstruct @@ -248,8 +248,6 @@ if sys.platform == 'darwin': env['plugin_dir'] = env['prefix'] + 'Dolphin.app/Contents/PlugIns/' env['data_dir'] = env['prefix'] + 'Dolphin.app/Contents/' -env['LIBPATH'].append(env['local_libs']) - conf = env.Configure(custom_tests = tests, config_h="Source/Core/Common/Src/Config.h") @@ -276,22 +274,18 @@ shared['glew'] = shared['lzo'] = shared['sdl'] = \ shared['soil'] = shared['sfml'] = shared['zlib'] = 0 if not sys.platform == 'darwin': shared['glew'] = conf.CheckPKG('GLEW') - #shared['lzo'] = conf.CheckPKG('lzo2') XXX + shared['lzo'] = conf.CheckPKG('lzo2') shared['sdl'] = conf.CheckPKG('SDL') - #shared['soil'] = conf.CheckPKG('SOIL') XXX + shared['soil'] = conf.CheckPKG('SOIL') # TODO: Check the version of sfml. It should be at least version 1.5 - #shared['sfml'] = conf.CheckPKG('sfml-network') and \ - # conf.CheckCXXHeader("SFML/Network/Ftp.hpp") XXX + shared['sfml'] = conf.CheckPKG('sfml-network') and \ + conf.CheckCXXHeader("SFML/Network/Ftp.hpp") shared['zlib'] = conf.CheckPKG('z') for lib in shared: if not shared[lib]: print "Shared library " + lib + " not detected, " \ "falling back to the static library" -conf.Define('SHARED_SOIL', shared['soil']) -conf.Define('SHARED_LZO', shared['lzo']) -conf.Define('SHARED_SFML', shared['sfml']) - if shared['glew'] == 0: env['CPPPATH'] += [basedir + 'Externals/GLew/include'] dirs += ['Externals/GLew'] @@ -433,6 +427,8 @@ conf.Define('USE_OPROFILE', env['USE_OPROFILE']) # After all configuration tests are done conf.Finish() +env['LIBPATH'].append(env['local_libs']) + rev = utils.GenerateRevFile(env['flavor'], "Source/Core/Common/Src/svnrev_template.h", "Source/Core/Common/Src/svnrev.h") diff --git a/Source/Core/Core/Src/State.cpp b/Source/Core/Core/Src/State.cpp index ee110d5171..b4ae93bde8 100644 --- a/Source/Core/Core/Src/State.cpp +++ b/Source/Core/Core/Src/State.cpp @@ -31,11 +31,7 @@ #include -#if defined(SHARED_LZO) && SHARED_LZO #include -#else -#include "minilzo.h" -#endif // TODO: Move to namespace diff --git a/Source/Core/VideoCommon/Src/HiresTextures.cpp b/Source/Core/VideoCommon/Src/HiresTextures.cpp index 2a0d4d4e89..516bf44492 100644 --- a/Source/Core/VideoCommon/Src/HiresTextures.cpp +++ b/Source/Core/VideoCommon/Src/HiresTextures.cpp @@ -20,11 +20,7 @@ #include #include #include -#if defined(SHARED_SOIL) && SHARED_SOIL #include -#else -#include "SOIL.h" -#endif #include "CommonPaths.h" #include "FileUtil.h" #include "FileSearch.h"