lzo compiles on linux (almost working)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@496 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-09-12 09:15:54 +00:00
parent 7230dc58da
commit e5a126e231
4 changed files with 25 additions and 2 deletions

17
Externals/LZO/SConscript vendored Normal file
View File

@ -0,0 +1,17 @@
Import('env')
files = [
"minilzo.c",
]
def filterWarnings(flags):
return ' '.join(
flag
for flag in flags.split()
if not flag.startswith('-W')
)
env_lzo = env.Copy(
CCFLAGS = filterWarnings(env['CCFLAGS']),
CXXFLAGS = filterWarnings(env['CXXFLAGS']),
)
env_lzo.StaticLibrary("lzo", files)

View File

@ -40,12 +40,14 @@ include_paths = [
'../../../Core/Core/Src',
'../../../Core/DebuggerWX/src',
'../../../../Externals/Bochs_disasm',
'../../../../Externals/LZO',
'../../../Core/VideoCommon/Src',
]
dirs = [
"Source/Core/Common/Src",
"Externals/Bochs_disasm",
"Externals/LZO",
"Source/Core/Core/Src",
"Source/Core/DiscIO/Src",
"Source/Core/DebuggerWX/src",

View File

@ -86,4 +86,8 @@ files = ["Console.cpp",
"HLE/HLE_Misc.cpp",
"HLE/HLE_OS.cpp",
]
env.StaticLibrary("core", files, LIBS="bdisasm")
libs = [
'lzo', 'bdisasm'
]
env.StaticLibrary("core", files, LIBS=libs)

View File

@ -17,7 +17,7 @@ files = [
'cmdline.c',
]
libs = [
'debwx', 'core', 'discio', 'bdisasm', 'videocommon', 'common', 'z'
'debwx', 'core', 'lzo', 'discio', 'bdisasm', 'videocommon', 'common', 'z'
]
wxenv = env.Copy()