1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
/*
* SuperCollider real time audio synthesis system
* Copyright (c) 2002 James McCartney. All rights reserved.
* Copyright (c) 2013 Tim Blechmann
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <string>
#include <sstream>
static const int SC_VersionMajor = @SC_VERSION_MAJOR@;
static const int SC_VersionMinor = @SC_VERSION_MINOR@;
static const int SC_VersionPatch = @SC_VERSION_PATCH@;
static const char SC_VersionTweak[] = "@SC_VERSION_TWEAK@";
static const char SC_RefType[] = "@GIT_REF_TYPE@";
static const char SC_BranchOrTag[] = "@GIT_BRANCH_OR_TAG@";
static const char SC_CommitHash[] = "@GIT_COMMIT_HASH@";
// For backward compatibility in scsynth and supernova only.
static const char SC_VersionPostfix[] = ".@SC_VERSION_PATCH@@SC_VERSION_TWEAK@";
static inline std::string SC_VersionString()
{
std::stringstream out;
out << SC_VersionMajor << "." << SC_VersionMinor << "." << SC_VersionPatch << SC_VersionTweak;
return out.str();
}
static inline std::string SC_BuildString()
{
std::stringstream out;
out << "Built from " << SC_RefType << " '" << SC_BranchOrTag << "' [" << SC_CommitHash << "]";
return out.str();
}
|