Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Bluedevil
Commits
4831cdc6
Commit
4831cdc6
authored
Dec 06, 2020
by
Nicolas Fella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port to ecm_setup_version
parent
b4ba0dae
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
CMakeLists.txt
CMakeLists.txt
+6
-2
src/kded/bluedevildaemon.cpp
src/kded/bluedevildaemon.cpp
+1
-1
src/sendfile/main.cpp
src/sendfile/main.cpp
+1
-1
src/wizard/main.cpp
src/wizard/main.cpp
+1
-1
version.h.cmake
version.h.cmake
+0
-4
No files found.
CMakeLists.txt
View file @
4831cdc6
...
...
@@ -10,8 +10,6 @@ set(KF5_MIN_VERSION "5.74")
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
configure_file
(
version.h.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/version.h
)
find_package
(
ECM
${
KF5_MIN_VERSION
}
REQUIRED NO_MODULE
)
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
)
...
...
@@ -43,11 +41,17 @@ include(KDECompilerSettings NO_POLICY_SCOPE)
include
(
ECMOptionalAddSubdirectory
)
include
(
FeatureSummary
)
include
(
KDEClangFormat
)
include
(
ECMSetupVersion
)
if
(
EXISTS
"
${
CMAKE_SOURCE_DIR
}
/.git"
)
add_definitions
(
-DQT_DISABLE_DEPRECATED_BEFORE=0x060000
)
add_definitions
(
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054200
)
endif
()
ecm_setup_version
(
${
PROJECT_VERSION
}
VARIABLE_PREFIX BLUEDEVIL
VERSION_HEADER
${
CMAKE_BINARY_DIR
}
/version.h
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
add_subdirectory
(
src
)
...
...
src/kded/bluedevildaemon.cpp
View file @
4831cdc6
...
...
@@ -70,7 +70,7 @@ BlueDevilDaemon::BlueDevilDaemon(QObject *parent, const QList<QVariant>&)
KAboutData
aboutData
(
QStringLiteral
(
"bluedevildaemon"
),
i18n
(
"Bluetooth Daemon"
),
BLUEDEVIL_VERSION
,
QStringLiteral
(
BLUEDEVIL_VERSION
_STRING
)
,
i18n
(
"Bluetooth Daemon"
),
KAboutLicense
::
GPL
,
i18n
(
"(c) 2010, UFO Coders"
)
...
...
src/sendfile/main.cpp
View file @
4831cdc6
...
...
@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
KAboutData
aboutData
(
QStringLiteral
(
"bluedevilsendfile"
),
i18n
(
"Bluetooth Send File Wizard"
),
BLUEDEVIL_VERSION
,
QStringLiteral
(
BLUEDEVIL_VERSION
_STRING
)
,
i18n
(
"Bluetooth Send File Wizard"
),
KAboutLicense
::
GPL
,
i18n
(
"(c) 2010, UFO Coders"
));
...
...
src/wizard/main.cpp
View file @
4831cdc6
...
...
@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
KAboutData
aboutData
(
QStringLiteral
(
"bluedevilwizard"
),
i18n
(
"Bluetooth Device Wizard"
),
BLUEDEVIL_VERSION
,
QStringLiteral
(
BLUEDEVIL_VERSION
_STRING
)
,
i18n
(
"Bluetooth Device Wizard"
),
KAboutLicense
::
GPL
,
i18n
(
"(c) 2010, UFO Coders"
));
...
...
version.h.cmake
deleted
100644 → 0
View file @
b4ba0dae
#ifndef BLUEDEVILVERSION_H
#define BLUEDEVILVERSION_H
#define BLUEDEVIL_VERSION QStringLiteral("${PROJECT_VERSION}")
#endif
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