Fix build of Windows debug version.
authorCarl Hetherington <cth@carlh.net>
Fri, 23 Sep 2016 12:20:24 +0000 (13:20 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 23 Sep 2016 18:03:03 +0000 (19:03 +0100)
platform/windows/dcpomatic2_batch_debug.bat [new file with mode: 0644]
platform/windows/dcpomatic2_debug.bat [new file with mode: 0644]
platform/windows/debug.bat [deleted file]
platform/windows/wscript
src/tools/wscript
test/wscript

diff --git a/platform/windows/dcpomatic2_batch_debug.bat b/platform/windows/dcpomatic2_batch_debug.bat
new file mode 100644 (file)
index 0000000..8227211
--- /dev/null
@@ -0,0 +1 @@
+gdb.exe -x gdb_script dcpomatic2_batch.exe > %HOMEPATH%/Documents/dcpomatic_debug_log.txt
diff --git a/platform/windows/dcpomatic2_debug.bat b/platform/windows/dcpomatic2_debug.bat
new file mode 100644 (file)
index 0000000..0baea6b
--- /dev/null
@@ -0,0 +1 @@
+gdb.exe -x gdb_script dcpomatic2.exe > %HOMEPATH%/Documents/dcpomatic_debug_log.txt
diff --git a/platform/windows/debug.bat b/platform/windows/debug.bat
deleted file mode 100644 (file)
index 0baea6b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-gdb.exe -x gdb_script dcpomatic2.exe > %HOMEPATH%/Documents/dcpomatic_debug_log.txt
index 533b8491b22c38655fbe5dab5a3384183694fcc3..9c35a10cbe782a1799d6467bd940b077eec902ab 100644 (file)
@@ -158,7 +158,8 @@ File "%cdist_deps%/bin/ffprobe.exe"
 
     if debug:
         print('File "%resources%/gdb_script"', file=f)
 
     if debug:
         print('File "%resources%/gdb_script"', file=f)
-        print('File "%resources%/debug.bat"', file=f)
+        print('File "%resources%/dcpomatic2_debug.bat"', file=f)
+        print('File "%resources%/dcpomatic2_batch_debug.bat"', file=f)
         print('File "%mingw%/gdb.exe"', file=f)
         print('File "%mingw%/addr2line.exe"', file=f)
     else:
         print('File "%mingw%/gdb.exe"', file=f)
         print('File "%mingw%/addr2line.exe"', file=f)
     else:
@@ -285,8 +286,10 @@ File "%binaries%/src/tools/dcpomatic2_kdm.exe"
     """, file=f)
 
     if debug:
     """, file=f)
 
     if debug:
-        print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Debug.lnk" "$INSTDIR\\bin\\debug.bat" ""', file=f)
-        print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 Debug\\DCP-o-matic 2 Debug.lnk" "$INSTDIR\\bin\\debug.bat"', file=f)
+        print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 debug.lnk" "$INSTDIR\\bin\\dcpomatic2_debug.bat" ""', file=f)
+        print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 Debug\\DCP-o-matic 2 Debug.lnk" "$INSTDIR\\bin\\dcpomatic2_debug.bat"', file=f)
+        print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 batch converter debug.lnk" "$INSTDIR\\bin\\dcpomatic2_batch_debug.bat" ""', file=f)
+        print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 Debug\\\\DCP-o-matic 2 batch converter debug.lnk" "$INSTDIR\\bin\\dcpomatic2_batch_debug.bat" ""', file=f)
         print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 Debug\\Uninstall DCP-o-matic 2 Debug.lnk" "$INSTDIR\\Uninstall.exe"', file=f)
         print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 Debug" "DisplayName" "DCP-o-matic 2 Debug (remove only)"', file=f)
         print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 Debug" "UninstallString" "$INSTDIR\\Uninstall.exe"', file=f)
         print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 Debug\\Uninstall DCP-o-matic 2 Debug.lnk" "$INSTDIR\\Uninstall.exe"', file=f)
         print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 Debug" "DisplayName" "DCP-o-matic 2 Debug (remove only)"', file=f)
         print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 Debug" "UninstallString" "$INSTDIR\\Uninstall.exe"', file=f)
@@ -345,7 +348,8 @@ SectionEnd
 Section "Uninstall"
 RMDir /r "$INSTDIR\\*.*"
 RMDir "$INSTDIR"
 Section "Uninstall"
 RMDir /r "$INSTDIR\\*.*"
 RMDir "$INSTDIR"
-Delete "$DESKTOP\\DCP-o-matic 2 Debug.lnk"
+Delete "$DESKTOP\\DCP-o-matic 2 debug.lnk"
+Delete "$DESKTOP\\DCP-o-matic 2 batch converter debug.lnk"
 Delete "$SMPROGRAMS\\DCP-o-matic 2 Debug\\*.*"
 RmDir  "$SMPROGRAMS\\DCP-o-matic 2 Debug"
 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\DCP-o-matic 2 Debug"
 Delete "$SMPROGRAMS\\DCP-o-matic 2 Debug\\*.*"
 RmDir  "$SMPROGRAMS\\DCP-o-matic 2 Debug"
 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\DCP-o-matic 2 Debug"
index 76c87598fdaa5b7ca6d3d10933a459eda5cf1257..0670dd852c48bd5bdb403937bc548fe0cc3db981 100644 (file)
@@ -33,7 +33,7 @@ def build(bld):
     uselib += 'ICU NETTLE '
 
     if bld.env.TARGET_WINDOWS:
     uselib += 'ICU NETTLE '
 
     if bld.env.TARGET_WINDOWS:
-        uselib += 'WINSOCK2'
+        uselib += 'WINSOCK2 BFD DBGHELP IBERTY SHLWAPI MSWSOCK BOOST_LOCALE '
 
     for t in ['dcpomatic_cli', 'dcpomatic_server_cli', 'server_test', 'dcpomatic_kdm_cli', 'dcpomatic_create']:
         obj = bld(features='cxx cxxprogram')
 
     for t in ['dcpomatic_cli', 'dcpomatic_server_cli', 'server_test', 'dcpomatic_kdm_cli', 'dcpomatic_create']:
         obj = bld(features='cxx cxxprogram')
index a7a406856c80b30b6b86a3c15b3c4109f08eb970..ec4cbb068262131b9d99cb9c049df5a57893ab6a 100644 (file)
@@ -36,7 +36,7 @@ def build(bld):
     obj.uselib =  'BOOST_TEST BOOST_THREAD BOOST_FILESYSTEM BOOST_DATETIME SNDFILE SAMPLERATE DCP FONTCONFIG CAIROMM PANGOMM XMLPP '
     obj.uselib += 'AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML MAGICK SUB GLIB CURL SSH XMLSEC BOOST_REGEX ICU NETTLE '
     if bld.env.TARGET_WINDOWS:
     obj.uselib =  'BOOST_TEST BOOST_THREAD BOOST_FILESYSTEM BOOST_DATETIME SNDFILE SAMPLERATE DCP FONTCONFIG CAIROMM PANGOMM XMLPP '
     obj.uselib += 'AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML MAGICK SUB GLIB CURL SSH XMLSEC BOOST_REGEX ICU NETTLE '
     if bld.env.TARGET_WINDOWS:
-        obj.uselib += 'WINSOCK2'
+        obj.uselib += 'WINSOCK2 BFD DBGHELP IBERTY SHLWAPI MSWSOCK BOOST_LOCALE '
     obj.use    = 'libdcpomatic2'
     obj.source = """
                  4k_test.cc
     obj.use    = 'libdcpomatic2'
     obj.source = """
                  4k_test.cc