mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 01:10:14 +01:00
Define Audacity version constants in CMake not Audacity.h
This commit is contained in:
committed by
Leland Lucius
parent
d9b868334b
commit
d51f505cd9
@@ -23,60 +23,4 @@
|
||||
|
||||
#ifndef __AUDACITY_H__
|
||||
#define __AUDACITY_H__
|
||||
|
||||
// We only do alpha builds, beta builds, and release versions.
|
||||
// Most of the time we're in development, so AUDACITY_BUILD_LEVEL should be
|
||||
// defined to 0.
|
||||
// Its value may be more than 0 for pre-release "Beta" builds that differ only
|
||||
// in the welcome screen, and hiding of some development menu commands, but
|
||||
// still link to the alpha manual online.
|
||||
#define AUDACITY_BUILD_LEVEL 0
|
||||
|
||||
// used #ifdef not #if for IS_ALPHA, IS_BETA, IS_RELEASE, USE_ALPHA_MANUAL
|
||||
#undef IS_ALPHA
|
||||
#undef IS_BETA
|
||||
#undef IS_RELEASE
|
||||
#undef USE_ALPHA_MANUAL
|
||||
|
||||
#if AUDACITY_BUILD_LEVEL == 0
|
||||
#define IS_ALPHA
|
||||
#define USE_ALPHA_MANUAL
|
||||
#elif AUDACITY_BUILD_LEVEL == 1
|
||||
#define IS_BETA
|
||||
#define USE_ALPHA_MANUAL
|
||||
#else
|
||||
#define IS_RELEASE
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
// Increment as appropriate every time we release a NEW version.
|
||||
#define AUDACITY_VERSION 3
|
||||
#define AUDACITY_RELEASE 0
|
||||
#define AUDACITY_REVISION 3
|
||||
#define AUDACITY_MODLEVEL 0
|
||||
|
||||
#if defined(IS_BETA)
|
||||
#define AUDACITY_SUFFIX wxT("-beta-") __TDATE__
|
||||
#elif defined(IS_ALPHA)
|
||||
#define AUDACITY_SUFFIX wxT("-alpha-") __TDATE__
|
||||
#else
|
||||
#define AUDACITY_SUFFIX wxT("") // for a stable release
|
||||
//#define AUDACITY_SUFFIX wxT("x ") __TDATE__
|
||||
#endif
|
||||
|
||||
#define AUDACITY_MAKESTR( x ) #x
|
||||
#define AUDACITY_QUOTE( x ) AUDACITY_MAKESTR( x )
|
||||
|
||||
// Version string for visual display
|
||||
#define AUDACITY_VERSION_STRING wxT( AUDACITY_QUOTE( AUDACITY_VERSION ) ) wxT(".") \
|
||||
wxT( AUDACITY_QUOTE( AUDACITY_RELEASE ) ) wxT(".") \
|
||||
wxT( AUDACITY_QUOTE( AUDACITY_REVISION ) ) \
|
||||
AUDACITY_SUFFIX
|
||||
|
||||
#define AUDACITY_FILE_VERSION AUDACITY_QUOTE( AUDACITY_VERSION ) "," \
|
||||
AUDACITY_QUOTE( AUDACITY_RELEASE ) "," \
|
||||
AUDACITY_QUOTE( AUDACITY_REVISION ) "," \
|
||||
AUDACITY_QUOTE( AUDACITY_MODLEVEL )
|
||||
|
||||
#endif // __AUDACITY_H__
|
||||
|
||||
Reference in New Issue
Block a user