Try to hide console window from dist writer on Windows.
authorCarl Hetherington <cth@carlh.net>
Fri, 27 Mar 2020 21:05:57 +0000 (22:05 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 28 Mar 2020 18:47:28 +0000 (19:47 +0100)
src/tools/wscript

index 33eb8f192ac1d160bb3d1582de9c7644119bf0c6..3ff0815227c361124aa7b1d7b397a3bcd9dda320 100644 (file)
@@ -58,6 +58,8 @@ def build(bld):
         obj.source = '%s.cc' % t
         if bld.env.TARGET_WINDOWS and t == 'dcpomatic_dist_writer':
             obj.source += ' ../../platform/windows/%s.rc' % t
+            # Prevent a console window opening when we start dcpomatic2_dist_writer
+            bld.env.LINKFLAGS.append('-Wl,-subsystem,windows')
         obj.target = t.replace('dcpomatic', 'dcpomatic2').replace('swaroop_', '')
         if t == 'server_test':
             obj.install_path = None