Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scott Petrovic
kdenlive
Commits
959155fa
Commit
959155fa
authored
Jun 09, 2013
by
Alberto Villa
Committed by
Vincent PINON
Apr 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename VERSION #define to KDENLIVE_VERSION
Conflicts: src/mainwindow.cpp Conflicts: src/mainwindow.cpp
parent
ad810d1d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
36 deletions
+27
-36
CMakeLists.txt
CMakeLists.txt
+22
-24
config-kdenlive.h.cmake
config-kdenlive.h.cmake
+1
-1
src/kdenlivedoc.cpp
src/kdenlivedoc.cpp
+1
-1
src/main.cpp
src/main.cpp
+1
-1
src/mainwindow.cpp
src/mainwindow.cpp
+1
-8
src/wizard.cpp
src/wizard.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
959155fa
...
...
@@ -15,33 +15,31 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
option
(
RELEASE_BUILD
"Remove Git revision from program version (use for stable releases)"
OFF
)
# Get current version.
set
(
VERSION
"
\"
${
KDENLIVE_VERSION
}
\"
"
)
if
(
NOT RELEASE_BUILD
)
if
(
EXISTS
${
PROJECT_SOURCE_DIR
}
/.git
)
# Probably a Git workspace: determine the revision.
find_package
(
Git
)
if
(
GIT_FOUND
)
set
(
KDENLIVE_VERSION_STRING
"
${
KDENLIVE_VERSION
}
"
)
if
(
NOT RELEASE_BUILD AND EXISTS
${
CMAKE_SOURCE_DIR
}
/.git
)
# Probably a Git workspace; determine the revision.
find_package
(
Git QUIET
)
if
(
GIT_FOUND
)
exec_program
(
${
GIT_EXECUTABLE
}
${
CMAKE_SOURCE_DIR
}
ARGS
"describe --tags"
OUTPUT_VARIABLE KDENLIVE_GIT_REVISION
RETURN_VALUE TAG_RESULT
)
# git describe --tags failed; maybe the repository was checked with depth=1.
if
(
NOT
${
TAG_RESULT
}
EQUAL 0
)
exec_program
(
${
GIT_EXECUTABLE
}
${
CMAKE_
CURRENT_
SOURCE_DIR
}
ARGS
"describe --
tag
s"
${
CMAKE_SOURCE_DIR
}
ARGS
"describe --
alway
s"
OUTPUT_VARIABLE KDENLIVE_GIT_REVISION
RETURN_VALUE TAG_RESULT
)
# git describe --tags failed, for example it fails if repo was checked with depth=1
if
(
NOT
${
TAG_RESULT
}
EQUAL 0
)
exec_program
(
${
GIT_EXECUTABLE
}
${
CMAKE_CURRENT_SOURCE_DIR
}
ARGS
"describe --always"
OUTPUT_VARIABLE KDENLIVE_GIT_REVISION
)
endif
(
NOT
${
TAG_RESULT
}
EQUAL 0
)
message
(
"Current Kdenlive Git revision is
${
KDENLIVE_GIT_REVISION
}
"
)
set
(
VERSION
"
\"
${
KDENLIVE_VERSION
}
(rev.
${
KDENLIVE_GIT_REVISION
}
)
\"
"
)
else
(
GIT_FOUND
)
message
(
"Could not determine the Git revision"
)
endif
(
GIT_FOUND
)
endif
(
EXISTS
${
PROJECT_SOURCE_DIR
}
/.git
)
endif
(
NOT RELEASE_BUILD
)
endif
()
message
(
STATUS
"Kdenlive Git revision:
${
KDENLIVE_GIT_REVISION
}
"
)
set
(
KDENLIVE_VERSION_STRING
"
${
KDENLIVE_VERSION
}
(rev.
${
KDENLIVE_GIT_REVISION
}
)"
)
else
()
message
(
STATUS
"Kdenlive Git revision could not be determined"
)
endif
()
endif
()
include
(
CheckIncludeFiles
)
check_include_files
(
malloc.h HAVE_MALLOC_H
)
...
...
config-kdenlive.h.cmake
View file @
959155fa
#ifndef CONFIG_H
#define CONFIG_H
#
cmakedefine VERSION @VERSION@
#
define KDENLIVE_VERSION "@KDENLIVE_VERSION_STRING@"
#define MLT_PREFIX "@MLT_PREFIX@"
...
...
src/kdenlivedoc.cpp
View file @
959155fa
...
...
@@ -687,7 +687,7 @@ QDomDocument KdenliveDoc::xmlSceneList(const QString &scene, const QStringList &
QDomElement
markers
=
sceneList
.
createElement
(
"markers"
);
addedXml
.
setAttribute
(
"version"
,
DOCUMENTVERSION
);
addedXml
.
setAttribute
(
"kdenliveversion"
,
VERSION
);
addedXml
.
setAttribute
(
"kdenliveversion"
,
KDENLIVE_
VERSION
);
addedXml
.
setAttribute
(
"profile"
,
profilePath
());
addedXml
.
setAttribute
(
"projectfolder"
,
m_projectFolder
.
path
());
...
...
src/main.cpp
View file @
959155fa
...
...
@@ -31,7 +31,7 @@
int
main
(
int
argc
,
char
*
argv
[])
{
KAboutData
aboutData
(
QByteArray
(
"kdenlive"
),
QByteArray
(
"kdenlive"
),
ki18n
(
"Kdenlive"
),
VERSION
,
ki18n
(
"Kdenlive"
),
KDENLIVE_
VERSION
,
ki18n
(
"An open source video editor."
),
KAboutData
::
License_GPL
,
ki18n
(
"Copyright © 2007–2014 Kdenlive authors"
));
...
...
src/mainwindow.cpp
View file @
959155fa
...
...
@@ -118,14 +118,7 @@
#include <stdlib.h>
#include <locale.h>
// Uncomment for deeper debugging
//#define DEBUG_MAINW
#ifdef DEBUG_MAINW
#include <QDebug>
#endif
static
const
char
version
[]
=
VERSION
;
static
const
char
version
[]
=
KDENLIVE_VERSION
;
namespace
Mlt
{
...
...
src/wizard.cpp
View file @
959155fa
...
...
@@ -51,7 +51,7 @@ const int mltVersionMajor = 0;
const
int
mltVersionMinor
=
8
;
const
int
mltVersionRevision
=
8
;
static
const
char
kdenlive_version
[]
=
VERSION
;
static
const
char
kdenlive_version
[]
=
KDENLIVE_
VERSION
;
Wizard
::
Wizard
(
bool
upgrade
,
QWidget
*
parent
)
:
QWizard
(
parent
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment