include session-utils with windows bundles
authorRobin Gareus <robin@gareus.org>
Fri, 14 Oct 2016 16:33:16 +0000 (18:33 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 14 Oct 2016 16:36:54 +0000 (18:36 +0200)
session_utils/wscript
tools/x-win/package.sh

index 62186345fd4bc4e27143dd5e5971866677779d7b..5fe944542601861bdcafb17b47ccb2e26e8bc445 100644 (file)
@@ -66,8 +66,7 @@ def build_ardour_util(bld, util):
     obj.includes += ['../libs']
 
     if bld.env['build_target'] == 'mingw':
-        if bld.env['DEBUG'] == False:
-            obj.linkflags = ['-mwindows']
+        obj.install_path = bld.env['BINDIR']
 
     if bld.is_defined('NEED_INTL'):
         obj.linkflags = ' -lintl'
@@ -82,12 +81,6 @@ def build(bld):
     if bld.is_defined('WINDOWS_VST_SUPPORT') and bld.env['build_target'] != 'mingw':
         return
 
-    # don't build/install windows version just yet.
-    # tools/x-win/package.sh uses 'waf install'. The symlinks
-    # and shell wrapper script won't work on windows.
-    if bld.env['build_target'] == 'mingw':
-        return
-
     pgmprefix = bld.env['PROGRAM_NAME'].lower() + str(bld.env['MAJOR'])
 
     utils = bld.path.ant_glob('*.cc', excl=['example.cc', 'common.cc'])
@@ -95,7 +88,11 @@ def build(bld):
     for util in utils:
         fn = str(util)[:-3]
         build_ardour_util(bld, fn)
-        bld.symlink_as(bld.env['BINDIR'] + '/' + pgmprefix + "-" + fn, bld.env['LIBDIR'] + '/utils/ardour-util.sh')
+        if bld.env['build_target'] != 'mingw':
+            bld.symlink_as(bld.env['BINDIR'] + '/' + pgmprefix + "-" + fn, bld.env['LIBDIR'] + '/utils/ardour-util.sh')
+
+    if bld.env['build_target'] == 'mingw':
+        return
 
     obj              = bld(features = 'subst')
     obj.source       = 'ardour-util.sh.in'
index 787c57695202960b6f4f56d0e0efa89565fca84c..7307b33e0eaaa7f86f2797df53fd446adb17deeb 100755 (executable)
@@ -139,6 +139,7 @@ cp build/libs/pbd/pbd-*.dll $DESTDIR/bin/
 cp build/libs/ptformat/ptformat-*.dll $DESTDIR/bin/
 cp build/libs/audiographer/audiographer-*.dll $DESTDIR/bin/
 cp build/libs/fst/ardour-vst-scanner.exe $DESTDIR/bin/ || true
+cp build/session_utils/*-*.exe $DESTDIR/bin/ || true
 cp `ls -t build/gtk2_ardour/ardour-*.exe | head -n1` $DESTDIR/bin/${PRODUCT_EXE}
 
 mkdir -p $DESTDIR/lib/gtk-2.0/engines