You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Add QT_VERSION_STR define to OpenShotVersion.h
The CMake process will pick up Qt's Qt5Core_VERSION_STRING and stick it in a cache variable (with forced updating each run), and a new `#define` in the header exports it to the library and to the Python bindings so that it can be queried at runtime.
This commit is contained in:
@@ -42,6 +42,9 @@
|
||||
|
||||
#define OPENSHOT_VERSION_SO @PROJECT_SO_VERSION@ /// Shared object version number. This increments any time the API and ABI changes (so old apps will no longer link)
|
||||
|
||||
// Useful dependency versioning
|
||||
#define QT_VERSION_STR "@QT_VERSION_STR@"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
namespace openshot
|
||||
@@ -67,4 +70,4 @@ namespace openshot
|
||||
openshot::OpenShotVersion GetVersion();
|
||||
}
|
||||
|
||||
#endif // OPENSHOT_VERSION_H
|
||||
#endif // OPENSHOT_VERSION_H
|
||||
|
||||
Reference in New Issue
Block a user