[gegl-qt] Build: Replace hardcoded versions with variables
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl-qt] Build: Replace hardcoded versions with variables
- Date: Sun, 11 Mar 2012 18:20:19 +0000 (UTC)
commit c09dbd89b7fae46fc1fcf382ecd59fc34f4cc46d
Author: Jon Nordby <jononor gmail com>
Date: Sun Mar 11 15:07:33 2012 +0100
Build: Replace hardcoded versions with variables
Preparation for Qt5 support.
config.pri | 4 ++--
gegl-qt/gegl-qt.pro | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/config.pri b/config.pri
index 50c4500..7a35b3d 100644
--- a/config.pri
+++ b/config.pri
@@ -6,10 +6,10 @@ GEGLQT_VERSION = 0.0.7
GEGLQT_PROJECTBRIEF = "Integration library for using GEGL in Qt based applications"
GEGLQT_API_VERSION = 0.1
-GEGLQT_BASELIBNAME = gegl-qt4
+GEGLQT_BASELIBNAME = gegl-qt$$QT_MAJOR_VERSION
GEGLQT_LIBNAME = $$GEGLQT_BASELIBNAME-$$GEGLQT_API_VERSION
-GEGLQT_QML_API_NAME = GeglQt4
+GEGLQT_QML_API_NAME = GeglQt$$QT_MAJOR_VERSION
GEGLQT_QML_API_VERSION_MAJOR = 0
GEGLQT_QML_API_VERSION_MINOR = 1
GEGLQT_QML_API_VERSION = 0.1
diff --git a/gegl-qt/gegl-qt.pro b/gegl-qt/gegl-qt.pro
index cda2b3b..8feaf84 100644
--- a/gegl-qt/gegl-qt.pro
+++ b/gegl-qt/gegl-qt.pro
@@ -60,10 +60,10 @@ private_headers.path = $$GEGLQT_INSTALL_HEADERS/$$GEGLQT_LIBNAME/$$GEGLQT_PROJEC
top_headers.path = $$GEGLQT_INSTALL_HEADERS/$$GEGLQT_LIBNAME
top_headers.files = $$TOP_HEADERS
-outputFiles(gegl-qt4-0.1.pc)
+outputFiles(gegl-qt$$QT_MAJOR_VERSION-$${GEGLQT_API_VERSION}.pc)
pkgconfig.path = $$GEGLQT_INSTALL_LIBS/pkgconfig
-pkgconfig.files = gegl-qt4-0.1.pc
+pkgconfig.files = gegl-qt$$QT_MAJOR_VERSION-$${GEGLQT_API_VERSION}.pc
INSTALLS += target headers top_headers pkgconfig
!isEmpty(GEGLQT_INSTALL_PRIVATE_HEADERS) {
@@ -71,5 +71,5 @@ INSTALLS += target headers top_headers pkgconfig
}
OTHER_FILES = \
- gegl-qt4-0.1.pc.in \
+ gegl-qt$$QT_MAJOR_VERSION-$${GEGLQT_API_VERSION}.pc.in \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]