forked from surge-synthesizer/surge
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CMake for Version more extensively
CMake gets a version from GIT and pushes it various places in the code base appropriately. While at it, rename things to SurgeSynthTeam and so on. Closes surge-synthesizer#1669 Closes surge-synthesizer#1615 Addresses much of surge-synthesizer#1771
- Loading branch information
Showing
12 changed files
with
156 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
find_package(Git) | ||
execute_process( | ||
COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
OUTPUT_VARIABLE GIT_BRANCH | ||
OUTPUT_STRIP_TRAILING_WHITESPACE | ||
) | ||
|
||
execute_process( | ||
COMMAND ${GIT_EXECUTABLE} log -1 --format=%h | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
OUTPUT_VARIABLE GIT_COMMIT_HASH | ||
OUTPUT_STRIP_TRAILING_WHITESPACE | ||
) | ||
|
||
cmake_host_system_information(RESULT BUILD_FQDN QUERY FQDN ) | ||
|
||
message( STATUS "Setting up surge version" ) | ||
message( STATUS " git hash is ${GIT_COMMIT_HASH} and branch is ${GIT_BRANCH}" ) | ||
message( STATUS " buildhost is ${BUILD_FQDN}" ) | ||
|
||
|
||
if(${GIT_BRANCH} STREQUAL "master" ) | ||
set( lverpatch "nightly" ) | ||
set( lverrel "999" ) | ||
else() | ||
set( lverpatch ${GIT_BRANCH} ) | ||
set( lverrel "1000" ) | ||
endif() | ||
|
||
set( SURGE_FULL_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${lverpatch}.${GIT_COMMIT_HASH}" ) | ||
set( SURGE_MAJOR_VERSION "${PROJECT_VERSION_MAJOR}" ) | ||
set( SURGE_SUB_VERSION "${PROJECT_VERSION_MINOR}" ) | ||
set( SURGE_RELEASE_VERSION "${lverpatch}" ) | ||
set( SURGE_RELEASE_NUMBER "${lverrel}" ) | ||
set( SURGE_BUILD_HASH "${GIT_COMMIT_HASH}" ) | ||
|
||
message( STATUS "Using SURGE_VERSION=${SURGE_FULL_VERSION}" ) | ||
|
||
configure_file( ${CMAKE_SOURCE_DIR}/src/common/version.h.in | ||
${CMAKE_BINARY_DIR}/geninclude/version.h ) | ||
|
||
if( WIN32 ) | ||
message( STATUS "Configuring surgeversion.rc" ) | ||
configure_file( ${CMAKE_SOURCE_DIR}/src/windows/surgeversion.rc.in | ||
${CMAKE_BINARY_DIR}/geninclude/surgeversion.rc | ||
) | ||
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef __version__ | ||
#define __version__ | ||
|
||
#define SURGE_VST2_IDENTIFIER 'cjs3' | ||
|
||
#define MAJOR_VERSION_STR "@SURGE_MAJOR_VERSION@" | ||
#define MAJOR_VERSION_INT @SURGE_MAJOR_VERSION@ | ||
|
||
#define SUB_VERSION_STR "@SURGE_SUB_VERSION@" | ||
#define SUB_VERSION_INT @SURGE_SUB_VERSION@ | ||
|
||
#define RELEASE_NUMBER_STR "@SURGE_RELEASE_NUMBER@" | ||
#define RELEASE_STR "@SURGE_RELEASE_VERSION@" | ||
#define BUILD_NUMBER_STR "@SURGE_BUILD_HASH@" // Build number to be sure that each result could identified. | ||
|
||
// Version with build number (example "1.0.3.342") | ||
#define FULL_VERSION_STR "@SURGE_FULL_VERSION@" | ||
|
||
#define BUILD_HOST "@BUILD_FQDN@" | ||
|
||
#define stringProductName "Surge" | ||
#define stringWebsite "https://surge-synthesizer.github.io/" | ||
#define stringFileDescription "Surge Synth Team Surge" | ||
#define stringCompanyName "Surge Synth Team\0" | ||
#define stringLegalCopyright "© 2017-2020 Surge Synth Team" | ||
#define stringLegalTrademarks "VST is a trademark of Steinberg Media Technologies GmbH" | ||
|
||
#endif //__version__ |
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 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,3 +1,4 @@ | ||
#include "pluginterfaces/base/fplatform.h" | ||
|
||
#include "version.h" // for versioning | ||
|
||
|
@@ -34,7 +35,7 @@ bool DeinitModule() | |
// GetPluginFactory function! | ||
//------------------------------------------------------------------------ | ||
|
||
BEGIN_FACTORY_DEF("Vember Audio", "http://www.vemberaudio.se", "mailto:[email protected]") | ||
BEGIN_FACTORY_DEF("Surge Synth Team", "http://surge-synthesizer.github.io", "mailto:[email protected]") | ||
|
||
//---First Plug-in included in this factory------- | ||
// its kVstAudioEffectClass component | ||
|
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.