Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2020-09-02 10:22:16 +0300
committerRobert Adam <dev@robert-adam.de>2020-09-02 19:30:33 +0300
commit40090d297f03977906557d4dfd2fd29067cf680d (patch)
tree51c2686d81d88e7ee46a8d728c01c4f3b4fab3d6 /g15helper
parent8bdf32d4808135e8e8d6cba004e36b4a6ead0f42 (diff)
MAINT: Make use of cmake configure for version
Instead of having to change the version number and the build year in all those files manually, we let cmake do the work by replacing the respective values in templates.
Diffstat (limited to 'g15helper')
-rw-r--r--g15helper/CMakeLists.txt10
-rw-r--r--g15helper/g15helper.plist.in (renamed from g15helper/g15helper.plist)4
-rw-r--r--g15helper/g15helper.rc.in (renamed from g15helper/g15helper.rc)2
3 files changed, 9 insertions, 7 deletions
diff --git a/g15helper/CMakeLists.txt b/g15helper/CMakeLists.txt
index bb7ce795f..78dbabec8 100644
--- a/g15helper/CMakeLists.txt
+++ b/g15helper/CMakeLists.txt
@@ -5,16 +5,18 @@
option(g15-emulator "Build the g15helper executable in emulator mode. This will cause an emulated G15 window to appear on screen. Allows the use of Mumble's G15 support without owning the physical hardware." OFF)
-set(G15HELPER_RC "g15helper.rc")
+set(G15HELPER_RC "${CMAKE_CURRENT_BINARY_DIR}/g15helper.rc")
set(G15HELPER_ICON "${CMAKE_SOURCE_DIR}/icons/g15helper.ico")
+set(G15HELPER_PLIST "${CMAKE_BINARY_DIR}/g15helper.plist")
-get_target_property(MUMBLE_SOURCE_DIR mumble SOURCE_DIR)
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/g15helper.plist.in" "${G15HELPER_PLIST}")
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/g15helper.rc.in" "${G15HELPER_RC}")
-configure_file(${G15HELPER_RC} ${CMAKE_CURRENT_BINARY_DIR})
+get_target_property(MUMBLE_SOURCE_DIR mumble SOURCE_DIR)
add_executable(g15-helper WIN32
"${MUMBLE_SOURCE_DIR}/mumble.appcompat.manifest"
- "${CMAKE_CURRENT_BINARY_DIR}/${G15HELPER_RC}"
+ "${G15HELPER_RC}"
)
set_target_properties(g15-helper
diff --git a/g15helper/g15helper.plist b/g15helper/g15helper.plist.in
index c788135b2..a1a2280fb 100644
--- a/g15helper/g15helper.plist
+++ b/g15helper/g15helper.plist.in
@@ -13,8 +13,8 @@
<key>CFBundleSignature</key>
<string>G15H</string>
<key>CFBundleVersion</key>
- <string>1.4.0</string>
+ <string>@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@</string>
<key>NSHumanReadableCopyright</key>
- <string>Copyright (c) 2005-2020 The Mumble Developers</string>
+ <string>Copyright (c) 2005-@MUMBLE_BUILD_YEAR@ The Mumble Developers</string>
</dict>
</plist>
diff --git a/g15helper/g15helper.rc b/g15helper/g15helper.rc.in
index cd4ae46c8..731657b90 100644
--- a/g15helper/g15helper.rc
+++ b/g15helper/g15helper.rc.in
@@ -36,7 +36,7 @@ VS_VERSION_INFO VERSIONINFO
VALUE "FileDescription", "Mumble G15 LCD Helper"
VALUE "FileVersion", "@PROJECT_VERSION@"
VALUE "ProductVersion", "@PROJECT_VERSION@"
- VALUE "LegalCopyright", "Copyright (c) 2005-2020 The Mumble Developers"
+ VALUE "LegalCopyright", "Copyright (c) 2005-@MUMBLE_BUILD_YEAR@ The Mumble Developers"
VALUE "OriginalFilename", "mumble-g15-helper.exe"
VALUE "ProductName", "Mumble G15 LCD Helper"
#ifdef SNAPSHOT_BUILD