Merge lp:~loic.molinari/ubuntu-ui-toolkit/uitk-use-dedicated-qt-build-define-for-libs into lp:ubuntu-ui-toolkit/staging

Proposed by Loïc Molinari
Status: Merged
Approved by: Loïc Molinari
Approved revision: 2104
Merged at revision: 2117
Proposed branch: lp:~loic.molinari/ubuntu-ui-toolkit/uitk-use-dedicated-qt-build-define-for-libs
Merge into: lp:ubuntu-ui-toolkit/staging
Prerequisite: lp:~loic.molinari/ubuntu-ui-toolkit/uitk-ascii-cast-warnings-fix
Diff against target: 62 lines (+7/-6)
4 files modified
src/UbuntuGestures/UbuntuGestures.pro (+0/-2)
src/UbuntuGestures/ubuntugesturesglobal.h (+6/-1)
src/UbuntuToolkit/UbuntuToolkit.pro (+0/-2)
src/UbuntuToolkit/ubuntutoolkitglobal.h (+1/-1)
To merge this branch: bzr merge lp:~loic.molinari/ubuntu-ui-toolkit/uitk-use-dedicated-qt-build-define-for-libs
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Zsombor Egri Approve
Review via email: mp+305486@code.launchpad.net

Commit message

Made use of dedicated QT_BUILD_*_LIB define for our libs.

Creating a dedicated preprocessor define for each lib is not necessary as it's already handled by the Qt qt_build_config feature.

Description of the change

Made use of dedicated QT_BUILD_*_LIB define for our libs.

Creating a dedicated preprocessor define for each lib is not necessary as it's already handled by the Qt qt_build_config feature.

To post a comment you must log in.
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

Isn't this QT_BUILD_*_LIB declared only if we build as Qt submodule?

review: Needs Information
Revision history for this message
Loïc Molinari (loic.molinari) wrote :

> Isn't this QT_BUILD_*_LIB declared only if we build as Qt submodule?

No, qt_module.prf (loaded by our ubuntu_qt_module.prf used for libs) defines that:

  ucmodule = $$upper($$MODULE)
  DEFINES += QT_BUILD_$${ucmodule}_LIB

(they even the uc prefix!)

Revision history for this message
Zsombor Egri (zsombi) wrote :

> > Isn't this QT_BUILD_*_LIB declared only if we build as Qt submodule?
>
> No, qt_module.prf (loaded by our ubuntu_qt_module.prf used for libs) defines
> that:
>
> ucmodule = $$upper($$MODULE)
> DEFINES += QT_BUILD_$${ucmodule}_LIB
>
> (they even the uc prefix!)
Excellent! We're good then with this too!

review: Approve
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/UbuntuGestures/UbuntuGestures.pro'
2--- src/UbuntuGestures/UbuntuGestures.pro 2016-09-12 15:03:21 +0000
3+++ src/UbuntuGestures/UbuntuGestures.pro 2016-09-12 15:03:22 +0000
4@@ -1,8 +1,6 @@
5 TARGET = UbuntuGestures
6 QT = core-private gui-private qml-private quick-private
7
8-DEFINES += UBUNTUGESTURES_LIBRARY
9-
10 HEADERS += \
11 $$PWD/candidateinactivitytimer_p.h \
12 $$PWD/damper_p.h \
13
14=== modified file 'src/UbuntuGestures/ubuntugesturesglobal.h'
15--- src/UbuntuGestures/ubuntugesturesglobal.h 2016-07-08 14:28:48 +0000
16+++ src/UbuntuGestures/ubuntugesturesglobal.h 2016-09-12 15:03:22 +0000
17@@ -14,9 +14,12 @@
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21+#ifndef UBUNTUGESTURESGLOBAL_H
22+#define UBUNTUGESTURESGLOBAL_H
23+
24 #include <QtCore/QtGlobal>
25
26-#if defined(UBUNTUGESTURES_LIBRARY)
27+#if defined(QT_BUILD_UBUNTUGESTURES_LIB)
28 # define UBUNTUGESTURES_EXPORT Q_DECL_EXPORT
29 #else
30 # define UBUNTUGESTURES_EXPORT Q_DECL_IMPORT
31@@ -45,3 +48,5 @@
32 #define UG_FORWARD_DECLARE_STRUCT(name) struct name;
33
34 #endif
35+
36+#endif // UBUNTUGESTURESGLOBAL_H
37
38=== modified file 'src/UbuntuToolkit/UbuntuToolkit.pro'
39--- src/UbuntuToolkit/UbuntuToolkit.pro 2016-09-12 15:03:21 +0000
40+++ src/UbuntuToolkit/UbuntuToolkit.pro 2016-09-12 15:03:22 +0000
41@@ -13,8 +13,6 @@
42 SOURCES += mousetouchadaptor_x11.cpp
43 }
44
45-DEFINES += UBUNTUTOOLKIT_LIBRARY
46-
47 # Uncomment to compile out qDebug() calls.
48 # DEFINES += QT_NO_DEBUG_OUTPUT
49
50
51=== modified file 'src/UbuntuToolkit/ubuntutoolkitglobal.h'
52--- src/UbuntuToolkit/ubuntutoolkitglobal.h 2016-09-12 15:03:21 +0000
53+++ src/UbuntuToolkit/ubuntutoolkitglobal.h 2016-09-12 15:03:22 +0000
54@@ -19,7 +19,7 @@
55
56 #include <QtCore/QtGlobal>
57
58-#if defined(UBUNTUTOOLKIT_LIBRARY)
59+#if defined(QT_BUILD_UBUNTUTOOLKIT_LIB)
60 # define UBUNTUTOOLKIT_EXPORT Q_DECL_EXPORT
61 #else
62 # define UBUNTUTOOLKIT_EXPORT Q_DECL_IMPORT

Subscribers

People subscribed via source and target branches