OpenShot Library | libopenshot 0.2.7
OpenShotVersion.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Header file that includes the version number of libopenshot
4 * @author Jonathan Thomas <jonathan@openshot.org>
5 *
6 * @ref License
7 */
8
9/* LICENSE
10 *
11 * Copyright (c) 2008-2019 OpenShot Studios, LLC
12 * <http://www.openshotstudios.com/>. This file is part of
13 * OpenShot Library (libopenshot), an open-source project dedicated to
14 * delivering high quality video editing and animation solutions to the
15 * world. For more information visit <http://www.openshot.org/>.
16 *
17 * OpenShot Library (libopenshot) is free software: you can redistribute it
18 * and/or modify it under the terms of the GNU Lesser General Public License
19 * as published by the Free Software Foundation, either version 3 of the
20 * License, or (at your option) any later version.
21 *
22 * OpenShot Library (libopenshot) is distributed in the hope that it will be
23 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU Lesser General Public License for more details.
26 *
27 * You should have received a copy of the GNU Lesser General Public License
28 * along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
29 */
30
31#ifndef OPENSHOT_VERSION_H
32#define OPENSHOT_VERSION_H
33
34#define OPENSHOT_VERSION_ALL "0.2.7" /// A string of the entire version "Major.Minor.Build"
35#define OPENSHOT_VERSION_FULL "0.2.7" /// A string of the full version identifier, including suffixes (e.g. "0.0.0-dev0")
36
37#define OPENSHOT_VERSION_MAJOR_MINOR "0.2" /// A string of the "Major.Minor" version
38
39#define OPENSHOT_VERSION_MAJOR 0 /// Major version number is incremented when huge features are added or improved.
40#define OPENSHOT_VERSION_MINOR 2 /// Minor version is incremented when smaller (but still very important) improvements are added.
41#define OPENSHOT_VERSION_BUILD 7 /// Build number is incremented when minor bug fixes and less important improvements are added.
42
43#define OPENSHOT_VERSION_SO 21 /// Shared object version number. This increments any time the API and ABI changes (so old apps will no longer link)
44
45// Useful dependency versioning / feature availability
46#define QT_VERSION_STR "5.15.4"
47#define AVCODEC_VERSION_STR "59.37.100"
48#define AVFORMAT_VERSION_STR "59.27.100"
49#define AVUTIL_VERSION_STR "57.28.100"
50/* #undef OPENCV_VERSION_STR */
51#define HAVE_IMAGEMAGICK 1
52#define HAVE_RESVG 0
53#define HAVE_OPENCV 0
54#define FFMPEG_USE_SWRESAMPLE 1
55#define APPIMAGE_BUILD 0
56
57#include <sstream>
58
59namespace openshot
60{
61 /// This struct holds version number information. Use the GetVersion() method to access the current version of libopenshot.
63 static const int Major = OPENSHOT_VERSION_MAJOR; /// Major version number
64 static const int Minor = OPENSHOT_VERSION_MINOR; /// Minor version number
65 static const int Build = OPENSHOT_VERSION_BUILD; /// Build number
66 static const int So = OPENSHOT_VERSION_SO; /// Shared Object Number (incremented when API or ABI changes)
67
68 /// Get a string version of the version (i.e. "Major.Minor.Build")
69 inline static const std::string ToString() {
70 std::stringstream version_string;
71 version_string << Major << "." << Minor << "." << Build;
72 return version_string.str();
73 }
74 };
75
76 static const openshot::OpenShotVersion Version;
77
78 /// Get the current version number of libopenshot (major, minor, and build number)
80}
81
82#endif // OPENSHOT_VERSION_H
#define OPENSHOT_VERSION_SO
#define OPENSHOT_VERSION_BUILD
#define OPENSHOT_VERSION_MINOR
#define OPENSHOT_VERSION_MAJOR
This namespace is the default namespace for all code in the openshot library.
Definition: Compressor.h:47
OpenShotVersion GetVersion()
Get the current version number of libopenshot (major, minor, and build number)
This struct holds version number information. Use the GetVersion() method to access the current versi...
static const int Minor
Major version number.
static const int So
Build number.
static const std::string ToString()
Shared Object Number (incremented when API or ABI changes)
static const int Build
Minor version number.