author | koda |
Mon, 03 Jun 2013 16:15:17 +0200 | |
branch | 0.9.19 |
changeset 9102 | 6528c2ad5985 |
parent 9092 | 164690ff1408 |
child 9114 | e33d5026e14a |
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" |
|
38 |
#output binary/library |
|
39 |
"\\\\.exe$" |
|
40 |
"\\\\.a$" |
|
41 |
"\\\\.so$" |
|
42 |
"\\\\.dylib$" |
|
43 |
"\\\\.dll$" |
|
44 |
"\\\\.ppu$" |
|
45 |
"\\\\.o$" |
|
46 |
"\\\\.cxx$" |
|
9092 | 47 |
"\\\\.hi$" |
8698 | 48 |
#graphics |
49 |
"\\\\.xcf$" |
|
50 |
"\\\\.svg$" |
|
51 |
"\\\\.svgz$" |
|
52 |
"\\\\.psd$" |
|
53 |
"\\\\.sifz$" |
|
54 |
#misc |
|
55 |
"\\\\.core$" |
|
56 |
"\\\\.sh$" |
|
57 |
"\\\\.orig$" |
|
58 |
"\\\\.layout$" |
|
59 |
"\\\\.db$" |
|
60 |
"\\\\.dof$" |
|
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$" |
|
71 |
#other cmake generated files |
|
72 |
"Makefile" |
|
73 |
"Doxyfile" |
|
74 |
"CMakeFiles" |
|
75 |
"[dD]ebug$" |
|
76 |
"[rR]elease$" |
|
77 |
"CPack" |
|
78 |
"cmake_install\\\\.cmake$" |
|
9092 | 79 |
"cmake_uninstall\\\\.cmake$" |
8698 | 80 |
"CMakeCache\\\\.txt$" |
9092 | 81 |
"build_windows_.*\\\\.bat$" |
8698 | 82 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libtremor" |
83 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libfreetype" |
|
84 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/liblua" |
|
9092 | 85 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/frontlib" |
86 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/cmdlineClient" |
|
8698 | 87 |
"^${CMAKE_CURRENT_SOURCE_DIR}/misc/libopenalbridge" |
88 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/promotional_art" |
|
89 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tools/templates" |
|
9092 | 90 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tools/drawMapTest" |
8698 | 91 |
"^${CMAKE_CURRENT_SOURCE_DIR}/doc" |
92 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tmp" |
|
93 |
"^${CMAKE_CURRENT_SOURCE_DIR}/utils" |
|
94 |
"^${CMAKE_CURRENT_SOURCE_DIR}/share/hedgewars/Data/Maps/test" |
|
95 |
"^${CMAKE_CURRENT_SOURCE_DIR}/install_manifest.txt" |
|
96 |
"^${CMAKE_CURRENT_SOURCE_DIR}/CMakeCache.txt" |
|
97 |
"^${CMAKE_CURRENT_SOURCE_DIR}/hedgewars\\\\." |
|
98 |
) |
|
99 |
||
100 |
include(CPack) |