# HG changeset patch # User unc0rr # Date 1154884293 0 # Node ID fd9613278d1b0287e12cb2b015a2de1aa0f9dd3e # Parent f1d252c234ece8663a806e40f5a9bc3b1ba619f8 - On windows make packages with all needed dlls - Fix for long path failure diff -r f1d252c234ec -r fd9613278d1b CMakeLists.txt --- a/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000 +++ b/CMakeLists.txt Sun Aug 06 17:11:33 2006 +0000 @@ -8,6 +8,10 @@ add_subdirectory(hedgewars) add_subdirectory(share) +if(WIN32 AND NOT UNIX) + add_subdirectory(bin) +endif(WIN32 AND NOT UNIX) + set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy") set(CPACK_PACKAGE_VENDOR "Hedgewars") set(CPACK_PACKAGE_VERSION_MAJOR "0") diff -r f1d252c234ec -r fd9613278d1b QTfrontend/CMakeLists.txt --- a/QTfrontend/CMakeLists.txt Sun Aug 06 16:00:23 2006 +0000 +++ b/QTfrontend/CMakeLists.txt Sun Aug 06 17:11:33 2006 +0000 @@ -61,3 +61,15 @@ ${QT_QTMAIN_LIBRARY}) install(PROGRAMS "hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION bin) + + +if(WIN32 AND NOT UNIX) + string(REPLACE "\\" "/" QT_BIN_DIR $ENV{QTDIR}/bin) + + install(FILES + "${QT_BIN_DIR}/QtNetwork4.dll" + "${QT_BIN_DIR}/QtGui4.dll" + "${QT_BIN_DIR}/QtCore4.dll" + "${QT_BIN_DIR}/mingwm10.dll" + DESTINATION bin) +endif(WIN32 AND NOT UNIX) diff -r f1d252c234ec -r fd9613278d1b hedgewars/uConsts.pas --- a/hedgewars/uConsts.pas Sun Aug 06 16:00:23 2006 +0000 +++ b/hedgewars/uConsts.pas Sun Aug 06 17:11:33 2006 +0000 @@ -181,8 +181,8 @@ Name: 'DejaVuSans.ttf') ); - PathPrefix: shortstring = './'; - Pathz: array[TPathType] of string[ 64] = ( + PathPrefix: string = './'; + Pathz: array[TPathType] of string = ( '', // ptNone 'Data', // ptData 'Data/Graphics', // ptGraphics