diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-17 22:12:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-17 22:12:21 +0000 |
commit | 7884727e78f9e2253b2b6d8ef441fa07272fe950 (patch) | |
tree | 4423ba4629082439a5c1be07e94682c1d3d41f80 /gtk2_ardour/wscript | |
parent | 0102b1dc93f0ad0a5ba5516cd3cc24b9cd8e240b (diff) |
massive changes to waf build scripts so that nearly everything "should" be working now except for i18n (OSC is not quite right) ; some preliminary work on post-main-out handling, incomplete; a couple of fixes from -Wall and valgrind
git-svn-id: svn://localhost/ardour2/branches/3.0@5371 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/wscript')
-rw-r--r-- | gtk2_ardour/wscript | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index 299e3e0c53..d847ee311c 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -39,9 +39,6 @@ def configure(conf): conf.check_tool('misc') # subst tool - conf.env.append_value('CCFLAGS', '-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE') - conf.env.append_value('CXXFLAGS', '-DENABLE_NLS') - conf.write_config_header('gtk2ardour-config.h') # TODO @@ -224,17 +221,17 @@ def build(bld): version.cc waveview.cc ''' - obj.source += ' x11.cc' obj.includes = ['.'] obj.name = 'gtk2_ardour' obj.target = 'ardour-3.0' obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.uselib = 'UUID FLAC GLIBMM GTHREAD GTK GNOMECANVAS OGG ALSA' obj.uselib += ' GTKMM GNOMECANVASMM' - obj.uselib_local = '''libpbd libmidipp libtaglib libardour libsurfaces + obj.uselib_local = '''libpbd libmidipp libtaglib libardour libardour_cp libgtkmm2ext libtaglib''' - obj.cxxflags = ['-DVERSIONSTRING="' + GTK2_ARDOUR_VERSION + '"'] - obj.cxxflags += ['-DPACKAGE="gtk2_ardour"'] + obj.cflags = ['-DPACKAGE="gtk2_ardour"'] + obj.cxxflags = ['-DPACKAGE="gtk2_ardour"'] + obj.cxxflags += ['-DVERSIONSTRING="' + GTK2_ARDOUR_VERSION + '"'] obj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIRNAME']) + '"'] obj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIRNAME']) + '"'] obj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIRNAME']) + '"'] @@ -244,6 +241,27 @@ def build(bld): obj.source += ' lv2_plugin_ui.cc ' obj.uselib += ' SLV2 ' + if bld.env['FREESOUND']: + obj.source += 'sfdb_freesound_mootcher.cc ' + + if bld.env['VST']: + obj.source += ' vst_pluginui.cc ' + obj.cxxflags += [ '-DVST_SUPPORT' ] + + if bld.env['GTKOSX']: + obj.features += ' objc ' + obj.source += ' cocoacarbon.mm ' + obj.cxxflags += [ '-DTOP_MENUBAR', '-DGTKOSX' ] + obj.linkflags += [ '-framework', 'AppKit', '-framework', 'CoreAudioKit' ] + + if bld.env['AUDIOUNITS']: + obj.source += ' au_pluginui.mm ' + obj.cxxflags += [ '-DHAVE_AUDIOUNITS' ] + obj.uselib_local += ' libappleutility ' + + else: + obj.source += ' x11.cc ' + # Wrappers wrapper_subst_dict = { |