2009-01-14 23:48:15 -07:00
|
|
|
# -*- python -*-
|
2008-09-21 13:54:29 -06:00
|
|
|
|
2008-07-12 11:40:22 -06:00
|
|
|
Import('env')
|
2008-07-31 02:38:13 -06:00
|
|
|
import sys
|
|
|
|
|
2008-11-13 01:12:48 -07:00
|
|
|
name = "Plugin_PadSimple"
|
2008-07-31 02:38:13 -06:00
|
|
|
|
2009-01-06 10:18:06 -07:00
|
|
|
if not env['HAVE_X11']:
|
2009-01-12 13:52:45 -07:00
|
|
|
if not env['HAVE_COCOA']:
|
|
|
|
print name + " must have X11 to be built"
|
|
|
|
Return()
|
2008-12-06 15:28:32 -07:00
|
|
|
|
2009-01-12 13:52:45 -07:00
|
|
|
|
2008-08-26 16:28:42 -06:00
|
|
|
files = [
|
2008-09-23 03:28:37 -06:00
|
|
|
"PadSimple.cpp",
|
2008-08-26 16:28:42 -06:00
|
|
|
]
|
2008-09-16 10:50:09 -06:00
|
|
|
padenv = env.Clone()
|
2008-10-24 09:48:36 -06:00
|
|
|
|
2009-01-12 13:52:45 -07:00
|
|
|
|
|
|
|
if padenv['HAVE_COCOA']:
|
|
|
|
compileFlags = [
|
|
|
|
'-x',
|
|
|
|
'objective-c++',
|
|
|
|
]
|
|
|
|
|
2008-12-10 14:07:11 -07:00
|
|
|
if padenv['HAVE_WX']:
|
2009-01-14 23:48:15 -07:00
|
|
|
files += [
|
2008-12-10 14:07:11 -07:00
|
|
|
"GUI/ConfigDlg.cpp",
|
2009-01-12 17:34:36 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if env['HAVE_X11']:
|
2009-01-14 23:48:15 -07:00
|
|
|
files += [
|
2008-12-10 14:07:11 -07:00
|
|
|
"XInputBase.cpp",
|
|
|
|
]
|
2008-10-24 09:48:36 -06:00
|
|
|
|
2009-01-12 17:34:36 -07:00
|
|
|
if padenv['HAVE_COCOA']:
|
|
|
|
padenv.Append( CXXFLAGS = compileFlags,
|
|
|
|
LIBS = [ 'common' ])
|
|
|
|
else:
|
|
|
|
padenv.Append(LIBS = [ 'common' ])
|
2008-10-24 09:48:36 -06:00
|
|
|
|
2008-11-13 01:12:48 -07:00
|
|
|
padenv.SharedLibrary(env['plugin_dir']+name, files)
|