8699
|
1 |
|
|
2 |
# revision information in cpack-generated names
|
|
3 |
if(CMAKE_BUILD_TYPE MATCHES DEBUG)
|
|
4 |
set(full_suffix "${HEDGEWARS_VERSION}-r${HEDGEWARS_REVISION}")
|
|
5 |
else()
|
|
6 |
set(full_suffix "${HEDGEWARS_VERSION}")
|
|
7 |
endif()
|
8698
|
8 |
|
|
9 |
# CPack variables
|
8700
|
10 |
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a free turn-based strategy game")
|
8698
|
11 |
set(CPACK_PACKAGE_VENDOR "Hedgewars Project")
|
8700
|
12 |
set(CPACK_PACKAGE_FILE_NAME "Hedgewars-${full_suffix}")
|
8699
|
13 |
set(CPACK_SOURCE_PACKAGE_FILE_NAME "hedgewars-src-${full_suffix}")
|
8698
|
14 |
set(CPACK_SOURCE_GENERATOR "TBZ2")
|
8700
|
15 |
set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "Hedgewars")
|
8699
|
16 |
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
|
|
17 |
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${full_suffix}")
|
8701
|
18 |
set(CPACK_STRIP_FILES true)
|
8698
|
19 |
|
|
20 |
if(WIN32 AND NOT UNIX)
|
|
21 |
set(CPACK_NSIS_DISPLAY_NAME "Hedgewars")
|
|
22 |
set(CPACK_NSIS_HELP_LINK "http://www.hedgewars.org/")
|
|
23 |
set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/")
|
|
24 |
set(CPACK_NSIS_CONTACT "unC0Rr@gmail.com")
|
|
25 |
set(CPACK_NSIS_MODIFY_PATH OFF)
|
|
26 |
set(CPACK_NSIS_EXECUTABLES_DIRECTORY "${target_binary_install_dir}")
|
|
27 |
set(CPACK_GENERATOR "ZIP;NSIS")
|
|
28 |
set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "hedgewars")
|
|
29 |
endif(WIN32 AND NOT UNIX)
|
|
30 |
|
|
31 |
set(CPACK_SOURCE_IGNORE_FILES
|
|
32 |
#temporary files
|
|
33 |
"~"
|
|
34 |
".swp"
|
|
35 |
#version control
|
|
36 |
"\\\\.hg"
|
|
37 |
#output binary/library
|
|
38 |
"\\\\.exe$"
|
|
39 |
"\\\\.a$"
|
|
40 |
"\\\\.so$"
|
|
41 |
"\\\\.dylib$"
|
|
42 |
"\\\\.dll$"
|
|
43 |
"\\\\.ppu$"
|
|
44 |
"\\\\.o$"
|
|
45 |
"\\\\.cxx$"
|
|
46 |
#graphics
|
|
47 |
"\\\\.xcf$"
|
|
48 |
"\\\\.svg$"
|
|
49 |
"\\\\.svgz$"
|
|
50 |
"\\\\.psd$"
|
|
51 |
"\\\\.sifz$"
|
|
52 |
#misc
|
|
53 |
"\\\\.core$"
|
|
54 |
"\\\\.sh$"
|
|
55 |
"\\\\.orig$"
|
|
56 |
"\\\\.layout$"
|
|
57 |
"\\\\.db$"
|
|
58 |
"\\\\.dof$"
|
|
59 |
#archives
|
|
60 |
"\\\\.zip$"
|
|
61 |
"\\\\.gz$"
|
|
62 |
"\\\\.bz2$"
|
|
63 |
"\\\\.tmp$"
|
|
64 |
#cmake-configured files
|
|
65 |
"hwconsts\\\\.cpp$"
|
|
66 |
"config\\\\.inc$"
|
|
67 |
"hwengine\\\\.desktop$"
|
|
68 |
"Info\\\\.plist$"
|
|
69 |
#other cmake generated files
|
|
70 |
"Makefile"
|
|
71 |
"Doxyfile"
|
|
72 |
"CMakeFiles"
|
|
73 |
"[dD]ebug$"
|
|
74 |
"[rR]elease$"
|
|
75 |
"CPack"
|
|
76 |
"cmake_install\\\\.cmake$"
|
|
77 |
"CMakeCache\\\\.txt$"
|
|
78 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libtremor"
|
|
79 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libfreetype"
|
|
80 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/liblua"
|
|
81 |
"^${CMAKE_CURRENT_SOURCE_DIR}/misc/libopenalbridge"
|
|
82 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/frontlib"
|
|
83 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/promotional_art"
|
|
84 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/cmdlineClient"
|
|
85 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tools/templates"
|
|
86 |
"^${CMAKE_CURRENT_SOURCE_DIR}/bin/checkstack*"
|
|
87 |
"^${CMAKE_CURRENT_SOURCE_DIR}/doc"
|
|
88 |
"^${CMAKE_CURRENT_SOURCE_DIR}/templates"
|
|
89 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tmp"
|
|
90 |
"^${CMAKE_CURRENT_SOURCE_DIR}/utils"
|
|
91 |
"^${CMAKE_CURRENT_SOURCE_DIR}/share/hedgewars/Data/Maps/test"
|
|
92 |
"^${CMAKE_CURRENT_SOURCE_DIR}/install_manifest.txt"
|
|
93 |
"^${CMAKE_CURRENT_SOURCE_DIR}/CMakeCache.txt"
|
|
94 |
"^${CMAKE_CURRENT_SOURCE_DIR}/hedgewars\\\\."
|
|
95 |
)
|
|
96 |
|
|
97 |
include(CPack)
|
|
98 |
|