mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Make Cg conditional on those platforms for which it is available.
Of course, this doesn't do much good without another shader compiler.. WIP of OS X application bundle building. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5961 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
14
SConstruct
14
SConstruct
@ -86,6 +86,7 @@ ccFlags = [
|
||||
'-fPIC',
|
||||
'-fno-exceptions',
|
||||
'-fno-strict-aliasing',
|
||||
'-fvisibility=hidden',
|
||||
'-msse2',
|
||||
]
|
||||
|
||||
@ -200,21 +201,14 @@ env['RPATH'] = []
|
||||
# OS X specifics
|
||||
if sys.platform == 'darwin':
|
||||
gccflags = ['-arch', 'x86_64', '-arch', 'i386', '-mmacosx-version-min=10.5']
|
||||
gccflags += ['-Wnewline-eof']
|
||||
#gccflags += ['-fvisibility=hidden']
|
||||
env['CCFLAGS'] += gccflags
|
||||
env['CCFLAGS'] += ['-Wnewline-eof']
|
||||
env['CC'] = "gcc-4.2"
|
||||
env['CFLAGS'] += ['-x', 'objective-c']
|
||||
env['CXX'] = "g++-4.2"
|
||||
env['CXXFLAGS'] += ['-x', 'objective-c++']
|
||||
#env['CXXFLAGS'] += ['-D_GLIBCXX_DEBUG']
|
||||
#env['CXXFLAGS'] += ['-D_GLIBCXX_FULLY_DYNAMIC_STRING']
|
||||
env['CCFLAGS'] += ['-Wextra-tokens', '-Wnewline-eof']
|
||||
env['CC'] = "gcc-4.2 -ObjC"
|
||||
env['CXX'] = "g++-4.2 -ObjC++"
|
||||
env['FRAMEWORKS'] += ['AppKit', 'CoreFoundation', 'CoreServices']
|
||||
env['FRAMEWORKS'] += ['AudioUnit', 'CoreAudio']
|
||||
env['FRAMEWORKS'] += ['IOBluetooth', 'IOKit', 'OpenGL']
|
||||
env['LIBS'] += ['iconv']
|
||||
#env['LIBS'] += ['libstdc++-static']
|
||||
env['LINKFLAGS'] += gccflags
|
||||
env['LINKFLAGS'] += ['-Z', '-L/Developer/SDKs/MacOSX10.5.sdk/usr/lib',
|
||||
'-F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks',
|
||||
|
Reference in New Issue
Block a user