Commit graph

744 commits

Author SHA1 Message Date
Greg Zharun
a84c0892f1 [Summary] Fixed error with draining IOChannel in CrossthreadChannel on Windows.
Used IOChannel for base_ui on Windows instead of workaround which used to be working instead.

[Reviewed by] Paul Davis
2014-11-27 14:17:38 +02:00
Paul Davis
33a4706bff fix posix build for base UI breakage 2014-11-26 19:43:38 +02:00
Greg Zharun
a22a14a033 [Summary] Fixed windows build 2014-11-26 19:37:35 +02:00
Paul Davis
2e0f6bf35f revert libs/pbd/wscript to unconditionally build crossthread.cc now that it handles platform differences internally 2014-11-26 18:18:41 +02:00
Paul Davis
a30c10e953 re-engineer CrossThreadChannel to use C level API to avoid the mess caused by https://bugzilla.gnome.org/show_bug.cgi?id=561885 2014-11-26 18:12:50 +02:00
GZharun
f40f680bcc [Summary] Fixed MAC build 2014-11-25 18:11:13 +02:00
Greg Zharun
bd7c257625 [Summary] Restored Asynchronous Midi input processing on Windows by providing Windows specific implementation of CrossThreadChannel synchronization class which serves Event Loops
[Details] Restored SceneIn and MMC ports processing
Fixed crash during exit on both platforms
[Reviewed by] Paul Davis
2014-11-25 17:40:27 +02:00
Paul Davis
2c1c92e8de move new Waves backend debug bits into libs/pbd/debug.cc because backends are dynamically loaded AFTER command line parsing.
See comments in libs/pbd/debug.cc for more details
2014-10-29 22:34:12 -04:00
John Emmas
00840230b9 When building 'libs/pbd/cpus.cc' (with MSVC) make sure we know what 'PTW32_VERSION' is 2014-10-10 14:05:27 -04:00
Paul Davis
76b2aee8ae provide compile-time-enabled/disabled debugging of connections being made to PBD::Signal via PBD::SignalBase::set_debug_connection() 2014-09-17 07:06:04 -04:00
Paul Davis
bd1cb0ce46 Revert "Add a couple of pthread helper macros"
This reverts commit 6dd4d411b3.

Conflicts:
	libs/pbd/MSVCpbd/pbd.vcproj
2014-09-08 10:41:51 -04:00
John Emmas
77b4f4646e Modify our VC project files to work with msvc32-fixup.pl 2014-08-18 14:22:32 -04:00
Paul Davis
b83142d89a hand merge changes to PBD::Controllable from Ardour CC branch 2014-08-18 12:51:29 -04:00
David Robillard
b00b75de3d Update vcproj files for changed LILV config define.
Conflicts:
	libs/audiographer/MSVCaudiographer/audiographer.vcproj
	libs/clearlooks-newer/MSVCclearlooks/clearlooks.vcproj
	libs/evoral/MSVCevoral/evoral.vcproj
	libs/gtkmm2ext/MSVCgtkmm2ext/gtkmm2ext.vcproj
	libs/libltc/MSVCltc/ltc.vcproj
	libs/midi++2/MSVCmidi++/midi++.vcproj
	libs/panners/MSVCpanners/panner_1in2out.vcproj
	libs/panners/MSVCpanners/panner_2in2out.vcproj
	libs/panners/MSVCpanners/panner_vbap.vcproj
	libs/qm-dsp/MSVCqm-dsp/qm-dsp.vcproj
	libs/surfaces/control_protocol/MSVCardour_cp/ardour_cp.vcproj
	libs/surfaces/generic_midi/MSVCardour_genericmidi/ardour_genericmidi.vcproj
	libs/surfaces/mackie/MSVCardour_mackie/ardour_mackie.vcproj
2014-08-18 12:30:01 -04:00
John Emmas
40044bb8c1 Add newly introduced (MD5) sources to our MSVC project (also, add visibility stuff to the new MD5 class) 2014-08-17 21:12:27 -04:00
Paul Davis
226fd3e1b7 Add PBD::get_suffix() for ripping file suffixes from paths 2014-08-17 20:43:55 -04:00
Paul Davis
f5ac8d22fc add operator-= variants for PBD::Searchpath 2014-08-17 20:43:42 -04:00
Paul Davis
9537555f59 add MD5 implementation to wscript 2014-08-17 20:43:37 -04:00
Paul Davis
deb6c227e7 add cleaned up MD5 C++ implementation for general use 2014-08-17 20:43:32 -04:00
Colin Fletcher
a8afdaad2b Make $PATH search in SystemExec actually work
Make searching of $PATH work when a SystemExec  is created from a
command-line, by making sure that argv[0] is set to the discovered path.
2014-08-17 20:37:21 -04:00
Robin Gareus
1982873b19 debug info to trace down "cannot rename temp session file" errors
..but actually, the real error may be concurrent
calls to Session::save_state()
2014-08-17 20:36:53 -04:00
Ben Loftis
fa2f8876ea splice mode is undefined, undocumented, and buggy. ripple does most of what we want. remove splice for now. leave code because it may be revived later 2014-08-17 20:33:04 -04:00
Robin Gareus
614651ad86 search-path: filter out duplicates
Note: this does not yet take care of filtering dups
when directly combining two search-paths.
2014-08-17 19:47:59 -04:00
John Emmas
917cc32f5f Use 'GStatBuf' in preference to 'struct stat' (which isn't necessarily the same thing) 2014-08-17 19:47:53 -04:00
John Emmas
aa4fe5f5ee Remove (no longer needed) sources from our MSVC projects 2014-08-17 19:47:41 -04:00
Tim Mayberry
28ac321d31 Add unit tests for PBD::clear_directory and PBD::remove_directory 2014-08-17 18:44:06 -04:00
Tim Mayberry
1e1a291ee2 Rename internal class to stop the wrong destructor from being called 2014-08-17 18:44:01 -04:00
Tim Mayberry
5d6809d346 Add a PBD::TextReceiver in pbd testrunner 2014-08-17 18:43:43 -04:00
Tim Mayberry
9c16e67b06 Add simple test for PBD::find_files_matching_pattern
This helped fix a silly cut and paste error in pbd/file_utils.cc so
might as well included it.
2014-08-17 18:43:37 -04:00
Tim Mayberry
b3ab6e79f1 Use PBD::FdFileDescriptor in PBD::copy_file 2014-08-17 18:43:31 -04:00
Tim Mayberry
fe2cf91d69 Fix PBD::copy_file so it works with non-ASCII filenames on windows 2014-08-17 18:43:27 -04:00
Tim Mayberry
aae3815a77 Add test utility function to PBD tests to return some utf-8 strings
This is currently unused
2014-08-17 18:43:22 -04:00
Tim Mayberry
1eca45d70e Add a test for PBD::copy_file using test files with utf-8 encoded filenames 2014-08-17 18:43:06 -04:00
Tim Mayberry
3f6181c0c3 Fix PBD::copy_files so that it uses O_BINARY on windows and doesn't add line endings to copied files 2014-08-17 18:43:00 -04:00
Tim Mayberry
5598c12471 Use PLATFORM_WINDOWS define instead of WIN32 in PBD::FileManager 2014-08-17 18:42:54 -04:00
Tim Mayberry
999a5432fc Call PBD::init and PBD::cleanup in pbd test executable 2014-08-17 18:42:49 -04:00
Tim Mayberry
7cdb4ed199 Add test for PBD::copy_file
From this I can see that PBD::copy_file is not working correctly on windows
as it is adding windows style line endings. Adding O_BINARY to ::open flags
would fix it, but perhaps there is a better way...
2014-08-17 18:42:43 -04:00
Tim Mayberry
439f68bdc9 Add utility function to test lib to create a test directory
There is an identical function in libardour test support lib so we
should probably find a better place to put this at some point
2014-08-17 18:42:38 -04:00
Tim Mayberry
17a984aa30 Change PBD::get_files and PBD::get_paths to take a Searchpath instead of directory path
Both these functions use the internal function run_functor_for_paths
which takes a Searchpath so this avoids a temporary variable in cases
where a Searchpath is passed directly.

The usage is the same as the compiler will generate a temporary Searchpath
from a string(directory path) if necessary.
2014-08-17 18:42:33 -04:00
Tim Mayberry
1308cccd96 Add/Update docs in pbd/file_utils.h 2014-08-17 18:42:25 -04:00
Tim Mayberry
257a2710eb Use run_functor_for_paths in PBD::get_paths 2014-08-17 18:42:21 -04:00
Tim Mayberry
849adaf7e5 Rename PBD::get_files_in_directory to just PBD::get_files, change parameter order and fix docs 2014-08-17 18:42:08 -04:00
Tim Mayberry
b668c53c5c Rename PBD::get_directory_contents to PBD::get_paths
shorter name and change order of parameters to match other functions
2014-08-17 18:42:01 -04:00
Tim Mayberry
0228ddb52f Use run_functor_for_paths in PBD::find_files_matching_pattern 2014-08-17 18:41:56 -04:00
Tim Mayberry
5450da010b Add function PBD::find_paths_matching_filter 2014-08-17 18:41:47 -04:00
Tim Mayberry
8fe666a930 Use run_functor_for_paths in PBD::find_files_matching_filter 2014-08-17 18:41:41 -04:00
Tim Mayberry
ca8750a5d1 Add function to file_utils intended to be used internally 2014-08-17 18:41:36 -04:00
Tim Mayberry
49681b96ee Add some debug output in file_utils.cc 2014-08-17 18:41:31 -04:00
Tim Mayberry
3fadc0f2e1 Remove reference to strtok_r now that it isn't used 2014-08-17 18:41:25 -04:00
Tim Mayberry
f921717e68 Change formatting of DEBUG_TRACE calls to match style guide 2014-08-17 18:41:20 -04:00