From 4ca1fe7993adf63ea3f35958f63dd20ee546e7ae Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 19 Jan 2008 03:49:52 +0000 Subject: [PATCH] Merge with trunk R2935. git-svn-id: svn://localhost/ardour2/branches/3.0@2943 d708f5d6-7413-0410-9779-e7cbd77b26cf --- SConstruct | 16 +- gtk2_ardour/SConscript | 22 +- gtk2_ardour/about.cc | 4 +- gtk2_ardour/ardour3_ui_default.conf | 3 +- gtk2_ardour/ardour_ui.cc | 664 +++++++++++++--------------- gtk2_ardour/ardour_ui.h | 13 +- gtk2_ardour/ardour_ui_dependents.cc | 3 + gtk2_ardour/ardour_ui_ed.cc | 11 +- gtk2_ardour/audio_region_view.cc | 1 + gtk2_ardour/canvas-waveview.c | 494 ++++++++++++++++++--- gtk2_ardour/canvas-waveview.h | 6 +- gtk2_ardour/canvas_vars.h | 1 + gtk2_ardour/editor.cc | 8 +- gtk2_ardour/editor.h | 7 +- gtk2_ardour/editor_actions.cc | 8 +- gtk2_ardour/editor_ops.cc | 35 +- gtk2_ardour/main.cc | 27 +- gtk2_ardour/new_session_dialog.cc | 7 +- gtk2_ardour/plugin_selector.cc | 9 + gtk2_ardour/plugin_selector.h | 1 + gtk2_ardour/route_time_axis.cc | 8 +- gtk2_ardour/splash.cc | 60 +++ gtk2_ardour/splash.h | 41 ++ gtk2_ardour/time_axis_view.cc | 4 +- gtk2_ardour/waveview.cc | 24 + gtk2_ardour/waveview.h | 8 +- libs/ardour/SConscript | 8 + libs/ardour/ardour/audio_unit.h | 6 +- libs/ardour/ardour/io.h | 6 + libs/ardour/ardour/ladspa_plugin.h | 16 +- libs/ardour/ardour/lv2_plugin.h | 138 ++++++ libs/ardour/ardour/plugin_manager.h | 19 +- libs/ardour/ardour/route.h | 5 - libs/ardour/ardour/types.h | 1 + libs/ardour/audio_diskstream.cc | 10 + libs/ardour/io.cc | 9 + libs/ardour/lv2_plugin.cc | 547 +++++++++++++++++++++++ libs/ardour/plugin.cc | 10 + libs/ardour/plugin_insert.cc | 13 + libs/ardour/plugin_manager.cc | 28 ++ libs/ardour/route.cc | 8 +- libs/ardour/session_command.cc | 5 +- svn_revision.h | 2 +- tools/osx_packaging/script | 23 +- 44 files changed, 1814 insertions(+), 525 deletions(-) create mode 100644 gtk2_ardour/splash.cc create mode 100644 gtk2_ardour/splash.h create mode 100644 libs/ardour/ardour/lv2_plugin.h create mode 100644 libs/ardour/lv2_plugin.cc diff --git a/SConstruct b/SConstruct index cc21831df2..575c530300 100644 --- a/SConstruct +++ b/SConstruct @@ -46,6 +46,7 @@ opts.AddOptions( BoolOption('UNIVERSAL', 'Compile as universal binary. Requires that external libraries are already universal.', 0), BoolOption('VERSIONED', 'Add revision information to ardour/gtk executable name inside the build directory', 0), BoolOption('VST', 'Compile with support for VST', 0), + BoolOption('LV2', 'Compile with support for LV2 (if slv2 is available)', 1), BoolOption('GPROFILE', 'Compile with support for gprofile (Developers only)', 0), BoolOption('TRANZPORT', 'Compile with support for Frontier Designs (if libusb is available)', 1) ) @@ -403,7 +404,6 @@ else: if os.path.isfile('.personal_use_only'): os.remove('.personal_use_only') - #################### # push environment #################### @@ -527,6 +527,18 @@ if env['FFT_ANALYSIS']: print ('FFT Analysis cannot be compiled without the FFTW3 headers, which do not seem to be installed') sys.exit (1) conf.Finish() + +if env['LV2']: + conf = env.Configure(custom_tests = { 'CheckPKGExists' : CheckPKGExists }) + + if conf.CheckPKGExists ('\"slv2 >= 0.4.4\"'): + libraries['slv2'] = LibraryInfo() + libraries['slv2'].ParseConfig('pkg-config --cflags --libs slv2') + else: + print 'Building Ardour with LV2 support requires SLV2 >= 0.4.4' + print 'WARNING: SLV2 not found, or too old. Ardour will be built without LV2 support.' + env['LV2'] = 0 + conf.Finish() libraries['jack'] = LibraryInfo() libraries['jack'].ParseConfig('pkg-config --cflags --libs jack') @@ -942,7 +954,7 @@ if env['SYSLIBS']: print '%s >= %s not found.' %(pkg, version) DependenciesRequiredMessage() Exit(1) - + env = conf.Finish() libraries['sigc2'] = LibraryInfo() diff --git a/gtk2_ardour/SConscript b/gtk2_ardour/SConscript index 24fd461c37..bc314f2fa4 100644 --- a/gtk2_ardour/SConscript +++ b/gtk2_ardour/SConscript @@ -211,6 +211,7 @@ route_ui.cc selection.cc sfdb_ui.cc send_ui.cc +splash.cc streamview.cc audio_streamview.cc tempo_dialog.cc @@ -270,24 +271,8 @@ if env['VST']: extra_sources += vst_files gtkardour.Append (CCFLAGS="-DVST_SUPPORT", CPPPATH="#libs/fst") -cmt_files=Split(""" -canvas-imageframe.c -editor_imageframe.cc -imageframe.cc -imageframe_socket_handler.cc -imageframe_time_axis.cc -imageframe_time_axis_group.cc -imageframe_time_axis_view.cc -imageframe_view.cc -marker_time_axis.cc -marker_time_axis_view.cc -marker_view.cc -visual_time_axis.cc -""") - -#if env['CMT']: -# extra_sources += cmt_files -# gtkardour.Append (CCFLAGS="-DWITH_CMT") +if env['LV2']: + gtkardour.Append (CCFLAGS="-DHAVE_SLV2") if gtkardour['GTKOSX']: extra_sources += gtkosx_files @@ -506,7 +491,6 @@ env.Alias ('tarball', env.Distribute (env['DISTTREE'], ] + gtkardour_files + vst_files + - cmt_files + pixmap_files + icon_files + skipped_files + diff --git a/gtk2_ardour/about.cc b/gtk2_ardour/about.cc index a201a1c404..a76fc3c619 100644 --- a/gtk2_ardour/about.cc +++ b/gtk2_ardour/about.cc @@ -156,6 +156,8 @@ static const char* authors[] = { N_("Nedko Arnaudov"), N_("Carl Hetherington"), N_("Colin Fletcher"), + N_("Roland Stigge"), + N_("Audun Halland"), 0 }; @@ -178,7 +180,7 @@ About::About () : paypal_pixmap (paypal_xpm) #endif { - set_type_hint(Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN); + // set_type_hint(Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN); string path; string t; diff --git a/gtk2_ardour/ardour3_ui_default.conf b/gtk2_ardour/ardour3_ui_default.conf index 8525908cf0..78e40f5515 100644 --- a/gtk2_ardour/ardour3_ui_default.conf +++ b/gtk2_ardour/ardour3_ui_default.conf @@ -4,7 +4,8 @@