Merge lp:~thomas-voss/qtubuntu-sensors/cmake-setup-take-2 into lp:qtubuntu-sensors

Proposed by Thomas Voß
Status: Merged
Approved by: Timo Jyrinki
Approved revision: 57
Merged at revision: 45
Proposed branch: lp:~thomas-voss/qtubuntu-sensors/cmake-setup-take-2
Merge into: lp:qtubuntu-sensors
Diff against target: 435 lines (+179/-139)
18 files modified
CMakeLists.txt (+28/-0)
coverage.pri (+0/-49)
debian/control (+1/-0)
debian/rules (+1/-1)
plugins/CMakeLists.txt (+3/-0)
plugins/feedback/CMakeLists.txt (+36/-0)
plugins/feedback/feedback.pro (+0/-18)
plugins/feedback/feedback.qrc (+6/-0)
plugins/plugins.pro (+0/-6)
plugins/position/CMakeLists.txt (+44/-0)
plugins/position/position.pro (+0/-26)
plugins/position/position.qrc (+6/-0)
plugins/sensors/CMakeLists.txt (+46/-0)
plugins/sensors/core_shared_accelerometer.cpp (+2/-0)
plugins/sensors/core_shared_accelerometer.h (+0/-2)
plugins/sensors/sensors.pro (+0/-32)
plugins/sensors/sensors.qrc (+6/-0)
qtubuntu-sensors.pro (+0/-5)
To merge this branch: bzr merge lp:~thomas-voss/qtubuntu-sensors/cmake-setup-take-2
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Martin Pitt Approve
Review via email: mp+200826@code.launchpad.net

Commit message

Switch buildsystem to CMake.

Description of the change

Switch buildsystem to CMake.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Martin Pitt (pitti) wrote :

A binary debdiff between current trunk and this branch looks fine:

$ debdiff qtubuntu-sensors_0.6+14.04.20140108.2-0ubuntu1_i386.trunk.deb qtubuntu-sensors_0.6+14.04.20140108.2-0ubuntu1_i386.deb
File lists identical (after any substitutions)

Control files: lines which differ (wdiff format)
------------------------------------------------
Installed-Size: [-81-] {+77+}

The important files (trunk first, then this MP):
-rw-r--r-- root/root 38648 2014-01-10 17:02 ./usr/lib/i386-linux-gnu/qt5/plugins/sensors/libqtubuntu_sensors_plugins.so
-rw-r--r-- root/root 34576 2014-01-10 17:09 ./usr/lib/i386-linux-gnu/qt5/plugins/sensors/libqtubuntu_sensors_plugins.so

-rw-r--r-- root/root 22236 2014-01-10 17:02 ./usr/lib/i386-linux-gnu/qt5/plugins/position/libqtposition_ubuntu.so
-rw-r--r-- root/root 22256 2014-01-10 17:09 ./usr/lib/i386-linux-gnu/qt5/plugins/position/libqtposition_ubuntu.so

-rw-r--r-- root/root 18060 2014-01-10 17:02 ./usr/lib/i386-linux-gnu/qt5/plugins/feedback/libqtfeedback_ubuntu.so
-rw-r--r-- root/root 18068 2014-01-10 17:09 ./usr/lib/i386-linux-gnu/qt5/plugins/feedback/libqtfeedback_ubuntu.so

Not sure why the cmake build of libqtubuntu_sensors_plugins.so got a bit smaller, but it still seems reasonable.

I ignored the bits in cmake/ as they are standard library snippets. Other review comments:

> -Werror -Wall

Is that standard policy for phone builds? This is often frowned upon in released software as it easily leads to build failures with newer compiler or Qt versions which generate more warnings or deprecate API; -Werror is useful for development builds, of course. Maybe that can be conditionalized?

+#enable_coverage_report(posix_process_test linux_process_test)

Out of interest, how does that work? Isn't that something that can be enabled/disabled at configure / cmake calling time? It seems nicer to support coverage and then provide a flag/option to not build with coverage, but for our integrated code+packaging trunks it would be nicer to add the lcov and other required build deps and provide a simple way to enable this without having to edit bzr-tracked source.

plugins/feedback/CMakeLists.txt (also occurs in other files):
+# Ideally, we would read the plugin installation location from cmake

Is that supposed to mean s/cmake/pkg-config/ ?

Otherwise it looks fine to me, thanks!

review: Needs Information
56. By Thomas Voß

Remove unnecessary cmake subfolder
Remove coverage-specific setup until we have tests.

Revision history for this message
Thomas Voß (thomas-voss) wrote :

> A binary debdiff between current trunk and this branch looks fine:
>
> $ debdiff qtubuntu-sensors_0.6+14.04.20140108.2-0ubuntu1_i386.trunk.deb
> qtubuntu-sensors_0.6+14.04.20140108.2-0ubuntu1_i386.deb
> File lists identical (after any substitutions)
>
> Control files: lines which differ (wdiff format)
> ------------------------------------------------
> Installed-Size: [-81-] {+77+}
>
> The important files (trunk first, then this MP):
> -rw-r--r-- root/root 38648 2014-01-10 17:02 ./usr/lib/i386-linux-
> gnu/qt5/plugins/sensors/libqtubuntu_sensors_plugins.so
> -rw-r--r-- root/root 34576 2014-01-10 17:09 ./usr/lib/i386-linux-
> gnu/qt5/plugins/sensors/libqtubuntu_sensors_plugins.so
>
> -rw-r--r-- root/root 22236 2014-01-10 17:02 ./usr/lib/i386-linux-
> gnu/qt5/plugins/position/libqtposition_ubuntu.so
> -rw-r--r-- root/root 22256 2014-01-10 17:09 ./usr/lib/i386-linux-
> gnu/qt5/plugins/position/libqtposition_ubuntu.so
>
> -rw-r--r-- root/root 18060 2014-01-10 17:02 ./usr/lib/i386-linux-
> gnu/qt5/plugins/feedback/libqtfeedback_ubuntu.so
> -rw-r--r-- root/root 18068 2014-01-10 17:09 ./usr/lib/i386-linux-
> gnu/qt5/plugins/feedback/libqtfeedback_ubuntu.so
>
> Not sure why the cmake build of libqtubuntu_sensors_plugins.so got a bit
> smaller, but it still seems reasonable.
>
> I ignored the bits in cmake/ as they are standard library snippets. Other
> review comments:
>
> > -Werror -Wall
>
> Is that standard policy for phone builds? This is often frowned upon in
> released software as it easily leads to build failures with newer compiler or
> Qt versions which generate more warnings or deprecate API; -Werror is useful
> for development builds, of course. Maybe that can be conditionalized?

We enable that by default for phone builds, yes. We condition in -Werror only for release builds usually (see latest update to this mp).

>
> +#enable_coverage_report(posix_process_test linux_process_test)
>
> Out of interest, how does that work? Isn't that something that can be
> enabled/disabled at configure / cmake calling time? It seems nicer to support
> coverage and then provide a flag/option to not build with coverage, but for
> our integrated code+packaging trunks it would be nicer to add the lcov and
> other required build deps and provide a simple way to enable this without
> having to edit bzr-tracked source.
>

Fair, I will propose a follow-up MP that bundles all of that functionality together in an external cmake component. Removed coverage-specific setup for now.

> plugins/feedback/CMakeLists.txt (also occurs in other files):
> +# Ideally, we would read the plugin installation location from cmake
>
> Is that supposed to mean s/cmake/pkg-config/ ?
>
> Otherwise it looks fine to me, thanks!

No, qt5's cmake setup should provide that information but it does not at the moment. We would need to query the qmake executable to get the information and I decided for the slightly less clean but more pragmatic way of just writing down the path.

57. By Thomas Voß

Remove obsolete coverage flags.

Revision history for this message
Martin Pitt (pitti) wrote :

I didn't want to imply that the coverage scripts should go away, but having them in a central cmake library package indeed sounds better.

Looks fine, thanks!

review: Approve
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=== added file 'CMakeLists.txt'
2--- CMakeLists.txt 1970-01-01 00:00:00 +0000
3+++ CMakeLists.txt 2014-01-10 16:55:19 +0000
4@@ -0,0 +1,28 @@
5+cmake_minimum_required(VERSION 2.8)
6+
7+project(qtubuntu-sensors)
8+
9+# Find includes in corresponding build directories
10+set(CMAKE_INCLUDE_CURRENT_DIR ON)
11+# Instruct CMake to run moc automatically when needed.
12+set(CMAKE_AUTOMOC ON)
13+
14+include(GNUInstallDirs)
15+
16+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wextra -fPIC -fvisibility=hidden")
17+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -pedantic -Wextra")
18+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
19+
20+option(QTUBUNTU_SENSORS_WERROR "Treat warnings as errors" ON)
21+if (QTUBUNTU_SENSORS_WERROR)
22+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
23+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
24+endif(QTUBUNTU_SENSORS_WERROR)
25+
26+include(CTest)
27+
28+find_package(Threads REQUIRED)
29+
30+add_definitions(-DQT_PLUGIN)
31+
32+add_subdirectory(plugins)
33
34=== removed file 'coverage.pri'
35--- coverage.pri 2013-01-10 19:45:23 +0000
36+++ coverage.pri 1970-01-01 00:00:00 +0000
37@@ -1,49 +0,0 @@
38-# Coverage
39-CONFIG(coverage) {
40- OBJECTS_DIR =
41- MOC_DIR =
42- TOP_SRC_DIR = $$PWD
43-
44- LIBS += -lgcov
45- QMAKE_CXXFLAGS += --coverage
46- QMAKE_LDFLAGS += --coverage
47-
48- QMAKE_EXTRA_TARGETS += coverage cov
49- QMAKE_EXTRA_TARGETS += clean-gcno clean-gcda coverage-html \
50- generate-coverage-html clean-coverage-html coverage-gcovr \
51- generate-gcovr generate-coverage-gcovr clean-coverage-gcovr
52-
53- clean-gcno.commands = \
54- "@echo Removing old coverage instrumentation"; \
55- "find -name '*.gcno' -print | xargs -r rm"
56-
57- clean-gcda.commands = \
58- "@echo Removing old coverage results"; \
59- "find -name '*.gcda' -print | xargs -r rm"
60-
61- coverage-html.depends = clean-gcda check generate-coverage-html
62-
63- generate-coverage-html.commands = \
64- "@echo Collecting coverage data"; \
65- "lcov --directory $${TOP_SRC_DIR} --capture --output-file coverage.info --no-checksum --compat-libtool"; \
66- "lcov --extract coverage.info \"*/src/*.cpp\" -o coverage.info"; \
67- "lcov --remove coverage.info \"moc_*.cpp\" -o coverage.info"; \
68- "LANG=C genhtml --prefix $${TOP_SRC_DIR} --output-directory coverage-html --title \"Code Coverage\" --legend --show-details coverage.info"
69-
70- clean-coverage-html.depends = clean-gcda
71- clean-coverage-html.commands = \
72- "lcov --directory $${TOP_SRC_DIR} -z"; \
73- "rm -rf coverage.info coverage-html"
74-
75- coverage-gcovr.depends = clean-gcda check generate-coverage-gcovr
76-
77- generate-coverage-gcovr.commands = \
78- "@echo Generating coverage GCOVR report"; \
79- "gcovr -x -r $${TOP_SRC_DIR} -o $${TOP_SRC_DIR}/coverage.xml -e \".*/moc_.*\" -e \"unittests/.*\" -e \".*\\.h\""
80-
81- clean-coverage-gcovr.depends = clean-gcda
82- clean-coverage-gcovr.commands = \
83- "rm -rf $${TOP_SRC_DIR}/coverage.xml"
84-
85- QMAKE_CLEAN += *.gcda *.gcno coverage.info coverage.xml
86-}
87
88=== modified file 'debian/control'
89--- debian/control 2014-01-09 17:42:48 +0000
90+++ debian/control 2014-01-10 16:55:19 +0000
91@@ -3,6 +3,7 @@
92 Priority: optional
93 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
94 Build-Depends: debhelper (>= 9),
95+ cmake,
96 libplatform-api1-dev,
97 pkg-config,
98 qt5-default,
99
100=== modified file 'debian/rules'
101--- debian/rules 2013-03-18 11:58:01 +0000
102+++ debian/rules 2014-01-10 16:55:19 +0000
103@@ -8,7 +8,7 @@
104 export QT_QPA_PLATFORM = minimal
105
106 %:
107- dh $@ --parallel --buildsystem=qmake
108+ dh $@ --parallel
109
110 override_dh_install:
111 dh_install --fail-missing
112
113=== added file 'plugins/CMakeLists.txt'
114--- plugins/CMakeLists.txt 1970-01-01 00:00:00 +0000
115+++ plugins/CMakeLists.txt 2014-01-10 16:55:19 +0000
116@@ -0,0 +1,3 @@
117+add_subdirectory(feedback)
118+add_subdirectory(position)
119+add_subdirectory(sensors)
120\ No newline at end of file
121
122=== added file 'plugins/feedback/CMakeLists.txt'
123--- plugins/feedback/CMakeLists.txt 1970-01-01 00:00:00 +0000
124+++ plugins/feedback/CMakeLists.txt 2014-01-10 16:55:19 +0000
125@@ -0,0 +1,36 @@
126+find_package(Qt5Core REQUIRED)
127+find_package(Qt5Feedback REQUIRED)
128+
129+qt5_add_resources(FEEDBACK_RESOURCES feedback.qrc)
130+
131+add_library(
132+ qtfeedback_ubuntu SHARED
133+
134+ core_feedback.h
135+ core_feedback.cpp
136+
137+ ${FEEDBACK_RESOURCES}
138+)
139+
140+# Ideally, we would read the plugin installation location from cmake
141+# but this does not work currently.
142+set(PLUGIN_INSTALL_LOCATION "${CMAKE_INSTALL_LIBDIR}/qt5/plugins/feedback")
143+# get_target_property(PLUGIN_LOCATION Qt5::Feedback PLUGIN_LOCATION)
144+
145+message(STATUS "Installing Qt5 feedback plugin to: ${PLUGIN_INSTALL_LOCATION}")
146+
147+qt5_use_modules(qtfeedback_ubuntu Core Feedback)
148+
149+target_link_libraries(
150+ qtfeedback_ubuntu
151+
152+ ${CMAKE_THREAD_LIBS_INIT}
153+
154+ Qt5::Core
155+ Qt5::Feedback)
156+
157+install(
158+ TARGETS qtfeedback_ubuntu
159+ LIBRARY DESTINATION ${PLUGIN_INSTALL_LOCATION})
160+
161+
162
163=== removed file 'plugins/feedback/feedback.pro'
164--- plugins/feedback/feedback.pro 2014-01-07 10:35:49 +0000
165+++ plugins/feedback/feedback.pro 1970-01-01 00:00:00 +0000
166@@ -1,18 +0,0 @@
167-include(../../coverage.pri)
168-
169-TEMPLATE = lib
170-CONFIG += plugin
171-TARGET = $$qtLibraryTarget(qtfeedback_ubuntu)
172-PLUGIN_TYPE = feedback
173-
174-QT = core feedback
175-
176-HEADERS += core_feedback.h
177-SOURCES += core_feedback.cpp
178-
179-target.path += $$[QT_INSTALL_PLUGINS]/feedback
180-INSTALLS += target
181-
182-OTHER_FILES += feedback.json
183-
184-QMAKE_RPATHDIR = $$[QT_INSTALL_LIBS]/qtubuntu-feedback
185
186=== added file 'plugins/feedback/feedback.qrc'
187--- plugins/feedback/feedback.qrc 1970-01-01 00:00:00 +0000
188+++ plugins/feedback/feedback.qrc 2014-01-10 16:55:19 +0000
189@@ -0,0 +1,6 @@
190+<!DOCTYPE RCC>
191+<RCC version="1.0">
192+<qresource>
193+ <file>feedback.json</file>
194+</qresource>
195+</RCC>
196\ No newline at end of file
197
198=== removed file 'plugins/plugins.pro'
199--- plugins/plugins.pro 2014-01-07 17:29:45 +0000
200+++ plugins/plugins.pro 1970-01-01 00:00:00 +0000
201@@ -1,6 +0,0 @@
202-TEMPLATE = subdirs
203-
204-SUBDIRS += \
205- feedback \
206- position \
207- sensors
208
209=== added file 'plugins/position/CMakeLists.txt'
210--- plugins/position/CMakeLists.txt 1970-01-01 00:00:00 +0000
211+++ plugins/position/CMakeLists.txt 2014-01-10 16:55:19 +0000
212@@ -0,0 +1,44 @@
213+find_package(PkgConfig)
214+
215+find_package(Qt5Core REQUIRED)
216+find_package(Qt5Location REQUIRED)
217+
218+pkg_check_modules(UBUNTU_PLATFORM_API ubuntu-platform-api REQUIRED)
219+
220+qt5_add_resources(POSITION_RESOURCES position.qrc)
221+
222+add_library(
223+ qtposition_ubuntu SHARED
224+
225+ core_geo_position_info_source.h
226+ core_geo_position_info_source_factory.h
227+
228+ core_geo_position_info_source.cpp
229+ core_geo_position_info_source_factory.cpp
230+
231+ ${POSITION_RESOURCES}
232+)
233+
234+# Ideally, we would read the plugin installation location from cmake
235+# but this does not work currently.
236+set(PLUGIN_INSTALL_LOCATION "${CMAKE_INSTALL_LIBDIR}/qt5/plugins/position")
237+# get_target_property(PLUGIN_LOCATION Qt5::Location PLUGIN_LOCATION)
238+
239+message(STATUS "Installing Qt5 location plugin to: ${PLUGIN_INSTALL_LOCATION}")
240+
241+qt5_use_modules(qtposition_ubuntu Core Location)
242+
243+target_link_libraries(
244+ qtposition_ubuntu
245+
246+ ${CMAKE_THREAD_LIBS_INIT}
247+
248+ Qt5::Core
249+ Qt5::Location
250+
251+ ${UBUNTU_PLATFORM_API_LIBRARIES}
252+)
253+
254+install(
255+ TARGETS qtposition_ubuntu
256+ LIBRARY DESTINATION ${PLUGIN_INSTALL_LOCATION})
257
258=== removed file 'plugins/position/position.pro'
259--- plugins/position/position.pro 2014-01-07 17:49:57 +0000
260+++ plugins/position/position.pro 1970-01-01 00:00:00 +0000
261@@ -1,26 +0,0 @@
262-QT += location core
263-
264-TEMPLATE = lib
265-CONFIG += link_pkgconfig plugin
266-TARGET = $$qtLibraryTarget(qtposition_ubuntu)
267-PLUGIN_TYPE = position
268-
269-QT = location core
270-
271-HEADERS += \
272- core_geo_position_info_source.h \
273- core_geo_position_info_source_factory.h
274-
275-SOURCES += \
276- core_geo_position_info_source.cpp \
277- core_geo_position_info_source_factory.cpp
278-
279-INCLUDEPATH += $$PWD/
280-
281-PKGCONFIG += ubuntu-platform-api
282-LIBS += -lubuntu_application_api
283-
284-target.path += $$[QT_INSTALL_PLUGINS]/position
285-INSTALLS += target
286-
287-OTHER_FILES += plugin.json
288
289=== added file 'plugins/position/position.qrc'
290--- plugins/position/position.qrc 1970-01-01 00:00:00 +0000
291+++ plugins/position/position.qrc 2014-01-10 16:55:19 +0000
292@@ -0,0 +1,6 @@
293+<!DOCTYPE RCC>
294+<RCC version="1.0">
295+<qresource>
296+ <file>plugin.json</file>
297+</qresource>
298+</RCC>
299\ No newline at end of file
300
301=== added file 'plugins/sensors/CMakeLists.txt'
302--- plugins/sensors/CMakeLists.txt 1970-01-01 00:00:00 +0000
303+++ plugins/sensors/CMakeLists.txt 2014-01-10 16:55:19 +0000
304@@ -0,0 +1,46 @@
305+find_package(PkgConfig)
306+find_package(Qt5Core REQUIRED)
307+find_package(Qt5Sensors REQUIRED)
308+
309+pkg_check_modules(UBUNTU_PLATFORM_API ubuntu-platform-api REQUIRED)
310+
311+qt5_add_resources(SENSORS_RESOURCES sensors.qrc)
312+
313+add_library(
314+ qtubuntu_sensors_plugins SHARED
315+
316+ core_accelerometer.h
317+ core_orientation_sensor.h
318+ core_sensor_plugins.h
319+ core_shared_accelerometer.h
320+
321+ core_accelerometer.cpp
322+ core_orientation_sensor.cpp
323+ core_sensor_plugins.cpp
324+ core_shared_accelerometer.cpp
325+
326+ ${SENSORS_RESOURCES}
327+)
328+
329+# Ideally, we would read the plugin installation location from cmake
330+# but this does not work currently.
331+set(PLUGIN_INSTALL_LOCATION "${CMAKE_INSTALL_LIBDIR}/qt5/plugins/sensors")
332+# get_target_property(PLUGIN_LOCATION Qt5::Sensors PLUGIN_LOCATION)
333+
334+message(STATUS "Installing Qt5 sensors plugin to: ${PLUGIN_INSTALL_LOCATION}")
335+
336+qt5_use_modules(qtubuntu_sensors_plugins Core Sensors)
337+
338+target_link_libraries(
339+ qtubuntu_sensors_plugins
340+
341+ ${CMAKE_THREAD_LIBS_INIT}
342+
343+ Qt5::Core
344+ Qt5::Sensors
345+
346+ ${UBUNTU_PLATFORM_API_LIBRARIES})
347+
348+install(
349+ TARGETS qtubuntu_sensors_plugins
350+ LIBRARY DESTINATION ${PLUGIN_INSTALL_LOCATION})
351
352=== modified file 'plugins/sensors/core_shared_accelerometer.cpp'
353--- plugins/sensors/core_shared_accelerometer.cpp 2014-01-07 07:50:47 +0000
354+++ plugins/sensors/core_shared_accelerometer.cpp 2014-01-10 16:55:19 +0000
355@@ -19,6 +19,8 @@
356 #include <QDebug>
357 #include <QMetaType>
358
359+Q_DECLARE_METATYPE(QSharedPointer<QAccelerometerReading>)
360+
361 core::SharedAccelerometer& core::SharedAccelerometer::instance()
362 {
363 static core::SharedAccelerometer instance;
364
365=== modified file 'plugins/sensors/core_shared_accelerometer.h'
366--- plugins/sensors/core_shared_accelerometer.h 2014-01-07 07:26:33 +0000
367+++ plugins/sensors/core_shared_accelerometer.h 2014-01-10 16:55:19 +0000
368@@ -23,8 +23,6 @@
369 #include <QObject>
370 #include <QSharedPointer>
371
372-Q_DECLARE_METATYPE(QSharedPointer<QAccelerometerReading>)
373-
374 namespace core
375 {
376 class SharedAccelerometer : public QObject
377
378=== removed file 'plugins/sensors/sensors.pro'
379--- plugins/sensors/sensors.pro 2014-01-07 10:35:49 +0000
380+++ plugins/sensors/sensors.pro 1970-01-01 00:00:00 +0000
381@@ -1,32 +0,0 @@
382-include(../../coverage.pri)
383-
384-TEMPLATE = lib
385-CONFIG += plugin
386-TARGET = $$qtLibraryTarget(qtubuntu_sensors_plugins)
387-PLUGIN_TYPE = sensors
388-
389-QT = sensors core
390-
391-INCLUDEPATH += $$PWD/
392-
393-LIBS += -L$$OUT_PWD/
394-LIBS += -lubuntu_application_api
395-
396-HEADERS += \
397- core_accelerometer.h \
398- core_orientation_sensor.h \
399- core_sensor_plugins.h \
400- core_shared_accelerometer.h
401-
402-SOURCES += \
403- core_accelerometer.cpp \
404- core_orientation_sensor.cpp \
405- core_sensor_plugins.cpp \
406- core_shared_accelerometer.cpp
407-
408-target.path += $$[QT_INSTALL_PLUGINS]/sensors
409-INSTALLS += target
410-
411-OTHER_FILES += sensors.json
412-
413-QMAKE_RPATHDIR = $$[QT_INSTALL_LIBS]/qtubuntu-sensors
414
415=== added file 'plugins/sensors/sensors.qrc'
416--- plugins/sensors/sensors.qrc 1970-01-01 00:00:00 +0000
417+++ plugins/sensors/sensors.qrc 2014-01-10 16:55:19 +0000
418@@ -0,0 +1,6 @@
419+<!DOCTYPE RCC>
420+<RCC version="1.0">
421+<qresource>
422+ <file>sensors.json</file>
423+</qresource>
424+</RCC>
425\ No newline at end of file
426
427=== removed file 'qtubuntu-sensors.pro'
428--- qtubuntu-sensors.pro 2014-01-07 10:35:49 +0000
429+++ qtubuntu-sensors.pro 1970-01-01 00:00:00 +0000
430@@ -1,5 +0,0 @@
431-include(coverage.pri)
432-
433-TEMPLATE = subdirs
434-
435-SUBDIRS += plugins

Subscribers

People subscribed via source and target branches