Merge lp:~zeller-benjamin/qtcreator-plugin-ubuntu/qmake-extras into lp:qtcreator-plugin-ubuntu

Proposed by Benjamin Zeller
Status: Merged
Approved by: Zoltan Balogh
Approved revision: 331
Merge reported by: Zoltan Balogh
Merged at revision: not available
Proposed branch: lp:~zeller-benjamin/qtcreator-plugin-ubuntu/qmake-extras
Merge into: lp:qtcreator-plugin-ubuntu
Diff against target: 180 lines (+120/-3)
6 files modified
debian/control (+10/-2)
debian/ubuntu-sdk-qmake-extras.install (+2/-0)
qtcreator-plugin-ubuntu.pro (+12/-0)
src/ubuntu/ubuntu.pro (+0/-1)
ubuntu-click-tools.prf (+90/-0)
ubuntu-click.prf (+6/-0)
To merge this branch: bzr merge lp:~zeller-benjamin/qtcreator-plugin-ubuntu/qmake-extras
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Zoltan Balogh Pending
Review via email: mp+246703@code.launchpad.net

Commit message

- Introduce ubuntu-sdk-qmake-extras package
- Fix bug lp:1395483 Qt Creator is no longer new

Description of the change

Introduce ubuntu-sdk-qmake-extras package

To post a comment you must log in.
329. By Benjamin Zeller

Missing files

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
330. By Benjamin Zeller

Fix bug lp:1395483 Qt Creator is no longer new

331. By Benjamin Zeller

Mark

Revision history for this message
PS Jenkins bot (ps-jenkins) 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 'debian/control'
2--- debian/control 2015-01-07 09:19:56 +0000
3+++ debian/control 2015-01-19 11:13:51 +0000
4@@ -74,7 +74,7 @@
5 qtcreator-plugin-go,
6 ubuntu-emulator
7 Description: Ubuntu plugin for Qt Creator IDE
8- Qt Creator is a new, lightweight, cross-platform integrated development
9+ Qt Creator is a lightweight, cross-platform integrated development
10 environment (IDE) designed to make development with the Qt application
11 framework even faster and easier.
12 .
13@@ -90,13 +90,21 @@
14 Replaces: qtcreator-plugin-ubuntu (<= 2.7.1-0ubuntu4),
15 Conflicts: qtcreator-plugin-ubuntu (<= 2.7.1-0ubuntu4),
16 Description: Common data files for the Ubuntu plugin for Qt Creator IDE
17- Qt Creator is a new, lightweight, cross-platform integrated development
18+ Qt Creator is a lightweight, cross-platform integrated development
19 environment (IDE) designed to make development with the Qt application
20 framework even faster and easier.
21 .
22 This package contains the runtime data files for the Ubuntu plugin for
23 Qt Creator IDE.
24
25+Package: ubuntu-sdk-qmake-extras
26+Architecture: all
27+Depends: ${misc:Depends},
28+Description: Extra qmake features required by the Ubuntu-SDK templates,
29+ extends qmake projects with Ubuntu specific variables and tools
30+ .
31+ This package contains qmake feature files for the Ubuntu-SDK
32+
33 Package: qtcreator-plugin-ubuntu-autopilot
34 Architecture: any
35 Depends: ${misc:Depends},
36
37=== added file 'debian/ubuntu-sdk-qmake-extras.install'
38--- debian/ubuntu-sdk-qmake-extras.install 1970-01-01 00:00:00 +0000
39+++ debian/ubuntu-sdk-qmake-extras.install 2015-01-19 11:13:51 +0000
40@@ -0,0 +1,2 @@
41+usr/lib/*/qt5/mkspecs/features/ubuntu-click.prf
42+usr/lib/*/qt5/mkspecs/features/ubuntu-click-tools.prf
43
44=== modified file 'qtcreator-plugin-ubuntu.pro'
45--- qtcreator-plugin-ubuntu.pro 2014-12-12 13:33:10 +0000
46+++ qtcreator-plugin-ubuntu.pro 2015-01-19 11:13:51 +0000
47@@ -2,3 +2,15 @@
48 SUBDIRS = src/ubuntu \
49 tests \
50 chroot-agent
51+
52+OTHER_FILES += \
53+ ubuntu-click.prf \
54+ ubuntu-click-tools.prf \
55+ share/qtcreator/ubuntu/scripts/*.py
56+
57+qt_install_libs = $$[QT_INSTALL_LIBS]
58+QMAKE_INST_EXTRA_FILES.path=/lib/$$basename(qt_install_libs)/qt5/mkspecs/features
59+QMAKE_INST_EXTRA_FILES.files= ubuntu-click.prf \
60+ ubuntu-click-tools.prf
61+
62+INSTALLS+=QMAKE_INST_EXTRA_FILES
63
64=== modified file 'src/ubuntu/ubuntu.pro'
65--- src/ubuntu/ubuntu.pro 2014-12-12 13:33:10 +0000
66+++ src/ubuntu/ubuntu.pro 2015-01-19 11:13:51 +0000
67@@ -52,7 +52,6 @@
68 manifest.json.template \
69 myapp.json.template \
70 manifestlib.js \
71- $${PWD}/../../share/qtcreator/ubuntu/scripts/*.py \
72 $$QML_FILES
73
74 SOURCES += \
75
76=== added file 'ubuntu-click-tools.prf'
77--- ubuntu-click-tools.prf 1970-01-01 00:00:00 +0000
78+++ ubuntu-click-tools.prf 2015-01-19 11:13:51 +0000
79@@ -0,0 +1,90 @@
80+#handle and install the manifest file
81+
82+!defined(UBUNTU_CLICK_ARCH) {
83+ load(ubuntu-click)
84+}
85+
86+defineTest(ubuntuAddPreTargetDep) {
87+ equals(TEMPLATE,subdirs) {
88+ #this hack adds a extra "first" target dependency
89+ #because subdirs can not handle build dependencies
90+ isEmpty(target_first.target){
91+ target_first.target = first
92+ QMAKE_EXTRA_TARGETS += target_first
93+ export(QMAKE_EXTRA_TARGETS)
94+ }
95+ target_first.depends += $$1
96+
97+ export(target_first)
98+ export(target_first.target)
99+ export(target_first.depends)
100+ } else {
101+ PRE_TARGETDEPS+=$$1
102+ export(PRE_TARGETDEPS)
103+ }
104+}
105+
106+!isEmpty(UBUNTU_MANIFEST_FILE){
107+ OTHER_FILES+=$$UBUNTU_MANIFEST_FILE
108+ manifest_file.target = $$OUT_PWD/manifest.json
109+ manifest_file.commands = sed s/@CLICK_ARCH@/$$UBUNTU_CLICK_ARCH/g $$absolute_path($${UBUNTU_MANIFEST_FILE},$$_PRO_FILE_PWD_) > $${manifest_file.target}
110+ manifest_file.depends = $$absolute_path($${UBUNTU_MANIFEST_FILE},$$_PRO_FILE_PWD_)
111+
112+ QMAKE_EXTRA_TARGETS+=manifest_file
113+ ubuntuAddPreTargetDep($${manifest_file.target})
114+
115+ manifest_file_install.path = /
116+ manifest_file_install.files = $${OUT_PWD}/manifest.json
117+ manifest_file_install.CONFIG +=no_check_exist
118+ INSTALLS+=manifest_file_install
119+}
120+
121+!isEmpty(UBUNTU_TRANSLATION_SOURCES){
122+ # iterate over all QML/JS files and create a basic translation template
123+ template_pot.target=$$_PRO_FILE_PWD_/po/template.pot
124+ for(filelist, UBUNTU_TRANSLATION_SOURCES) {
125+ resolved_filelist = $$absolute_path($$filelist,$$_PRO_FILE_PWD_)
126+ resolved_filelist = $$files($$resolved_filelist)
127+ for(file,resolved_filelist) {
128+ template_pot.depends+=$$file
129+ }
130+
131+ }
132+
133+ !isEmpty(template_pot.depends) {
134+ template_pot.commands=mkdir -p $$_PRO_FILE_PWD_/po && xgettext -o $$template_pot.target --qt --c++ --add-comments=TRANSLATORS --keyword=tr --keyword=tr:1,2 $$template_pot.depends --from-code=UTF-8
135+
136+ QMAKE_EXTRA_TARGETS+=template_pot
137+ ubuntuAddPreTargetDep($$_PRO_FILE_PWD_/po/template.pot)
138+ }
139+
140+ !isEmpty(UBUNTU_PO_FILES){
141+ isEmpty(UBUNTU_TRANSLATION_DOMAIN):error("UBUNTU_TRANSLATION_DOMAIN not defined")
142+ # compile the mo files into po files
143+ for(filelist, UBUNTU_PO_FILES) {
144+ resolved_filelist = $$absolute_path($$filelist,$$_PRO_FILE_PWD_)
145+ resolved_filelist = $$files($$resolved_filelist)
146+ for(file,resolved_filelist) {
147+ lang=$$basename(file)
148+ lang=$$split(lang, .)
149+ lang=$$first(lang)
150+
151+ target_name=mo_target_$$lang
152+ target_file=$$shadowed($$_PRO_FILE_PWD_)/po/$${lang}/$${UBUNTU_TRANSLATION_DOMAIN}.mo
153+
154+ $${target_name}.target=$$target_file
155+ $${target_name}.commands=mkdir -p po/$${lang} && msgfmt -o $${target_file} $$absolute_path($$file,$$_PRO_FILE_PWD_)
156+ $${target_name}.depends+=$$absolute_path($$file,$$_PRO_FILE_PWD_)
157+
158+ $${target_name}_inst.path =/share/locale/$${lang}/LC_MESSAGES
159+ $${target_name}_inst.CONFIG +=no_check_exist
160+ $${target_name}_inst.files=$$target_file
161+
162+ QMAKE_EXTRA_TARGETS+=$$target_name
163+ ubuntuAddPreTargetDep($${target_file})
164+
165+ INSTALLS += $${target_name}_inst
166+ }
167+ }
168+ }
169+}
170
171=== added file 'ubuntu-click.prf'
172--- ubuntu-click.prf 1970-01-01 00:00:00 +0000
173+++ ubuntu-click.prf 2015-01-19 11:13:51 +0000
174@@ -0,0 +1,6 @@
175+UBUNTU_CLICK_ARCH=$$system(dpkg-architecture -qDEB_HOST_ARCH)
176+qt_install_libs = $$[QT_INSTALL_LIBS]
177+UBUNTU_CLICK_PLUGIN_PATH=/lib/$$basename(qt_install_libs)
178+UBUNTU_CLICK_BINARY_PATH=/lib/$$basename(qt_install_libs)/bin
179+
180+!contains(CONFIG,ubuntu-click-tools):CONFIG+=ubuntu-click-tools

Subscribers

People subscribed via source and target branches