mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
never show windows console.
If ardour is launched from a terminal, stdout/stderr works since
9988f661f. Further, the debug-version comes packaged with gdb and
a has a start-menu shortcut for it. There is no need to implicitly
always show a console even for debug builds.
This commit is contained in:
parent
9988f661fa
commit
946e63a276
2 changed files with 4 additions and 5 deletions
|
|
@ -148,7 +148,7 @@ sigpipe_handler (int /*signal*/)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if (!defined COMPILER_MSVC && defined PLATFORM_WINDOWS && defined NDEBUG)
|
#if (!defined COMPILER_MSVC && defined PLATFORM_WINDOWS)
|
||||||
static bool IsAConsolePort (HANDLE handle)
|
static bool IsAConsolePort (HANDLE handle)
|
||||||
{
|
{
|
||||||
DWORD mode;
|
DWORD mode;
|
||||||
|
|
@ -192,7 +192,7 @@ int main (int argc, char *argv[])
|
||||||
gtk_set_locale ();
|
gtk_set_locale ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (!defined COMPILER_MSVC && defined PLATFORM_WINDOWS && defined NDEBUG)
|
#if (!defined COMPILER_MSVC && defined PLATFORM_WINDOWS)
|
||||||
/* re-attach to the console so we can see 'printf()' output etc.
|
/* re-attach to the console so we can see 'printf()' output etc.
|
||||||
* for MSVC see gtk2_ardour/msvc/winmain.cc
|
* for MSVC see gtk2_ardour/msvc/winmain.cc
|
||||||
*/
|
*/
|
||||||
|
|
@ -310,7 +310,7 @@ int main (int argc, char *argv[])
|
||||||
ARDOUR::cleanup ();
|
ARDOUR::cleanup ();
|
||||||
pthread_cancel_all ();
|
pthread_cancel_all ();
|
||||||
|
|
||||||
#if (!defined COMPILER_MSVC && defined PLATFORM_WINDOWS && defined NDEBUG)
|
#if (!defined COMPILER_MSVC && defined PLATFORM_WINDOWS)
|
||||||
if (pStdOut) {
|
if (pStdOut) {
|
||||||
fclose (pStdOut);
|
fclose (pStdOut);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -458,8 +458,7 @@ def build(bld):
|
||||||
obj.includes += ['../libs']
|
obj.includes += ['../libs']
|
||||||
|
|
||||||
if bld.env['build_target'] == 'mingw':
|
if bld.env['build_target'] == 'mingw':
|
||||||
if bld.env['DEBUG'] == False:
|
obj.linkflags = ['-mwindows']
|
||||||
obj.linkflags = ['-mwindows']
|
|
||||||
|
|
||||||
if bld.is_defined('HAVE_SUIL'):
|
if bld.is_defined('HAVE_SUIL'):
|
||||||
obj.source += [ 'lv2_plugin_ui.cc' ]
|
obj.source += [ 'lv2_plugin_ui.cc' ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue