mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
added scons wxconfig=path flag
fixed lib detection git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1472 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -18,7 +18,7 @@ def CheckPKGConfig(context, version):
|
||||
|
||||
def CheckFramework(context, name):
|
||||
ret = 0
|
||||
if (platform.system() == 'darwin'):
|
||||
if (platform.system().lower() == 'darwin'):
|
||||
context.Message( '\nLooking for framework %s... ' % name )
|
||||
lastLINKFLAGS = context.env['LINKFLAGS']
|
||||
context.env.Append(LINKFLAGS = [ '-framework', name ])
|
||||
@ -32,18 +32,19 @@ def CheckFramework(context, name):
|
||||
|
||||
return ret
|
||||
|
||||
# TODO: We should use the scons one instead
|
||||
def CheckLib(context, name):
|
||||
context.Message( 'Looking for lib %s... ' % name )
|
||||
lastLIBS = context.env['LIBS']
|
||||
context.env.Append(LIBS = name)
|
||||
context.env.Append(LIBS = [name])
|
||||
ret = context.TryLink("""
|
||||
int main(int argc, char **argv) {
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
""",'.c')
|
||||
if not ret:
|
||||
context.env.Replace(LIBS = lastLIBS)
|
||||
|
||||
|
||||
return ret
|
||||
|
||||
def ConfigPKG(context, name):
|
||||
|
Reference in New Issue
Block a user