mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Add bottom status bar with git build info and compile time
This commit is contained in:
parent
cd2caf7821
commit
a2485907ef
6 changed files with 118 additions and 1 deletions
|
|
@ -64,8 +64,22 @@ juce_add_plugin(ChromaFlock
|
|||
target_sources(ChromaFlock PRIVATE
|
||||
Source/PluginProcessor.cpp
|
||||
Source/PluginEditor.cpp
|
||||
Source/BuildInfo.cpp
|
||||
)
|
||||
|
||||
# Generate git build info at BUILD time so it reflects the current commit/tree.
|
||||
# Runs on every build; the rewritten header forces BuildInfo.cpp to recompile,
|
||||
# so getBuildInfoString()'s __DATE__/__TIME__ reflect the actual compile time.
|
||||
add_custom_target(ChromaFlockBuildInfo ALL
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-DROOT_DIR="${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
-DOUT_DIR="${CMAKE_CURRENT_BINARY_DIR}/Generated"
|
||||
-P "${CMAKE_CURRENT_SOURCE_DIR}/cmake/GenerateBuildInfo.cmake"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
COMMENT "Generating BuildInfo.h (git build info)"
|
||||
)
|
||||
add_dependencies(ChromaFlock ChromaFlockBuildInfo)
|
||||
|
||||
target_compile_definitions(ChromaFlock PUBLIC
|
||||
JUCE_VST3_CAN_REPLACE_VST2=0
|
||||
JUCE_WEB_BROWSER=0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue