On linux don't compile and link against lzo, soil, and sfml "Externals."
Instead use system libraries liblzo2-dev, libsoil-dev, and libsfml-dev git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5105 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
74a6b5638f
commit
73d575c5c2
|
@ -19,4 +19,4 @@ env_sfml = env.Clone(
|
||||||
CXXFLAGS = env.filterWarnings(env['CXXFLAGS']),
|
CXXFLAGS = env.filterWarnings(env['CXXFLAGS']),
|
||||||
)
|
)
|
||||||
|
|
||||||
env_sfml.StaticLibrary(env['local_libs'] + "sfml", files)
|
env_sfml.StaticLibrary(env['local_libs'] + "sfml-network", files)
|
||||||
|
|
|
@ -15,4 +15,4 @@ env_soil = env.Clone(
|
||||||
parse_flags = ['-fPIC']
|
parse_flags = ['-fPIC']
|
||||||
)
|
)
|
||||||
|
|
||||||
env_soil.StaticLibrary(env['local_libs'] + "libsoil", files)
|
env_soil.StaticLibrary(env['local_libs'] + "libSOIL", files)
|
||||||
|
|
28
SConstruct
28
SConstruct
|
@ -50,10 +50,7 @@ include_paths = [
|
||||||
basedir + 'Source/Core/Core/Src',
|
basedir + 'Source/Core/Core/Src',
|
||||||
basedir + 'Source/Core/DebuggerWX/Src',
|
basedir + 'Source/Core/DebuggerWX/Src',
|
||||||
basedir + 'Externals/Bochs_disasm',
|
basedir + 'Externals/Bochs_disasm',
|
||||||
basedir + 'Externals/LZO',
|
|
||||||
basedir + 'Externals/SOIL',
|
|
||||||
basedir + 'Externals/Lua',
|
basedir + 'Externals/Lua',
|
||||||
basedir + 'Externals/SFML/include',
|
|
||||||
basedir + 'Externals/WiiUseSrc/Src',
|
basedir + 'Externals/WiiUseSrc/Src',
|
||||||
basedir + 'Source/Core/VideoCommon/Src',
|
basedir + 'Source/Core/VideoCommon/Src',
|
||||||
basedir + 'Source/Core/InputCommon/Src',
|
basedir + 'Source/Core/InputCommon/Src',
|
||||||
|
@ -62,11 +59,15 @@ include_paths = [
|
||||||
basedir + 'Source/Core/DSPCore/Src',
|
basedir + 'Source/Core/DSPCore/Src',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
include_paths += [
|
||||||
|
basedir + 'Externals/LZO', # TODO: Macs have port of lzo, use that instead
|
||||||
|
basedir + 'Externals/SOIL',
|
||||||
|
basedir + 'Externals/SFML/include',
|
||||||
|
]
|
||||||
|
|
||||||
dirs = [
|
dirs = [
|
||||||
'Externals/Bochs_disasm',
|
'Externals/Bochs_disasm',
|
||||||
'Externals/LZO',
|
|
||||||
'Externals/SOIL',
|
|
||||||
'Externals/SFML/src',
|
|
||||||
'Externals/Lua',
|
'Externals/Lua',
|
||||||
'Externals/WiiUseSrc/Src',
|
'Externals/WiiUseSrc/Src',
|
||||||
'Source/Core/Common/Src',
|
'Source/Core/Common/Src',
|
||||||
|
@ -88,6 +89,13 @@ dirs = [
|
||||||
'Source/Core/DebuggerWX/Src',
|
'Source/Core/DebuggerWX/Src',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
dirs += [
|
||||||
|
'Externals/LZO', # TODO: Macs have port of lzo, use that instead
|
||||||
|
'Externals/SOIL',
|
||||||
|
'Externals/SFML/src',
|
||||||
|
]
|
||||||
|
|
||||||
builders = {}
|
builders = {}
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
from plistlib import writePlist
|
from plistlib import writePlist
|
||||||
|
@ -338,7 +346,13 @@ if sys.platform == 'darwin':
|
||||||
else:
|
else:
|
||||||
env['HAVE_X11'] = conf.CheckPKG('x11')
|
env['HAVE_X11'] = conf.CheckPKG('x11')
|
||||||
env['HAVE_COCOA'] = 0
|
env['HAVE_COCOA'] = 0
|
||||||
|
# SOIL
|
||||||
|
env['HAVE_SOIL'] = conf.CheckPKG('SOIL')
|
||||||
|
# LZO
|
||||||
|
env['HAVE_LZO'] = conf.CheckPKG('lzo2')
|
||||||
|
# sfml
|
||||||
|
env['HAVE_SFML'] = conf.CheckPKG('sfml-network') and conf.CheckCXXHeader("SFML/Network/Ftp.hpp")
|
||||||
|
|
||||||
# handling wx flags CCFLAGS should be created before
|
# handling wx flags CCFLAGS should be created before
|
||||||
wxmods = ['aui', 'adv', 'core', 'base']
|
wxmods = ['aui', 'adv', 'core', 'base']
|
||||||
|
|
||||||
|
|
|
@ -137,9 +137,11 @@ else:
|
||||||
libs = [
|
libs = [
|
||||||
'bdisasm',
|
'bdisasm',
|
||||||
'inputcommon',
|
'inputcommon',
|
||||||
'lua',
|
'lua'
|
||||||
'sfml'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
libs = ['sfml-network'] + libs
|
||||||
|
|
||||||
env_core = env.Clone();
|
env_core = env.Clone();
|
||||||
env_core.StaticLibrary(env['local_libs'] + 'core', files, LIBS=libs)
|
env_core.StaticLibrary(env['local_libs'] + 'core', files, LIBS=libs)
|
||||||
|
|
|
@ -31,7 +31,11 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
#include <lzo/lzo1x.h>
|
||||||
|
#else
|
||||||
#include "minilzo.h"
|
#include "minilzo.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// TODO: Move to namespace
|
// TODO: Move to namespace
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,13 @@ files = [
|
||||||
]
|
]
|
||||||
|
|
||||||
libs = [
|
libs = [
|
||||||
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon',
|
'core', 'discio', 'bdisasm', 'videocommon',
|
||||||
'inputcommon', 'common', 'lua', 'z', 'sfml'
|
'inputcommon', 'common', 'lua', 'z'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
libs = ['sfml-network', 'minilzo'] + libs
|
||||||
|
|
||||||
if wxenv['HAVE_WX']:
|
if wxenv['HAVE_WX']:
|
||||||
files += [
|
files += [
|
||||||
'AboutDolphin.cpp',
|
'AboutDolphin.cpp',
|
||||||
|
|
|
@ -20,7 +20,11 @@
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#ifdef __linux__
|
||||||
|
#include <SOIL/SOIL.h>
|
||||||
|
#else
|
||||||
#include "SOIL.h"
|
#include "SOIL.h"
|
||||||
|
#endif
|
||||||
#include "CommonPaths.h"
|
#include "CommonPaths.h"
|
||||||
#include "FileUtil.h"
|
#include "FileUtil.h"
|
||||||
#include "FileSearch.h"
|
#include "FileSearch.h"
|
||||||
|
|
|
@ -31,8 +31,10 @@ compileFlags = [
|
||||||
linkFlags = [
|
linkFlags = [
|
||||||
]
|
]
|
||||||
libs = [
|
libs = [
|
||||||
'videocommon', 'soil', 'common'
|
'videocommon', 'common'
|
||||||
]
|
]
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
libs = ['SOIL'] + libs
|
||||||
|
|
||||||
gfxenv = env.Clone()
|
gfxenv = env.Clone()
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,10 @@ compileFlags = [
|
||||||
linkFlags = [
|
linkFlags = [
|
||||||
]
|
]
|
||||||
libs = [
|
libs = [
|
||||||
'videocommon', 'soil', 'common'
|
'videocommon', 'common'
|
||||||
]
|
]
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
libs = ['SOIL'] + libs
|
||||||
|
|
||||||
gfxenv = env.Clone()
|
gfxenv = env.Clone()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue