Commit graph

670 commits

Author SHA1 Message Date
Tim Mayberry
144da83bc8 Remove member filter argument from PathScanner methods and use normal filter for regex
Also use regfree to free memory of compiled patterns
2014-08-17 15:31:56 -04:00
Tim Mayberry
ae22d60a42 Change PBD::PathScanner API to return results by value to avoid inadvertent memory leaks
Conflicts:
	gtk2_ardour/session_dialog.cc
2014-08-17 15:31:49 -04:00
Robin Gareus
0c7c8fdad4 plug some leaks 2014-08-17 15:28:36 -04:00
Robin Gareus
632e23de2c fix pathscanner / stl_vector related memory leaks
Conflicts:
	gtk2_ardour/session_dialog.cc
2014-08-17 15:27:45 -04:00
Robin Gareus
7804841022 tracking down concurrency issus is fun. 2014-08-17 15:26:16 -04:00
Colin Fletcher
f22f2bbb55 Search $PATH for command when creating SystemExec from command line
When creating a SystemExec from a command-line, search $PATH for the
command to execute, so that post-export hooks don't need to specify a full
path.

Conflicts:
	libs/pbd/system_exec.cc
2014-08-17 15:11:27 -04:00
Robin Gareus
d7a8c58aaa close dir opened with opendir() - fixes accumulated fd for plugin state saves 2014-08-17 15:00:34 -04:00
Paul Davis
c934033e23 manually jump forward state of system_exec files to avoid various cherry-picking-related problems during merge with ardour 2014-08-16 17:53:33 -04:00
Colin Fletcher
cba23cac6e remove debug output from system_exec
remove the debug output from pbd/system_exec: it's of no further use, and
also breaks optimised builds.
2014-08-16 16:59:56 -04:00
Colin Fletcher
c35659c2ad SystemExec: copy last argument from command line to argv[]
Make sure to copy any part of the command line after the last delimiter
to argv[] when creating a SystemExec with an escaped command line.

Conflicts:
	libs/pbd/system_exec.cc
2014-08-16 16:51:15 -04:00
Tim Mayberry
7debf24b8a Use COMPILER_MINGW define rather than __MINGW64__
This is necessary to build with win32 target using mingw-w64 version
on Fedora 19
2014-08-16 16:37:38 -04:00
Tim Mayberry
94759885e8 Reinstate code removed that allows building with mingw and the pthreads-win32 library
Newer versions of mingw-w64 can be built with an included pthread implementation
called winpthreads which uses an integer type for pthread_t but pthreads-win32 does
not.
2014-08-16 16:37:31 -04:00
Tim Mayberry
1b8703aa45 Always link to ole32 when building with mingw for get_win_special_folder
needed for CoTaskMemFree in get_win_special_folder
2014-08-16 16:37:20 -04:00
John Emmas
6dd4d411b3 Add a couple of pthread helper macros
(to accommodate the fact that in ptw-win32, 'pthread_t' is subtlely different from its non-Windows counterparts)

Conflicts:
	libs/pbd/MSVCpbd/pbd.vcproj
2014-08-16 16:34:17 -04:00
Paul Davis
937c0764be finish unfinished work at basing all install paths on the program name
Conflicts:
	libs/backends/jack/wscript
	libs/backends/wavesaudio/wscript
	libs/canvas/wscript
	wscript
2014-08-16 16:10:15 -04:00
Robin Gareus
12292f8055 close stdin as first attempt to terminate process cleanly. 2014-08-16 15:59:49 -04:00
Robin Gareus
4566975a5d fix SystemExec for windows 2014-08-16 15:59:31 -04:00
Colin Fletcher
f74ab3f21f Move system_exec from gtk2_ardour/ to libs/pbd/
Conflicts:
	gtk2_ardour/ardour_ui.cc
	gtk2_ardour/transcode_ffmpeg.h
	gtk2_ardour/video_monitor.h
	libs/pbd/system_exec.cc
2014-08-16 15:11:42 -04:00
Greg Zharun
108da32585 Added files to lib PBD Visual Studio project 2014-06-16 17:08:21 +03:00
Greg Zharun
d4f9416414 Added Visual Studio project for lib PBD 2014-06-16 17:03:49 +03:00
Grygorii Zharun
ce2a519afa [Summary] Merging from GIT
[Details] Starting point:
Mar 24 2014, 11:47 PM
Commit: 87184ab80d

Target point:
Commit: 59e6694405
Apr 16 2014, 4:01 PM

[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 453690]
2014-04-18 04:21:54 -05:00
Valeriy Kamyshniy
af1689c061 adding X attrib
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 446420]
2014-03-26 10:03:30 -05:00
Valeriy Kamyshniy
5f335614a9 fixing minor problems
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 446419]
2014-03-26 09:59:23 -05:00
Grygorii Zharun
f300eaba93 [Summary] Fixed MAC build
[Details] Added fixes to make the code cross platform compilable
[Reviewed by] N/A

[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 446294]
2014-03-26 06:31:34 -05:00
Paul Davis
22a692ba47 update images and Plist files from p4 446170 2014-05-28 07:47:36 -04:00
Paul Davis
f565e47e71 remove silly old MacOS directories 2014-05-28 07:47:14 -04:00
Valeriy Kamyshniy
f096bcdd5a [P4/git history rebuild] remove linkage requirement with ole32 (cost not documented by code change) 2014-05-27 23:01:28 -04:00
Valeriy Kamyshniy
7c82486a12 [P4/git history rebuild] fix taken from a later Ardour commit. Read comment for details. 2014-05-27 23:00:43 -04:00
Robin Gareus
543099afba rework SystemExec - use vfork wrapper (and lots of related stuff) 2014-03-13 16:58:07 +01:00
Paul Davis
f15932a5c2 fix #ifdef in localtime_r header (from Valeriy) 2014-03-12 09:39:16 -04:00
John Emmas
d52eb5bf23 A few days ago a #define got changed because the relevant section of code was no longer needed when building with mingw. However, it's not needed for msvc either (in fact, msvc won't compile it) so hopefully, the code fragment can be safely removed 2014-03-12 13:22:25 +00:00
Robin Gareus
f6129ed0f4 prototype vfork exec-wrapper. 2014-03-11 15:48:41 +01:00
Paul Davis
495c0de4ac fix up waf build in wake of search path changes earlier today 2014-03-10 17:30:12 -04:00
Paul Davis
b6a9bf5d04 add PBD::downcase() functions to libpbd 2014-03-10 17:30:12 -04:00
Robin Gareus
07d5a389fa add missing include to define LIBPBD_API (mingw build) 2014-03-09 21:05:17 +01:00
John Emmas
944c32346b Add a couple of visibility specifiers that were missing 2014-03-08 11:29:52 +00:00
John Emmas
c7bc009b30 Use LIBPBD_TEMPLATE_API and LIBPBD_TEMPLATE_MEMBER_API where appropriate 2014-03-08 11:28:54 +00:00
Robin Gareus
912f07b919 mingw build fixes (tested with i686-w64-mingw32 on linux-x86_64) 2014-03-04 15:25:58 +01:00
Paul Davis
43421f0b46 minor fix for libpbd wscript on windows 2014-03-03 10:31:53 -05:00
Paul Davis
8040df1897 move export_search_path(), previously in gtk2_ardour/main.cc, into libs/pbd 2014-03-02 11:25:54 -05:00
Paul Davis
b8419ae7cd use "new" VST search path code and adjust build system to reflect new source files 2014-03-02 10:53:25 -05:00
Paul Davis
8ba449bc4e remove fallback_folders code, add simpler more focused get_vst_search_path() and breakout get_win_special_folder() into its own file 2014-03-02 10:52:52 -05:00
Paul Davis
c10e11eca5 for windows build, add fallback_folders.cc to libpbd source list 2014-03-01 22:47:19 -05:00
Paul Davis
fc88eaf392 add likely stub code for adding linkage to libole when building libpbd on windows.
I may have gotten the precise linkflags string incorrect, but this my best guess.
2014-03-01 22:44:56 -05:00
Paul Davis
fd64bba1de add -DPROGRAM_NAME to libpbd compile flags 2014-03-01 22:43:46 -05:00
Paul Davis
08c89809ee REALLY REALLY CORRECT template export macros for libpbd 2014-03-01 22:31:47 -05:00
Paul Davis
dbd89ed49d REALLY CORRECT template export macros for libpbd 2014-03-01 18:59:44 -05:00
Paul Davis
c1a540f34e use template export forms for MemementoCommand 2014-03-01 18:59:37 -05:00
Paul Davis
9526fef902 CORRECT template export macros for libpbd 2014-03-01 18:58:41 -05:00
Paul Davis
9f121fac81 add template export macros for libpbd 2014-03-01 18:57:36 -05:00