author | koda |
Wed, 12 Jun 2013 19:30:11 +0200 | |
changeset 9217 | 992b7ef2eba3 |
parent 9121 | 41424fca0ef3 |
child 9132 | 57ce31b696ff |
permissions | -rw-r--r-- |
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) |
|
8791 | 26 |
set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".") |
8723
b08cc68a26a3
add 'run Hedgewars' checkbox at the end of the NSIS installation
koda
parents:
8701
diff
changeset
|
27 |
set(CPACK_NSIS_MUI_FINISHPAGE_RUN "hedgewars${CMAKE_EXECUTABLE_SUFFIX}") |
8791 | 28 |
set(CPACK_NSIS_CREATE_ICONS "CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Hedgewars.lnk' '$INSTDIR\\\\hedgewars.exe'") |
8698 | 29 |
set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "hedgewars") |
30 |
endif(WIN32 AND NOT UNIX) |
|
31 |
||
32 |
set(CPACK_SOURCE_IGNORE_FILES |
|
33 |
#temporary files |
|
34 |
"~" |
|
35 |
".swp" |
|
36 |
#version control |
|
37 |
"\\\\.hg" |
|
9114 | 38 |
"\\\\.orig$" |
8698 | 39 |
#output binary/library |
40 |
"\\\\.exe$" |
|
41 |
"\\\\.a$" |
|
42 |
"\\\\.so$" |
|
43 |
"\\\\.dylib$" |
|
44 |
"\\\\.dll$" |
|
45 |
"\\\\.ppu$" |
|
46 |
"\\\\.o$" |
|
47 |
"\\\\.cxx$" |
|
9092 | 48 |
"\\\\.hi$" |
8698 | 49 |
#graphics |
50 |
"\\\\.xcf$" |
|
51 |
"\\\\.svg$" |
|
52 |
"\\\\.svgz$" |
|
53 |
"\\\\.psd$" |
|
54 |
"\\\\.sifz$" |
|
55 |
#misc |
|
56 |
"\\\\.core$" |
|
57 |
"\\\\.layout$" |
|
58 |
"\\\\.db$" |
|
59 |
"\\\\.dof$" |
|
9114 | 60 |
"\\\\.or$" |
8698 | 61 |
#archives |
62 |
"\\\\.zip$" |
|
63 |
"\\\\.gz$" |
|
64 |
"\\\\.bz2$" |
|
65 |
"\\\\.tmp$" |
|
66 |
#cmake-configured files |
|
67 |
"hwconsts\\\\.cpp$" |
|
68 |
"config\\\\.inc$" |
|
69 |
"hwengine\\\\.desktop$" |
|
70 |
"Info\\\\.plist$" |
|
9114 | 71 |
#qt extra files |
72 |
"moc_.*\\\\.cxx_parameters" |
|
73 |
"\\\\.qrc.depends$" |
|
9121
41424fca0ef3
sigh (qm files should not be in package_source either)
koda
parents:
9114
diff
changeset
|
74 |
"\\\\.qm$" |
8698 | 75 |
#other cmake generated files |
9114 | 76 |
"Makefile$" |
8698 | 77 |
"Doxyfile" |
78 |
"CMakeFiles" |
|
79 |
"[dD]ebug$" |
|
80 |
"[rR]elease$" |
|
81 |
"CPack" |
|
82 |
"cmake_install\\\\.cmake$" |
|
9092 | 83 |
"cmake_uninstall\\\\.cmake$" |
8698 | 84 |
"CMakeCache\\\\.txt$" |
9092 | 85 |
"build_windows_.*\\\\.bat$" |
8698 | 86 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libtremor" |
87 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libfreetype" |
|
88 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/liblua" |
|
9092 | 89 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/frontlib" |
90 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/cmdlineClient" |
|
8698 | 91 |
"^${CMAKE_CURRENT_SOURCE_DIR}/misc/libopenalbridge" |
9114 | 92 |
"^${CMAKE_CURRENT_SOURCE_DIR}/misc/winutils/bin" |
8698 | 93 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/promotional_art" |
94 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tools/templates" |
|
9092 | 95 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tools/drawMapTest" |
8698 | 96 |
"^${CMAKE_CURRENT_SOURCE_DIR}/doc" |
97 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tmp" |
|
98 |
"^${CMAKE_CURRENT_SOURCE_DIR}/utils" |
|
99 |
"^${CMAKE_CURRENT_SOURCE_DIR}/share/hedgewars/Data/Maps/test" |
|
100 |
"^${CMAKE_CURRENT_SOURCE_DIR}/install_manifest.txt" |
|
101 |
"^${CMAKE_CURRENT_SOURCE_DIR}/CMakeCache.txt" |
|
102 |
"^${CMAKE_CURRENT_SOURCE_DIR}/hedgewars\\\\." |
|
103 |
) |
|
104 |
||
105 |
include(CPack) |