mirror of
https://github.com/transmission/transmission
synced 2025-01-05 22:44:23 +00:00
fd93316466
Store full revision hash in REVISION file. Write fixes 10 chars of revision hash to version.h. Use `#pragma once` in version.h. Support getting revision from TeamCity environment variable (similar to Jenkins).
15 lines
645 B
C
15 lines
645 B
C
#pragma once
|
|
|
|
#define PEERID_PREFIX "${TR_PEER_ID_PREFIX}"
|
|
#define USERAGENT_PREFIX "${TR_USER_AGENT_PREFIX}"
|
|
#define VCS_REVISION "${TR_VCS_REVISION}"
|
|
#define VCS_REVISION_NUM ${TR_VCS_REVISION}
|
|
#define SHORT_VERSION_STRING "${TR_USER_AGENT_PREFIX}"
|
|
#define LONG_VERSION_STRING "${TR_USER_AGENT_PREFIX} (${TR_VCS_REVISION})"
|
|
#define VERSION_STRING_INFOPLIST ${TR_USER_AGENT_PREFIX}
|
|
#define MAJOR_VERSION ${TR_VERSION_MAJOR}
|
|
#define MINOR_VERSION ${TR_VERSION_MINOR}
|
|
|
|
#cmakedefine TR_BETA_RELEASE 1
|
|
#cmakedefine TR_NIGHTLY_RELEASE 1
|
|
#cmakedefine TR_STABLE_RELEASE 1
|