mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-29 18:30:10 +00:00
6d70c14d12
and just operate on lists of object files instead. This helps with LTO since LLVM/clang LTO is completely broken by static libraries. It also helps identify symbol clashes between components like the former plugins. Many linkers also expect static libraries to form a strict DAG which turns out be a difficult rule to uphold in practice, especially since some of our platforms aren't picky about this. LTO builds currently appears to crash at runtime because of the static wx libs. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7056 8ced0084-cf51-0410-be5f-012b33b47a6e
47 lines
902 B
Python
47 lines
902 B
Python
# -*- python -*-
|
|
|
|
Import('env')
|
|
import sys
|
|
|
|
if sys.platform == 'darwin':
|
|
Return()
|
|
|
|
if env.has_key('shared_sdl') and env['shared_sdl']:
|
|
env['LIBS'] += 'SDL'
|
|
Return()
|
|
|
|
files = [
|
|
'src/SDL.c',
|
|
'src/SDL_error.c',
|
|
'src/SDL_fatal.c',
|
|
'src/joystick/SDL_joystick.c',
|
|
]
|
|
|
|
if sys.platform.count('bsd'):
|
|
env['LIBS'] += ['usbhid']
|
|
files += [
|
|
'src/joystick/bsd/SDL_sysjoystick.c',
|
|
'src/stdlib/SDL_malloc.c',
|
|
'src/stdlib/SDL_string.c',
|
|
]
|
|
elif sys.platform == 'darwin':
|
|
files += [
|
|
'src/joystick/darwin/SDL_sysjoystick.c',
|
|
]
|
|
elif sys.platform == 'linux2':
|
|
files += [
|
|
'src/joystick/linux/SDL_sysjoystick.c',
|
|
'src/stdlib/SDL_string.c',
|
|
]
|
|
elif sys.platform == 'win32':
|
|
files += [
|
|
'src/joystick/win32/SDL_mmjoystick.c',
|
|
]
|
|
else:
|
|
files += [
|
|
'src/joystick/dummy/SDL_sysjoystick.c',
|
|
]
|
|
|
|
env['CPPPATH'] += ['#Externals/SDL', '#Externals/SDL/include']
|
|
env['LIBS'] += env.StaticObject(files)
|