diff --git a/cockatrice/CMakeLists.txt b/cockatrice/CMakeLists.txt index 8e19da95..ec272dc5 100644 --- a/cockatrice/CMakeLists.txt +++ b/cockatrice/CMakeLists.txt @@ -193,7 +193,7 @@ INCLUDE_DIRECTORIES(${QT_MOBILITY_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${QT_MOBILITY_MULTIMEDIAKIT_INCLUDE_DIR}) ADD_EXECUTABLE(cockatrice WIN32 MACOSX_BUNDLE ${cockatrice_SOURCES} ${cockatrice_QM} ${cockatrice_RESOURCES_RCC} ${cockatrice_HEADERS_MOC}) -TARGET_LINK_LIBRARIES(cockatrice cockatrice_common ${QT_LIBRARIES} ${QT_MOBILITY_MULTIMEDIAKIT_LIBRARY} ${PROTOBUF_LIBRARIES}) +TARGET_LINK_LIBRARIES(cockatrice cockatrice_common ${QT_LIBRARIES} ${QT_MOBILITY_MULTIMEDIAKIT_LIBRARY}) INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/cockatrice DESTINATION bin) if (NOT WIN32 AND NOT APPLE) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index f00d13b8..fc0fef2c 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -1,4 +1,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +add_subdirectory(pb) SET(common_SOURCES decklist.cpp @@ -42,7 +43,6 @@ INCLUDE_DIRECTORIES(sfmt) INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) -add_subdirectory(pb) add_library(cockatrice_common ${common_SOURCES} ${common_HEADERS_MOC}) target_link_libraries(cockatrice_common cockatrice_protocol) diff --git a/common/pb/CMakeLists.txt b/common/pb/CMakeLists.txt index 9e5503a9..a26ec3e6 100644 --- a/common/pb/CMakeLists.txt +++ b/common/pb/CMakeLists.txt @@ -133,7 +133,5 @@ include_directories(${PROTOBUF_INCLUDE_DIRS}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${PROTO_FILES}) -set(CMAKE_BUILD_TYPE Release) - add_library(cockatrice_protocol ${PROTO_SRCS} ${PROTO_HDRS}) -#target_link_libraries(${PROTOBUF_LIBRARIES}) +target_link_libraries(cockatrice_protocol general $(PROTOBUF_LIBRARIES) general -lprotobuf) diff --git a/nsis/cockatrice.nsi b/nsis/cockatrice.nsi index a82115d2..e9b817f3 100644 --- a/nsis/cockatrice.nsi +++ b/nsis/cockatrice.nsi @@ -31,30 +31,38 @@ InstallDir "$PROGRAMFILES\Cockatrice" Section "Application" SecApplication SetOutPath "$INSTDIR" - File ..\cockatrice\release\cockatrice.exe - File ..\oracle\release\oracle.exe - File data\libgcc_s_dw2-1.dll - File data\mingwm10.dll - File data\QtCore4.dll - File data\QtGui4.dll - File data\QtNetwork4.dll - File data\QtSvg4.dll - File data\QtXml4.dll - File data\QtMultimedia4.dll - File data\QtScript4.dll + File ..\build\cockatrice\cockatrice.exe + File ..\build\oracle\oracle.exe + File C:\MinGW\bin\libstdc++-6.dll + File C:\MinGW\bin\libgcc_s_dw2-1.dll + File C:\MinGW\bin\mingwm10.dll + File C:\MinGW\bin\libprotobuf-7.dll + File C:\MinGW\bin\QtCore4.dll + File C:\MinGW\bin\QtGui4.dll + File C:\MinGW\bin\QtNetwork4.dll + File C:\MinGW\bin\QtSvg4.dll + File C:\MinGW\bin\QtXml4.dll + File C:\MinGW\bin\QtMultimedia4.dll + File C:\MinGW\bin\QtScript4.dll SetOutPath "$INSTDIR\zonebg" File /r ..\zonebg\*.* SetOutPath "$INSTDIR\plugins" - File /r data\plugins\*.* + SetOutPath "$INSTDIR\plugins\codecs" + File C:\MinGW\plugins\codecs\qcncodecs4.dll + File C:\MinGW\plugins\codecs\qjpcodecs4.dll + File C:\MinGW\plugins\codecs\qkrcodecs4.dll + File C:\MinGW\plugins\codecs\qtwcodecs4.dll + SetOutPath "$INSTDIR\plugins\iconengines" + File C:\MinGW\plugins\iconengines\qsvgicon4.dll + SetOutPath "$INSTDIR\plugins\imageformats" + File C:\MinGW\plugins\imageformats\qjpeg4.dll + File c:\MinGW\plugins\imageformats\qsvg4.dll SetOutPath "$INSTDIR\sounds" File /r ..\sounds\*.* - SetOutPath "$INSTDIR\pics" - SetOutPath "$INSTDIR\decks" - WriteUninstaller "$INSTDIR\uninstall.exe" ${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2 IntFmt $0 "0x%08X" $0 @@ -83,13 +91,11 @@ Section Uninstall RMDir /r "$INSTDIR\zonebg" RMDir /r "$INSTDIR\plugins" RMDir /r "$INSTDIR\sounds" - RMDir "$INSTDIR\decks" - RMDir /r "$INSTDIR\pics\downloadedPics" - RMDir "$INSTDIR\pics" Delete "$INSTDIR\uninstall.exe" Delete "$INSTDIR\cockatrice.exe" Delete "$INSTDIR\oracle.exe" - Delete "$INSTDIR\cards.xml" + Delete "$INSTDIR\libstdc++-6.dll" + Delete "$INSTDIR\libprotobuf-7.dll" Delete "$INSTDIR\libgcc_s_dw2-1.dll" Delete "$INSTDIR\mingwm10.dll" Delete "$INSTDIR\QtCore4.dll"