author | unC0Rr |
Mon, 02 Dec 2024 17:36:44 +0100 | |
branch | transitional_engine |
changeset 16045 | 58a2d806fc47 |
parent 15454 | 85653290114f |
permissions | -rw-r--r-- |
8699 | 1 |
|
2 |
# revision information in cpack-generated names |
|
15451
3102d95a870e
CMAKE_BUILD_TYPE: Replace MATCHES with STREQUAL
Wuzzy <Wuzzy2@mail.ru>
parents:
15449
diff
changeset
|
3 |
if(CMAKE_BUILD_TYPE STREQUAL "Debug") |
8699 | 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") |
|
13506
36f3f77e9b1b
Switch from http:// to https:// URLs where possible
Wuzzy <Wuzzy2@mail.ru>
parents:
13332
diff
changeset
|
22 |
set(CPACK_NSIS_HELP_LINK "https://www.hedgewars.org/") |
36f3f77e9b1b
Switch from http:// to https:// URLs where possible
Wuzzy <Wuzzy2@mail.ru>
parents:
13332
diff
changeset
|
23 |
set(CPACK_NSIS_URL_INFO_ABOUT "https://www.hedgewars.org/") |
8698 | 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" |
|
10565
1368ba6d538c
Excluding .git directory from the source tarball creation
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
10348
diff
changeset
|
38 |
"\\\\.git" |
9114 | 39 |
"\\\\.orig$" |
8698 | 40 |
#output binary/library |
41 |
"\\\\.exe$" |
|
42 |
"\\\\.a$" |
|
43 |
"\\\\.so$" |
|
44 |
"\\\\.dylib$" |
|
45 |
"\\\\.dll$" |
|
46 |
"\\\\.ppu$" |
|
47 |
"\\\\.o$" |
|
48 |
"\\\\.cxx$" |
|
9092 | 49 |
"\\\\.hi$" |
8698 | 50 |
#graphics |
51 |
"\\\\.xcf$" |
|
52 |
"\\\\.svg$" |
|
53 |
"\\\\.svgz$" |
|
54 |
"\\\\.psd$" |
|
55 |
"\\\\.sifz$" |
|
56 |
#misc |
|
57 |
"\\\\.core$" |
|
58 |
"\\\\.layout$" |
|
59 |
"\\\\.db$" |
|
60 |
"\\\\.dof$" |
|
9114 | 61 |
"\\\\.or$" |
9187 | 62 |
"\\\\.stackdump$" |
8698 | 63 |
#archives |
64 |
"\\\\.zip$" |
|
65 |
"\\\\.gz$" |
|
66 |
"\\\\.bz2$" |
|
67 |
"\\\\.tmp$" |
|
68 |
#cmake-configured files |
|
69 |
"hwconsts\\\\.cpp$" |
|
70 |
"config\\\\.inc$" |
|
71 |
"hwengine\\\\.desktop$" |
|
72 |
"Info\\\\.plist$" |
|
9114 | 73 |
#qt extra files |
13332
003f17cb5920
bump cpack .24 to .24.1, make the moc filter broader
nemo
parents:
12835
diff
changeset
|
74 |
"moc_.*" |
9114 | 75 |
"\\\\.qrc.depends$" |
9121
41424fca0ef3
sigh (qm files should not be in package_source either)
koda
parents:
9114
diff
changeset
|
76 |
"\\\\.qm$" |
8698 | 77 |
#other cmake generated files |
9114 | 78 |
"Makefile$" |
8698 | 79 |
"Doxyfile" |
80 |
"CMakeFiles" |
|
81 |
"[dD]ebug$" |
|
82 |
"[rR]elease$" |
|
83 |
"CPack" |
|
12835 | 84 |
"CTestTestfile.cmake" |
8698 | 85 |
"cmake_install\\\\.cmake$" |
9092 | 86 |
"cmake_uninstall\\\\.cmake$" |
8698 | 87 |
"CMakeCache\\\\.txt$" |
9092 | 88 |
"build_windows_.*\\\\.bat$" |
9953 | 89 |
"arch\\\\.c$" |
10348 | 90 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/misc/liblua" |
9092 | 91 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/frontlib" |
92 |
# "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/cmdlineClient" |
|
9114 | 93 |
"^${CMAKE_CURRENT_SOURCE_DIR}/misc/winutils/bin" |
8698 | 94 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/promotional_art" |
9882 | 95 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/AudioMono" |
96 |
"^${CMAKE_CURRENT_SOURCE_DIR}/project_files/HedgewarsMobile" |
|
8698 | 97 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tools/templates" |
9092 | 98 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tools/drawMapTest" |
8698 | 99 |
"^${CMAKE_CURRENT_SOURCE_DIR}/doc" |
100 |
"^${CMAKE_CURRENT_SOURCE_DIR}/tmp" |
|
101 |
"^${CMAKE_CURRENT_SOURCE_DIR}/utils" |
|
102 |
"^${CMAKE_CURRENT_SOURCE_DIR}/share/hedgewars/Data/Maps/test" |
|
103 |
"^${CMAKE_CURRENT_SOURCE_DIR}/install_manifest.txt" |
|
104 |
"^${CMAKE_CURRENT_SOURCE_DIR}/CMakeCache.txt" |
|
105 |
"^${CMAKE_CURRENT_SOURCE_DIR}/hedgewars\\\\." |
|
14354 | 106 |
"^${CMAKE_CURRENT_SOURCE_DIR}/gameServer2" |
107 |
"^${CMAKE_CURRENT_SOURCE_DIR}/rust" |
|
108 |
"^${CMAKE_CURRENT_SOURCE_DIR}/qmlfrontend" |
|
15454
85653290114f
Exclude some binary files in cpackvars
Wuzzy <Wuzzy2@mail.ru>
parents:
15451
diff
changeset
|
109 |
"^${CMAKE_CURRENT_SOURCE_DIR}/bin/hedgewars" |
85653290114f
Exclude some binary files in cpackvars
Wuzzy <Wuzzy2@mail.ru>
parents:
15451
diff
changeset
|
110 |
"^${CMAKE_CURRENT_SOURCE_DIR}/bin/hwengine" |
85653290114f
Exclude some binary files in cpackvars
Wuzzy <Wuzzy2@mail.ru>
parents:
15451
diff
changeset
|
111 |
"^${CMAKE_CURRENT_SOURCE_DIR}/bin/hedgewars-server" |
85653290114f
Exclude some binary files in cpackvars
Wuzzy <Wuzzy2@mail.ru>
parents:
15451
diff
changeset
|
112 |
"^${CMAKE_CURRENT_SOURCE_DIR}/bin/link\\\\.res" |
85653290114f
Exclude some binary files in cpackvars
Wuzzy <Wuzzy2@mail.ru>
parents:
15451
diff
changeset
|
113 |
"^${CMAKE_CURRENT_SOURCE_DIR}/bin/ppas\\\\.sh" |
85653290114f
Exclude some binary files in cpackvars
Wuzzy <Wuzzy2@mail.ru>
parents:
15451
diff
changeset
|
114 |
"^${CMAKE_CURRENT_SOURCE_DIR}/bin/libavwrapper\\\\.*" |
85653290114f
Exclude some binary files in cpackvars
Wuzzy <Wuzzy2@mail.ru>
parents:
15451
diff
changeset
|
115 |
"^${CMAKE_CURRENT_SOURCE_DIR}/bin/libphyslayer\\\\.*" |
8698 | 116 |
) |
117 |
||
118 |
include(CPack) |