cmake_modules/cpackvars.cmake
author Wuzzy <Wuzzy2@mail.ru>
Fri, 07 Jun 2019 15:08:06 +0200
changeset 15150 a41b8b154f74
parent 14375 20178fa3a74a
child 15474 6e09555b25b4
permissions -rw-r--r--
Remove kamikaze and piano strike from CTF and Control
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8699
89c339dcc2a4 readd revision info to the cpack generated package
koda
parents: 8698
diff changeset
     1
89c339dcc2a4 readd revision info to the cpack generated package
koda
parents: 8698
diff changeset
     2
# revision information in cpack-generated names
89c339dcc2a4 readd revision info to the cpack generated package
koda
parents: 8698
diff changeset
     3
if(CMAKE_BUILD_TYPE MATCHES DEBUG)
89c339dcc2a4 readd revision info to the cpack generated package
koda
parents: 8698
diff changeset
     4
    set(full_suffix "${HEDGEWARS_VERSION}-r${HEDGEWARS_REVISION}")
89c339dcc2a4 readd revision info to the cpack generated package
koda
parents: 8698
diff changeset
     5
else()
89c339dcc2a4 readd revision info to the cpack generated package
koda
parents: 8698
diff changeset
     6
    set(full_suffix "${HEDGEWARS_VERSION}")
89c339dcc2a4 readd revision info to the cpack generated package
koda
parents: 8698
diff changeset
     7
endif()
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     8
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
     9
# CPack variables
8700
7e84ea0d9cef adjust casing
koda
parents: 8699
diff changeset
    10
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a free turn-based strategy game")
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    11
set(CPACK_PACKAGE_VENDOR "Hedgewars Project")
8700
7e84ea0d9cef adjust casing
koda
parents: 8699
diff changeset
    12
set(CPACK_PACKAGE_FILE_NAME "Hedgewars-${full_suffix}")
8699
89c339dcc2a4 readd revision info to the cpack generated package
koda
parents: 8698
diff changeset
    13
set(CPACK_SOURCE_PACKAGE_FILE_NAME "hedgewars-src-${full_suffix}")
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    14
set(CPACK_SOURCE_GENERATOR "TBZ2")
8700
7e84ea0d9cef adjust casing
koda
parents: 8699
diff changeset
    15
set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "Hedgewars")
8699
89c339dcc2a4 readd revision info to the cpack generated package
koda
parents: 8698
diff changeset
    16
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
89c339dcc2a4 readd revision info to the cpack generated package
koda
parents: 8698
diff changeset
    17
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${full_suffix}")
8701
b99c49f78f56 stripping
koda
parents: 8700
diff changeset
    18
set(CPACK_STRIP_FILES true)
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    19
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    20
if(WIN32 AND NOT UNIX)
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    21
    set(CPACK_NSIS_DISPLAY_NAME "Hedgewars")
13512
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
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    24
    set(CPACK_NSIS_CONTACT "unC0Rr@gmail.com")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    25
    set(CPACK_NSIS_MODIFY_PATH OFF)
8791
6e3308fc2a1d Fix shortcut which is created by NSIS
unc0rr
parents: 8723
diff changeset
    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
6e3308fc2a1d Fix shortcut which is created by NSIS
unc0rr
parents: 8723
diff changeset
    28
    set(CPACK_NSIS_CREATE_ICONS "CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Hedgewars.lnk' '$INSTDIR\\\\hedgewars.exe'")
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    29
    set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "hedgewars")
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    30
endif(WIN32 AND NOT UNIX)
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    31
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    32
set(CPACK_SOURCE_IGNORE_FILES
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    33
    #temporary files
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    34
    "~"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    35
    ".swp"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    36
    #version control
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    37
    "\\\\.hg"
10565
1368ba6d538c Excluding .git directory from the source tarball creation
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents: 10348
diff changeset
    38
    "\\\\.git"
9114
e33d5026e14a more make package_source, moc and sh files
koda
parents: 9092
diff changeset
    39
    "\\\\.orig$"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    40
    #output binary/library
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    41
    "\\\\.exe$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    42
    "\\\\.a$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    43
    "\\\\.so$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    44
    "\\\\.dylib$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    45
    "\\\\.dll$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    46
    "\\\\.ppu$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    47
    "\\\\.o$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    48
    "\\\\.cxx$"
9092
164690ff1408 don't pack .hi files, frontlib and other stuff
koda
parents: 9091
diff changeset
    49
    "\\\\.hi$"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    50
    #graphics
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    51
    "\\\\.xcf$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    52
    "\\\\.svg$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    53
    "\\\\.svgz$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    54
    "\\\\.psd$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    55
    "\\\\.sifz$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    56
    #misc
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    57
    "\\\\.core$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    58
    "\\\\.layout$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    59
    "\\\\.db$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    60
    "\\\\.dof$"
9114
e33d5026e14a more make package_source, moc and sh files
koda
parents: 9092
diff changeset
    61
    "\\\\.or$"
9187
a15ea245adf9 moar cpack ignore
koda
parents: 9121
diff changeset
    62
    "\\\\.stackdump$"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    63
    #archives
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    64
    "\\\\.zip$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    65
    "\\\\.gz$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    66
    "\\\\.bz2$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    67
    "\\\\.tmp$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    68
    #cmake-configured files
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    69
    "hwconsts\\\\.cpp$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    70
    "config\\\\.inc$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    71
    "hwengine\\\\.desktop$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    72
    "Info\\\\.plist$"
9114
e33d5026e14a more make package_source, moc and sh files
koda
parents: 9092
diff changeset
    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
e33d5026e14a more make package_source, moc and sh files
koda
parents: 9092
diff changeset
    75
    "\\\\.qrc.depends$"
9121
41424fca0ef3 sigh (qm files should not be in package_source either)
koda
parents: 9114
diff changeset
    76
    "\\\\.qm$"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    77
    #other cmake generated files
9114
e33d5026e14a more make package_source, moc and sh files
koda
parents: 9092
diff changeset
    78
    "Makefile$"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    79
    "Doxyfile"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    80
    "CMakeFiles"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    81
    "[dD]ebug$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    82
    "[rR]elease$"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    83
    "CPack"
12835
71cdc02ccca6 - More files to ignore
unc0rr
parents: 10565
diff changeset
    84
    "CTestTestfile.cmake"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    85
    "cmake_install\\\\.cmake$"
9092
164690ff1408 don't pack .hi files, frontlib and other stuff
koda
parents: 9091
diff changeset
    86
    "cmake_uninstall\\\\.cmake$"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    87
    "CMakeCache\\\\.txt$"
9092
164690ff1408 don't pack .hi files, frontlib and other stuff
koda
parents: 9091
diff changeset
    88
    "build_windows_.*\\\\.bat$"
9953
fc33ce04502c Ban arch.c from source tarball
unc0rr
parents: 9882
diff changeset
    89
    "arch\\\\.c$"
10348
8a90df36bccb cpack: do not exclude liblua from release tarball
koda
parents: 9953
diff changeset
    90
#    "^${CMAKE_CURRENT_SOURCE_DIR}/misc/liblua"
9092
164690ff1408 don't pack .hi files, frontlib and other stuff
koda
parents: 9091
diff changeset
    91
#    "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/frontlib"
164690ff1408 don't pack .hi files, frontlib and other stuff
koda
parents: 9091
diff changeset
    92
#    "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/cmdlineClient"
9114
e33d5026e14a more make package_source, moc and sh files
koda
parents: 9092
diff changeset
    93
    "^${CMAKE_CURRENT_SOURCE_DIR}/misc/winutils/bin"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    94
    "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/promotional_art"
9882
8efe8d4deba9 Not a thing which is needed in release tarball
unc0rr
parents: 9373
diff changeset
    95
    "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/AudioMono"
8efe8d4deba9 Not a thing which is needed in release tarball
unc0rr
parents: 9373
diff changeset
    96
    "^${CMAKE_CURRENT_SOURCE_DIR}/project_files/HedgewarsMobile"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    97
    "^${CMAKE_CURRENT_SOURCE_DIR}/tools/templates"
9092
164690ff1408 don't pack .hi files, frontlib and other stuff
koda
parents: 9091
diff changeset
    98
    "^${CMAKE_CURRENT_SOURCE_DIR}/tools/drawMapTest"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
    99
    "^${CMAKE_CURRENT_SOURCE_DIR}/doc"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
   100
    "^${CMAKE_CURRENT_SOURCE_DIR}/tmp"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
   101
    "^${CMAKE_CURRENT_SOURCE_DIR}/utils"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
   102
    "^${CMAKE_CURRENT_SOURCE_DIR}/share/hedgewars/Data/Maps/test"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
   103
    "^${CMAKE_CURRENT_SOURCE_DIR}/install_manifest.txt"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
   104
    "^${CMAKE_CURRENT_SOURCE_DIR}/CMakeCache.txt"
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
   105
    "^${CMAKE_CURRENT_SOURCE_DIR}/hedgewars\\\\."
14375
20178fa3a74a - Ban more stuff from src tarball
unc0rr
parents: 13512
diff changeset
   106
    "^${CMAKE_CURRENT_SOURCE_DIR}/gameServer2"
20178fa3a74a - Ban more stuff from src tarball
unc0rr
parents: 13512
diff changeset
   107
    "^${CMAKE_CURRENT_SOURCE_DIR}/rust"
20178fa3a74a - Ban more stuff from src tarball
unc0rr
parents: 13512
diff changeset
   108
    "^${CMAKE_CURRENT_SOURCE_DIR}/qmlfrontend"
8698
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
   109
)
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
   110
6714499ecdeb move cpack stuff in its own cmake file
koda
parents:
diff changeset
   111
include(CPack)