author | Periklis Ntanasis <pntanasis@gmail.com> |
Fri, 02 Aug 2013 01:55:38 +0300 | |
branch | spacecampaign |
changeset 9451 | c3799f0f17cb |
parent 9373 | b769a8e38cbd |
child 9882 | 8efe8d4deba9 |
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$" |
9187 | 61 |
"\\\\.stackdump$" |
8698 | 62 |
#archives |
63 |
"\\\\.zip$" |
|
64 |
"\\\\.gz$" |
|
65 |
"\\\\.bz2$" |
|
66 |
"\\\\.tmp$" |
|
67 |
#cmake-configured files |
|
68 |
"hwconsts\\\\.cpp$" |
|
69 |
"config\\\\.inc$" |
|
70 |
"hwengine\\\\.desktop$" |
|
71 |
"Info\\\\.plist$" |
|
9114 | 72 |
#qt extra files |
73 |
"moc_.*\\\\.cxx_parameters" |
|
74 |
"\\\\.qrc.depends$" |
|
9121
41424fca0ef3
sigh (qm files should not be in package_source either)
koda
parents:
9114
diff
changeset
|
75 |
"\\\\.qm$" |
8698 | 76 |
#other cmake generated files |
9114 | 77 |
"Makefile$" |
8698 | 78 |
"Doxyfile" |
79 |
"CMakeFiles" |
|
80 |
"[dD]ebug$" |
|
81 |
"[rR]elease$" |
|
82 |
"CPack" |
|
83 |
"cmake_install\\\\.cmake$" |
|
9092 | 84 |
"cmake_uninstall\\\\.cmake$" |
8698 | 85 |
"CMakeCache\\\\.txt$" |
9092 | 86 |
"build_windows_.*\\\\.bat$" |
9373 | 87 |
"^${CMAKE_CURRENT_SOURCE_DIR}/misc/liblua" |
9092 | 88 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/frontlib" |
89 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/cmdlineClient" |
|
9114 | 90 |
"^${CMAKE_CURRENT_SOURCE_DIR}/misc/winutils/bin" |
8698 | 91 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/promotional_art" |
92 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tools/templates" |
|
9092 | 93 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tools/drawMapTest" |
8698 | 94 |
"^${CMAKE_CURRENT_SOURCE_DIR}/doc" |
95 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tmp" |
|
96 |
"^${CMAKE_CURRENT_SOURCE_DIR}/utils" |
|
97 |
"^${CMAKE_CURRENT_SOURCE_DIR}/share/hedgewars/Data/Maps/test" |
|
98 |
"^${CMAKE_CURRENT_SOURCE_DIR}/install_manifest.txt" |
|
99 |
"^${CMAKE_CURRENT_SOURCE_DIR}/CMakeCache.txt" |
|
100 |
"^${CMAKE_CURRENT_SOURCE_DIR}/hedgewars\\\\." |
|
101 |
) |
|
102 |
||
103 |
include(CPack) |