-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from hatelamers/13-implement-full-dark-mode
#13 added support for dark mode
- Loading branch information
Showing
21 changed files
with
1,114 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
if(NOT ${BUILD_TYPE} MATCHES Debug) | ||
include("${SOURCE_DIR}/Product.cmake") | ||
file(READ "${SOURCE_DIR}/buildnumber.txt" BUILD_NUMBER) | ||
file(READ "${TARGET_SOURCE_DIR}/buildnumber.txt" BUILD_NUMBER) | ||
if(NOT ${BUILD_NUMBER}) | ||
set(BUILD_NUMBER 1) | ||
endif() | ||
|
||
math(EXPR BUILD_NUMBER "${BUILD_NUMBER} + 1") | ||
if(${CMAKE_VERSION} VERSION_LESS 3.18) | ||
file(WRITE "${SOURCE_DIR}/buildnumber.txt" "${BUILD_NUMBER}") | ||
file(WRITE "${TARGET_SOURCE_DIR}/buildnumber.txt" "${BUILD_NUMBER}") | ||
else() | ||
file(CONFIGURE OUTPUT "${SOURCE_DIR}/buildnumber.txt" CONTENT "${BUILD_NUMBER}") | ||
file(CONFIGURE OUTPUT "${TARGET_SOURCE_DIR}/buildnumber.txt" CONTENT "${BUILD_NUMBER}") | ||
endif() | ||
file(REMOVE "${MAIN_TARGET_SOURCE_DIR}/productmeta.h") | ||
configure_file("${MAIN_TARGET_SOURCE_DIR}/productmeta.h.in" "${MAIN_TARGET_SOURCE_DIR}/productmeta.h") | ||
file(TOUCH_NOCREATE "${MAIN_TARGET_SOURCE_DIR}/${MAIN_TARGET_NAME}.rc") | ||
file(REMOVE "${TARGET_SOURCE_DIR}/productmeta.h") | ||
configure_file("${TARGET_SOURCE_DIR}/productmeta.h.in" "${TARGET_SOURCE_DIR}/productmeta.h") | ||
file(TOUCH_NOCREATE "${TARGET_SOURCE_DIR}/${TARGET_NAME}.rc") | ||
|
||
message(STATUS "Build number set to ${BUILD_NUMBER} in ${SOURCE_DIR}/buildnumber.txt") | ||
message(STATUS "Build number set to ${BUILD_NUMBER} in ${TARGET_SOURCE_DIR}/buildnumber.txt") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.