author | koda |
Wed, 27 Mar 2013 11:18:00 +0100 | |
changeset 8795 | b5b79a8f9354 |
parent 8723 | b08cc68a26a3 |
child 8791 | 6e3308fc2a1d |
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) |
|
26 |
set(CPACK_NSIS_EXECUTABLES_DIRECTORY "${target_binary_install_dir}") |
|
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}") |
8698 | 28 |
set(CPACK_GENERATOR "ZIP;NSIS") |
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$" |
|
47 |
#graphics |
|
48 |
"\\\\.xcf$" |
|
49 |
"\\\\.svg$" |
|
50 |
"\\\\.svgz$" |
|
51 |
"\\\\.psd$" |
|
52 |
"\\\\.sifz$" |
|
53 |
#misc |
|
54 |
"\\\\.core$" |
|
55 |
"\\\\.sh$" |
|
56 |
"\\\\.orig$" |
|
57 |
"\\\\.layout$" |
|
58 |
"\\\\.db$" |
|
59 |
"\\\\.dof$" |
|
60 |
#archives |
|
61 |
"\\\\.zip$" |
|
62 |
"\\\\.gz$" |
|
63 |
"\\\\.bz2$" |
|
64 |
"\\\\.tmp$" |
|
65 |
#cmake-configured files |
|
66 |
"hwconsts\\\\.cpp$" |
|
67 |
"config\\\\.inc$" |
|
68 |
"hwengine\\\\.desktop$" |
|
69 |
"Info\\\\.plist$" |
|
70 |
#other cmake generated files |
|
71 |
"Makefile" |
|
72 |
"Doxyfile" |
|
73 |
"CMakeFiles" |
|
74 |
"[dD]ebug$" |
|
75 |
"[rR]elease$" |
|
76 |
"CPack" |
|
77 |
"cmake_install\\\\.cmake$" |
|
78 |
"CMakeCache\\\\.txt$" |
|
79 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libtremor" |
|
80 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/libfreetype" |
|
81 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/liblua" |
|
82 |
"^${CMAKE_CURRENT_SOURCE_DIR}/misc/libopenalbridge" |
|
83 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/frontlib" |
|
84 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/promotional_art" |
|
85 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/cmdlineClient" |
|
86 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tools/templates" |
|
87 |
"^${CMAKE_CURRENT_SOURCE_DIR}/bin/checkstack*" |
|
88 |
"^${CMAKE_CURRENT_SOURCE_DIR}/doc" |
|
89 |
"^${CMAKE_CURRENT_SOURCE_DIR}/templates" |
|
90 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tmp" |
|
91 |
"^${CMAKE_CURRENT_SOURCE_DIR}/utils" |
|
92 |
"^${CMAKE_CURRENT_SOURCE_DIR}/share/hedgewars/Data/Maps/test" |
|
93 |
"^${CMAKE_CURRENT_SOURCE_DIR}/install_manifest.txt" |
|
94 |
"^${CMAKE_CURRENT_SOURCE_DIR}/CMakeCache.txt" |
|
95 |
"^${CMAKE_CURRENT_SOURCE_DIR}/hedgewars\\\\." |
|
96 |
) |
|
97 |
||
98 |
include(CPack) |
|
99 |