chore(radio): Automate copyright year based on build date (#4579)
This commit is contained in:
@@ -6,6 +6,7 @@ set(VERSION_MAJOR "2")
|
|||||||
set(VERSION_MINOR "10")
|
set(VERSION_MINOR "10")
|
||||||
set(VERSION_REVISION "0")
|
set(VERSION_REVISION "0")
|
||||||
set(CODENAME "dev")
|
set(CODENAME "dev")
|
||||||
|
string(TIMESTAMP BUILD_YEAR "%Y")
|
||||||
|
|
||||||
if(MINGW OR WIN32)
|
if(MINGW OR WIN32)
|
||||||
set(CMAKE_OBJECT_PATH_MAX 200)
|
set(CMAKE_OBJECT_PATH_MAX 200)
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ include_directories(
|
|||||||
)
|
)
|
||||||
|
|
||||||
############# Do macro replacements on input files #############
|
############# Do macro replacements on input files #############
|
||||||
string(TIMESTAMP BUILD_YEAR "%Y")
|
|
||||||
|
|
||||||
configure_file(${COMPANION_SRC_DIRECTORY}/version.h.in ${CMAKE_BINARY_DIR}/version.h @ONLY)
|
configure_file(${COMPANION_SRC_DIRECTORY}/version.h.in ${CMAKE_BINARY_DIR}/version.h @ONLY)
|
||||||
configure_file(${COMPANION_SRC_DIRECTORY}/companion.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/companion.desktop @ONLY)
|
configure_file(${COMPANION_SRC_DIRECTORY}/companion.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/companion.desktop @ONLY)
|
||||||
@@ -420,7 +419,6 @@ elseif(WIN32)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
string(TIMESTAMP BUILD_YEAR "%Y")
|
|
||||||
set(LICENSE_FILE "${CMAKE_CURRENT_BINARY_DIR}/license.txt")
|
set(LICENSE_FILE "${CMAKE_CURRENT_BINARY_DIR}/license.txt")
|
||||||
configure_file("${COMPANION_SRC_DIRECTORY}/../targets/windows/license.txt.in" ${LICENSE_FILE} @ONLY)
|
configure_file("${COMPANION_SRC_DIRECTORY}/../targets/windows/license.txt.in" ${LICENSE_FILE} @ONLY)
|
||||||
install(FILES "${LICENSE_FILE}" DESTINATION ${INSTALL_DESTINATION})
|
install(FILES "${LICENSE_FILE}" DESTINATION ${INSTALL_DESTINATION})
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const char ABOUT_VERSION_1[] = "EdgeTX " "(" VERSION_TAG ")" "\036\"" CODENAME "
|
|||||||
#else
|
#else
|
||||||
const char ABOUT_VERSION_1[] = "EdgeTX " "(" VERSION "-" VERSION_SUFFIX ")";
|
const char ABOUT_VERSION_1[] = "EdgeTX " "(" VERSION "-" VERSION_SUFFIX ")";
|
||||||
#endif
|
#endif
|
||||||
const char ABOUT_VERSION_2[] = "Copyright (C) 2024 EdgeTX";
|
const char ABOUT_VERSION_2[] = "Copyright (C) " BUILD_YEAR " EdgeTX";
|
||||||
const char ABOUT_VERSION_3[] = "https://edgetx.org";
|
const char ABOUT_VERSION_3[] = "https://edgetx.org";
|
||||||
|
|
||||||
void menuAboutView(event_t event)
|
void menuAboutView(event_t event)
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const char ABOUT_VERSION_1[] = "EdgeTX " "\"" CODENAME "\"" " (" VERSION_TAG ")"
|
|||||||
#else
|
#else
|
||||||
const char ABOUT_VERSION_1[] = "EdgeTX " "(" VERSION "-" VERSION_SUFFIX ")";
|
const char ABOUT_VERSION_1[] = "EdgeTX " "(" VERSION "-" VERSION_SUFFIX ")";
|
||||||
#endif
|
#endif
|
||||||
const char ABOUT_VERSION_2[] = "Copyright (C) 2024 EdgeTX";
|
const char ABOUT_VERSION_2[] = "Copyright (C) " BUILD_YEAR " EdgeTX";
|
||||||
const char ABOUT_VERSION_3[] = "https://edgetx.org";
|
const char ABOUT_VERSION_3[] = "https://edgetx.org";
|
||||||
|
|
||||||
void menuAboutView(event_t event)
|
void menuAboutView(event_t event)
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const std::string about_str = "EdgeTX" " (" VERSION_TAG ")\n" "\"" CODENAME "\""
|
|||||||
#else
|
#else
|
||||||
const std::string about_str = "EdgeTX" " (" VERSION "-" VERSION_SUFFIX ")";
|
const std::string about_str = "EdgeTX" " (" VERSION "-" VERSION_SUFFIX ")";
|
||||||
#endif
|
#endif
|
||||||
const std::string copyright_str = "Copyright (C) 2024 EdgeTX";
|
const std::string copyright_str = "Copyright (C) " BUILD_YEAR " EdgeTX";
|
||||||
const std::string edgetx_url = "https://edgetx.org";
|
const std::string edgetx_url = "https://edgetx.org";
|
||||||
|
|
||||||
AboutUs::AboutUs() :
|
AboutUs::AboutUs() :
|
||||||
|
|||||||
@@ -9,3 +9,4 @@
|
|||||||
#define VERSION_MINOR @VERSION_MINOR@
|
#define VERSION_MINOR @VERSION_MINOR@
|
||||||
#define VERSION_REVISION @VERSION_REVISION@
|
#define VERSION_REVISION @VERSION_REVISION@
|
||||||
#define GIT_STR "@GIT_STR@"
|
#define GIT_STR "@GIT_STR@"
|
||||||
|
#define BUILD_YEAR "@BUILD_YEAR@"
|
||||||
|
|||||||
Reference in New Issue
Block a user