Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
96213fc3
Commit
96213fc3
authored
Feb 25, 2012
by
Max-Wilhelm Bruker
Browse files
Windows fixes
parent
89c92047
Changes
4
Hide whitespace changes
Inline
Side-by-side
cockatrice/CMakeLists.txt
View file @
96213fc3
...
...
@@ -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
)
...
...
common/CMakeLists.txt
View file @
96213fc3
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
)
common/pb/CMakeLists.txt
View file @
96213fc3
...
...
@@ -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
)
nsis/cockatrice.nsi
View file @
96213fc3
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment