ardour.git
10 years agoDon't use trylock in assertions on windows as it will fail
Paul Davis [Sat, 13 Jul 2013 20:57:04 +0000 (16:57 -0400)]
Don't use trylock in assertions on windows as it will fail

glib uses TryEnterCriticalSection on windows which will return true
if the lock as able to be locked *or* is already locked by the current
thread.

10 years agoAdd config/data filesystem paths to search on windows
Paul Davis [Sat, 13 Jul 2013 20:56:12 +0000 (16:56 -0400)]
Add config/data filesystem paths to search on windows

10 years agoAdd DEBUG_TRACE output to file utility functions in libpbd
Paul Davis [Sat, 13 Jul 2013 20:55:40 +0000 (16:55 -0400)]
Add DEBUG_TRACE output to file utility functions in libpbd

10 years agoAdd header include required by mingw compiler
Paul Davis [Sat, 13 Jul 2013 20:44:59 +0000 (16:44 -0400)]
Add header include required by mingw compiler

10 years agoUse g_mkstemp in audiographer for portability
Paul Davis [Sat, 13 Jul 2013 20:44:37 +0000 (16:44 -0400)]
Use g_mkstemp in audiographer for portability

10 years agoUse pthread_name instead of pthread_self for portability
Paul Davis [Sat, 13 Jul 2013 20:44:03 +0000 (16:44 -0400)]
Use pthread_name instead of pthread_self for portability

10 years agoUse pthread_name instead of pthread_self for portability
Paul Davis [Sat, 13 Jul 2013 20:43:50 +0000 (16:43 -0400)]
Use pthread_name instead of pthread_self for portability

10 years agoWork around DELETE defined via windows.h
Paul Davis [Sat, 13 Jul 2013 12:45:27 +0000 (08:45 -0400)]
Work around DELETE defined via windows.h

10 years agoUse custom comparator in threadmap for pthread impl with mingw
Paul Davis [Sat, 13 Jul 2013 12:44:58 +0000 (08:44 -0400)]
Use custom comparator in threadmap for pthread impl with mingw

10 years agodisable pingback on win32, until we have a replacement for utsname stuff (system ID)
Paul Davis [Sat, 13 Jul 2013 12:38:17 +0000 (08:38 -0400)]
disable pingback on win32, until we have a replacement for utsname stuff (system ID)

10 years agoDon't call pango_ft2* functions on windows
Paul Davis [Sat, 13 Jul 2013 12:30:27 +0000 (08:30 -0400)]
Don't call pango_ft2* functions on windows

10 years agoUse PBD::GlibSemaphore on windows to signal peak
Paul Davis [Sat, 13 Jul 2013 12:27:56 +0000 (08:27 -0400)]
Use PBD::GlibSemaphore on windows to signal peak

10 years agoDisable non-realtime midi ports in windows build - THIS NEEDS FIXING
Paul Davis [Sat, 13 Jul 2013 12:26:54 +0000 (08:26 -0400)]
Disable non-realtime midi ports in windows build - THIS NEEDS FIXING

10 years agoAssume no filesystem links on windows
Paul Davis [Sat, 13 Jul 2013 12:20:45 +0000 (08:20 -0400)]
Assume no filesystem links on windows

10 years agoFix for small identifier being defined on windows/mingw
Paul Davis [Sat, 13 Jul 2013 12:20:01 +0000 (08:20 -0400)]
Fix for small identifier being defined on windows/mingw

10 years agoInclude pbd/timersub.h for mingw build
Paul Davis [Sat, 13 Jul 2013 12:19:32 +0000 (08:19 -0400)]
Include pbd/timersub.h for mingw build

10 years agoInclude pbd/localtime_r.h for mingw build
Paul Davis [Sat, 13 Jul 2013 12:19:03 +0000 (08:19 -0400)]
Include pbd/localtime_r.h for mingw build

10 years agoDon't install signal handler for SIGPIPE in windows
Paul Davis [Fri, 12 Jul 2013 02:34:59 +0000 (22:34 -0400)]
Don't install signal handler for SIGPIPE in windows

10 years agoundef SearchPath where needed as it is defined via windows.h
Paul Davis [Fri, 12 Jul 2013 02:34:16 +0000 (22:34 -0400)]
undef SearchPath where needed as it is defined via windows.h

10 years agoUse Glib::usleep in export_dialog.cc for portability
Paul Davis [Fri, 12 Jul 2013 02:07:25 +0000 (22:07 -0400)]
Use Glib::usleep in export_dialog.cc for portability

10 years ago Add windows equivalent of hack in timefx
Paul Davis [Fri, 12 Jul 2013 02:06:20 +0000 (22:06 -0400)]
 Add windows equivalent of hack in timefx

10 years agoWork around DELETE defined via windows.h
Paul Davis [Fri, 12 Jul 2013 02:05:06 +0000 (22:05 -0400)]
Work around DELETE defined via windows.h

10 years agoFix ambiguous type CheckMenuItem that is also defined via windows.h
Paul Davis [Thu, 11 Jul 2013 19:32:31 +0000 (15:32 -0400)]
Fix ambiguous type CheckMenuItem that is also defined via windows.h

10 years agoWork around badly chosen argument name in giomm/dbusmessage.h
Paul Davis [Thu, 11 Jul 2013 19:29:28 +0000 (15:29 -0400)]
Work around badly chosen argument name in  giomm/dbusmessage.h

interface is defined in windows/mingw headers. hopefully this will
be fixed in giomm at some point and this crap can be removed

10 years agoundef SearchPath where needed as it is defined via windows.h
Paul Davis [Thu, 11 Jul 2013 19:24:36 +0000 (15:24 -0400)]
undef SearchPath where needed as it is defined via windows.h

10 years agoInclude pbd/localtime_r.h for mingw build
Paul Davis [Thu, 11 Jul 2013 19:23:12 +0000 (15:23 -0400)]
Include pbd/localtime_r.h for mingw build

10 years agoChange/improve enum as IN and OUT are defined via windows.h
Paul Davis [Thu, 11 Jul 2013 19:22:33 +0000 (15:22 -0400)]
Change/improve enum as IN and OUT are defined via windows.h

10 years agoDisable checking for memory locking support on windows
Paul Davis [Thu, 11 Jul 2013 19:18:31 +0000 (15:18 -0400)]
Disable checking for memory locking support on windows

not sure if this is needed on windows, can implement later in PBD

10 years agoUse uint32_t type instead of uint
Paul Davis [Thu, 11 Jul 2013 19:16:50 +0000 (15:16 -0400)]
Use uint32_t type instead of uint

10 years agoInclude pbd/timersub.h for mingw build
Paul Davis [Thu, 11 Jul 2013 19:16:11 +0000 (15:16 -0400)]
Include pbd/timersub.h for mingw build

10 years agoUse Glib functions to create tmp file path
Paul Davis [Thu, 11 Jul 2013 19:15:40 +0000 (15:15 -0400)]
Use Glib functions to create tmp file path

10 years agoWork around badly chosen argument name in giomm/dbusmessage.h
Paul Davis [Thu, 11 Jul 2013 19:14:51 +0000 (15:14 -0400)]
Work around badly chosen argument name in giomm/dbusmessage.h

interface is defined in windows/mingw headers. hopefully this will
be fixed in giomm at some point and this crap can be removed

10 years agoInclude pthread.h in butler.h for mingw build
Paul Davis [Thu, 11 Jul 2013 19:11:22 +0000 (15:11 -0400)]
Include pthread.h in butler.h for mingw build

Jack2 on windows doesn't include pthread headers so it is necessary
to include them explicitly.

10 years agoUse Glib::usleep for portability
Paul Davis [Thu, 11 Jul 2013 19:10:10 +0000 (15:10 -0400)]
Use Glib::usleep for portability

10 years agoUse PBD::pthread_name in debug output for portability
Paul Davis [Thu, 11 Jul 2013 19:09:29 +0000 (15:09 -0400)]
Use PBD::pthread_name in debug output for portability

10 years agoDisable some non-portable code that is only used for debugging
Paul Davis [Thu, 11 Jul 2013 19:08:47 +0000 (15:08 -0400)]
Disable some non-portable code that is only used for debugging

10 years agoUse jack_native_thread_t for portability
Paul Davis [Thu, 11 Jul 2013 19:08:10 +0000 (15:08 -0400)]
Use jack_native_thread_t for portability

Requires future attention in AudioEngine due to timbyr's use JACK2 extension to JACK API

10 years agoInclude pbd/localtime_r.h for mingw build
Paul Davis [Thu, 11 Jul 2013 19:00:56 +0000 (15:00 -0400)]
Include pbd/localtime_r.h for mingw build

10 years agoAdd ::localtime_r implementation for mingw
Paul Davis [Thu, 11 Jul 2013 19:00:22 +0000 (15:00 -0400)]
Add ::localtime_r implementation for mingw

10 years agoUse PBD::pthread_name in debug output
Paul Davis [Thu, 11 Jul 2013 18:58:00 +0000 (14:58 -0400)]
Use PBD::pthread_name in debug output

10 years agoremove direct of realpath(2), replace with canonical_path() which is a no-op on windows
Paul Davis [Thu, 11 Jul 2013 18:57:16 +0000 (14:57 -0400)]
remove direct of realpath(2), replace with canonical_path() which is a no-op on windows

10 years agoUse PBD::GlibSemaphore in Butler to signal requests on windows
Paul Davis [Thu, 11 Jul 2013 18:41:08 +0000 (14:41 -0400)]
Use PBD::GlibSemaphore in Butler to signal requests on windows

10 years agoAdd PBD::GlibSemaphore class that uses PBD::atomic_counter etc.
Paul Davis [Thu, 11 Jul 2013 18:38:53 +0000 (14:38 -0400)]
Add PBD::GlibSemaphore class that uses PBD::atomic_counter etc.

PBD::Semaphore can really be used instead of this class now,
but it didn't exist when I needed this class and it is header only, which
causes some problems because windows.h is included

10 years agoAdd wrapping class for glib atomic counter
Paul Davis [Thu, 11 Jul 2013 18:37:27 +0000 (14:37 -0400)]
Add wrapping class for glib atomic counter

10 years agoRefactor the non-portable parts of Butler thread into new functions
Paul Davis [Thu, 11 Jul 2013 18:36:43 +0000 (14:36 -0400)]
Refactor the non-portable parts of Butler thread into new functions

10 years agoMove request pipe setup into separate function
Paul Davis [Thu, 11 Jul 2013 18:35:26 +0000 (14:35 -0400)]
Move request pipe setup into separate function

10 years agoInclude pbd/timersub.h in session_midi.cc
Paul Davis [Thu, 11 Jul 2013 18:31:15 +0000 (14:31 -0400)]
Include pbd/timersub.h in session_midi.cc

10 years agoAdd timersub macro for platforms where it isn't defined
Paul Davis [Thu, 11 Jul 2013 18:30:38 +0000 (14:30 -0400)]
Add timersub macro for platforms where it isn't defined

10 years agoUndef SearchPath where needed as it is defined via windows.h
Paul Davis [Thu, 11 Jul 2013 18:27:24 +0000 (14:27 -0400)]
Undef SearchPath where needed as it is defined via windows.h

This is pretty annoying, might even be worth renaming the class

10 years agoAdd cast for mingw compiler
Paul Davis [Thu, 11 Jul 2013 18:23:20 +0000 (14:23 -0400)]
Add cast for mingw compiler

10 years agoDon't require liblrdf on windows
Paul Davis [Thu, 11 Jul 2013 18:20:02 +0000 (14:20 -0400)]
Don't require liblrdf on windows

This removes dependence on liblrdf, libraptor and libxslt

10 years agoFix for ambiguity of UUID type on windows
Paul Davis [Thu, 11 Jul 2013 18:13:55 +0000 (14:13 -0400)]
Fix for ambiguity of UUID type on windows

10 years agoUse glibmm for modules instead of dlfch.h
Paul Davis [Thu, 11 Jul 2013 17:58:48 +0000 (13:58 -0400)]
Use glibmm for modules instead of dlfch.h

10 years agoDisable increasing open file limit on windows
Paul Davis [Thu, 11 Jul 2013 17:55:03 +0000 (13:55 -0400)]
Disable increasing open file limit on windows

10 years agoAdd necessary header include for int64_t type
Paul Davis [Thu, 11 Jul 2013 17:53:35 +0000 (13:53 -0400)]
Add necessary header include for int64_t type

10 years agoInclude header that declares ::free for mingw build
Paul Davis [Thu, 11 Jul 2013 17:53:12 +0000 (13:53 -0400)]
Include header that declares ::free for mingw build

10 years ago Disable peakfile reading and writing on windows for now
Paul Davis [Thu, 11 Jul 2013 17:52:29 +0000 (13:52 -0400)]
 Disable peakfile reading and writing on windows for now

There is no point trying to implement this until it can be tested

10 years agoINFINITE is defined via windows.h so undefine it
Paul Davis [Thu, 11 Jul 2013 17:05:24 +0000 (13:05 -0400)]
INFINITE is defined via windows.h so undefine it

10 years agoFix for mingw compiler
Paul Davis [Thu, 11 Jul 2013 17:04:39 +0000 (13:04 -0400)]
Fix for mingw compiler

10 years agoFix evoral test to compile with mingw
Paul Davis [Thu, 11 Jul 2013 17:03:55 +0000 (13:03 -0400)]
Fix evoral test to compile with mingw

10 years agoinclude winsock2.h on windows in libsmf for htons/l etc.
Paul Davis [Thu, 11 Jul 2013 17:03:24 +0000 (13:03 -0400)]
include winsock2.h on windows in libsmf for htons/l etc.

10 years agoInclude unistd.h for usleep on MinGW
Paul Davis [Thu, 11 Jul 2013 17:01:16 +0000 (13:01 -0400)]
Include unistd.h for usleep on MinGW

10 years agoChanges to get IPMIDIPort to compile(but not functional) on MinGW
Paul Davis [Thu, 11 Jul 2013 17:00:42 +0000 (13:00 -0400)]
Changes to get IPMIDIPort to compile(but not functional) on MinGW

10 years agoInclude pthread.h as it isn't included via jack headers on windows
Paul Davis [Thu, 11 Jul 2013 16:58:44 +0000 (12:58 -0400)]
Include pthread.h as it isn't included via jack headers on windows

10 years ago Use timeout source to process ui requests on windows
Paul Davis [Thu, 11 Jul 2013 16:56:35 +0000 (12:56 -0400)]
 Use timeout source to process ui requests on windows

Using a timeout source to process ui events/requests is suboptimal
but it works for the moment. Have to use g_source functions as glibmm
functions are not thread safe AFAIK.

Behaviour should be exactly the same on unix.

10 years agoHide UI request mechanism from inheriting classes
Paul Davis [Thu, 11 Jul 2013 16:52:46 +0000 (12:52 -0400)]
Hide UI request mechanism from inheriting classes

10 years agoIfdef unix specific test for mingw build
Paul Davis [Thu, 11 Jul 2013 16:47:56 +0000 (12:47 -0400)]
Ifdef unix specific test for mingw build

10 years agoDon't use parts of signal.h that aren't defined when using mingw
Paul Davis [Thu, 11 Jul 2013 16:46:52 +0000 (12:46 -0400)]
Don't use parts of signal.h that aren't defined when using mingw

10 years agoAdd implementation for ProcessSemaphore on windows
Paul Davis [Thu, 11 Jul 2013 16:46:05 +0000 (12:46 -0400)]
Add implementation for ProcessSemaphore on windows

10 years agoInclude io.h on windows for access
Paul Davis [Thu, 11 Jul 2013 16:44:33 +0000 (12:44 -0400)]
Include io.h on windows for access

10 years agoAdd an empty implementation of PBD::mountpoint for mingw
Paul Davis [Thu, 11 Jul 2013 16:43:55 +0000 (12:43 -0400)]
Add an empty implementation of PBD::mountpoint for mingw

PBD::mountpoint is only used to find peakfiles for old sessions, so it might
not be necessary to implement this for windows.

10 years agoUse pbd/resource.h in PBD::FileManager
Paul Davis [Thu, 11 Jul 2013 16:42:53 +0000 (12:42 -0400)]
Use pbd/resource.h in PBD::FileManager

10 years agoAdd pbd/resource.h for portable access to resource limits
Paul Davis [Thu, 11 Jul 2013 16:41:55 +0000 (12:41 -0400)]
Add pbd/resource.h for portable access to resource limits

10 years agoFallback to gettimeofday for access time in FileManager
Paul Davis [Thu, 11 Jul 2013 16:39:24 +0000 (12:39 -0400)]
Fallback to gettimeofday for access time in FileManager

10 years agoUse boost::tokenizer in PBD::parse_debug_options for portability
Paul Davis [Thu, 11 Jul 2013 16:36:16 +0000 (12:36 -0400)]
Use boost::tokenizer in PBD::parse_debug_options for portability

10 years agoUse boost::uuid instead of libuuid
Paul Davis [Thu, 11 Jul 2013 16:30:32 +0000 (12:30 -0400)]
Use boost::uuid instead of libuuid

10 years agoAdd clean script to windows stuff to save a bit of typing
Paul Davis [Thu, 11 Jul 2013 16:26:29 +0000 (12:26 -0400)]
Add clean script to windows stuff to save a bit of typing

10 years agoAdd Windows building/packaging scripts
Paul Davis [Thu, 11 Jul 2013 16:23:50 +0000 (12:23 -0400)]
Add Windows building/packaging scripts

10 years agoOnly call configure in surface subdirectories if the required deps are available
Paul Davis [Thu, 11 Jul 2013 16:23:05 +0000 (12:23 -0400)]
Only call configure in surface subdirectories if the required deps are available

I think these checks should probably be in the surface build files so they
are self contained...

10 years agoFix some usage of non-standard types for portability
Paul Davis [Thu, 11 Jul 2013 16:05:37 +0000 (12:05 -0400)]
Fix some usage of non-standard types for portability

10 years agoUse PBD::pthread_name in debug output instead of pthread_self
Paul Davis [Thu, 11 Jul 2013 16:01:17 +0000 (12:01 -0400)]
Use PBD::pthread_name in debug output instead of pthread_self

10 years agoUse PBD::pthread_name in debug output for portability
Paul Davis [Thu, 11 Jul 2013 15:53:24 +0000 (11:53 -0400)]
Use PBD::pthread_name in debug output for portability

10 years agoUse pthread_equal in libmidi++ for portability
Paul Davis [Thu, 11 Jul 2013 15:51:59 +0000 (11:51 -0400)]
Use pthread_equal in libmidi++ for portability

10 years agoUse default constructor for pthread_t in InterthreadInfo ctor
Paul Davis [Thu, 11 Jul 2013 15:50:25 +0000 (11:50 -0400)]
Use default constructor for pthread_t in InterthreadInfo ctor

10 years ago Use a std::list instead of std::set for the ThreadMap in libpbd
Paul Davis [Thu, 11 Jul 2013 15:43:43 +0000 (11:43 -0400)]
 Use a std::list instead of std::set for the ThreadMap in libpbd

pthread_t can't work with std::set using the pthread lib on windows
as there is no operator< defined for the type

10 years agoUse pthread_equals in libpbd for portability
Paul Davis [Thu, 11 Jul 2013 15:40:59 +0000 (11:40 -0400)]
Use pthread_equals in libpbd for portability

10 years agoUse g_random_int instead of ::random for portability
Paul Davis [Thu, 11 Jul 2013 15:38:46 +0000 (11:38 -0400)]
Use g_random_int instead of ::random for portability

10 years agoUse g_setenv and g_getenv for portability
Paul Davis [Thu, 11 Jul 2013 15:37:25 +0000 (11:37 -0400)]
Use g_setenv and g_getenv for portability

10 years agoRemove non-portable and unnused header includes
Paul Davis [Thu, 11 Jul 2013 15:34:37 +0000 (11:34 -0400)]
Remove non-portable and unnused header includes

10 years agoFix portability of test and use temporary test
Paul Davis [Thu, 11 Jul 2013 15:12:39 +0000 (11:12 -0400)]
Fix portability of test and use temporary test

10 years agoUse common test function to create temporary session
Paul Davis [Thu, 11 Jul 2013 15:11:45 +0000 (11:11 -0400)]
Use common test function to create temporary session

10 years agoadd new files from test changes by timbyr
Paul Davis [Thu, 11 Jul 2013 15:10:56 +0000 (11:10 -0400)]
add new files from test changes by timbyr

10 years agotheoretically: "Add new_test_output_dir to common libardour test" but actually featur...
Paul Davis [Thu, 11 Jul 2013 15:07:13 +0000 (11:07 -0400)]
theoretically: "Add new_test_output_dir to common libardour test" but actually features addition of new files, thus losing git history for these two which came from tim mayberry

10 years agoUse test_search_path function in ardour test
Paul Davis [Thu, 11 Jul 2013 15:01:36 +0000 (11:01 -0400)]
Use test_search_path function in ardour test

10 years agoAdd test_search_path function in libardour testsuite
Paul Davis [Thu, 11 Jul 2013 15:00:59 +0000 (11:00 -0400)]
Add test_search_path function in libardour testsuite

10 years agoUse test_search_path to find test data in xpath test
Paul Davis [Thu, 11 Jul 2013 14:59:30 +0000 (10:59 -0400)]
Use test_search_path to find test data in xpath test

10 years agoAdd test_search_path function in PBD testsuite
Paul Davis [Thu, 11 Jul 2013 14:58:35 +0000 (10:58 -0400)]
Add test_search_path function in PBD testsuite

10 years agoAdd --single-tests option to also build each libardour test as a separate program
Paul Davis [Thu, 11 Jul 2013 14:57:21 +0000 (10:57 -0400)]
Add --single-tests option to also build each libardour test as a separate program

10 years agodisable libardour unit tests that do not function correctly (for windows, at least)
Paul Davis [Thu, 11 Jul 2013 14:31:47 +0000 (10:31 -0400)]
disable libardour unit tests that do not function correctly (for windows, at least)

10 years agohandle aux-send processor-box action
Robin Gareus [Thu, 11 Jul 2013 09:36:38 +0000 (11:36 +0200)]
handle aux-send processor-box action

fixes http://tracker.ardour.org/view.php?id=5574