Merge lp:~zeller-benjamin/ubuntu-rssreader-app/sdkcompat into lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk

Proposed by Benjamin Zeller
Status: Merged
Approved by: Alan Pope 🍺🐧🐱 πŸ¦„
Approved revision: 308
Merged at revision: 321
Proposed branch: lp:~zeller-benjamin/ubuntu-rssreader-app/sdkcompat
Merge into: lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk
Diff against target: 106 lines (+32/-5)
6 files modified
CMakeLists.txt (+9/-2)
article_items/CMakeLists.txt (+4/-0)
click/CMakeLists.txt (+9/-1)
click/manifest.json.in (+3/-2)
debian/rules (+3/-0)
feeds/CMakeLists.txt (+4/-0)
To merge this branch: bzr merge lp:~zeller-benjamin/ubuntu-rssreader-app/sdkcompat
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Alan Pope 🍺🐧🐱 πŸ¦„ (community) Approve
Ubuntu Shorts Developers Pending
Review via email: mp+233706@code.launchpad.net

Commit message

Make rss reader app cmake project useable out of the Box with QtCreator
- Enable click mode by default
- Hook names in the manifest file can not be variables (Bug:#1366775)
- Disable click mode in debian rules file
- Add variable UBUNTU_MANIFEST_PATH variable so QtC knows where to look
for the manifest file
- Rename apparmor.json to shorts.apparmor (editor support)
- Add qml and js files to custom targets, so they are visible in QtC

Description of the change

Make rss reader app cmake project useable out of the Box with QtCreator
- Enable click mode by default
- Hook names in the manifest file can not be variables (Bug:#1366775)
- Disable click mode in debian rules file
- Add variable UBUNTU_MANIFEST_PATH variable so QtC knows where to look
for the manifest file
- Rename apparmor.json to shorts.apparmor (editor support)
- Add qml and js files to custom targets, so they are visible in QtC

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
308. By Benjamin Zeller

Merge with trunk

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Great! Thanks!

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Joey Chan (qqworini) wrote :

So .. Does this make Ctrl + F12 usable ? (ΰΉ‘Β΄Ϊ‘`ΰΉ‘)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2014-09-18 20:48:36 +0000
+++ CMakeLists.txt 2014-09-23 07:39:30 +0000
@@ -7,7 +7,7 @@
7include(GNUInstallDirs)7include(GNUInstallDirs)
88
9option(INSTALL_TESTS "Install the tests on make install" on)9option(INSTALL_TESTS "Install the tests on make install" on)
10option(CLICK_MODE "Installs to a contained location" off)10option(CLICK_MODE "Installs to a contained location" on)
1111
12set(APP_NAME shorts)12set(APP_NAME shorts)
13set(DESKTOP_FILE "${PROJECT_NAME}_${APP_NAME}.desktop")13set(DESKTOP_FILE "${PROJECT_NAME}_${APP_NAME}.desktop")
@@ -15,6 +15,7 @@
15set(MAIN_QML shorts-app.qml)15set(MAIN_QML shorts-app.qml)
16set(ICON_FILE rssreader-app@30.png)16set(ICON_FILE rssreader-app@30.png)
17set(AUTOPILOT_DIR shorts_app)17set(AUTOPILOT_DIR shorts_app)
18set(UBUNTU_MANIFEST_PATH "click/manifest.json.in" CACHE INTERNAL "Relative path to the manifest file")
1819
19if(CLICK_MODE)20if(CLICK_MODE)
20 if(NOT DEFINED BZR_SOURCE)21 if(NOT DEFINED BZR_SOURCE)
@@ -46,7 +47,11 @@
4647
47file(GLOB SRC_FILES48file(GLOB SRC_FILES
48 RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}49 RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
49 *.qml *.js *.png *.json)50 *.qml *.js *.json *.png)
51
52# make the files visible in the qtcreator tree
53add_custom_target(shorts_QMlFiles ALL SOURCES ${SRC_FILES})
54
50install(DIRECTORY article_items feeds icons_tmp listview DESTINATION ${DATA_DIR})55install(DIRECTORY article_items feeds icons_tmp listview DESTINATION ${DATA_DIR})
51install(FILES SavedTab.qml TopicTab.qml ShortsTab.qml56install(FILES SavedTab.qml TopicTab.qml ShortsTab.qml
52 XmlNetwork.qml OrganicGrid.qml RssFeedPage.qml57 XmlNetwork.qml OrganicGrid.qml RssFeedPage.qml
@@ -71,3 +76,5 @@
71add_subdirectory(click)76add_subdirectory(click)
72add_subdirectory(po)77add_subdirectory(po)
73add_subdirectory(tests)78add_subdirectory(tests)
79add_subdirectory(feeds)
80add_subdirectory(article_items)
7481
=== added file 'article_items/CMakeLists.txt'
--- article_items/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ article_items/CMakeLists.txt 2014-09-23 07:39:30 +0000
@@ -0,0 +1,4 @@
1file(GLOB ARTICLE_ITEMS_QML_JS_FILES *.qml *.js)
2
3# make the files visible in the qtcreator tree
4add_custom_target(ubuntu-rssreader-app_article_items_QMlFiles ALL SOURCES ${ARTICLE_ITEMS_QML_JS_FILES})
05
=== modified file 'click/CMakeLists.txt'
--- click/CMakeLists.txt 2014-01-31 21:23:34 +0000
+++ click/CMakeLists.txt 2014-09-23 07:39:30 +0000
@@ -3,6 +3,14 @@
3 set(BZR_REVNO "latest")3 set(BZR_REVNO "latest")
4 endif(NOT BZR_REVNO)4 endif(NOT BZR_REVNO)
5 configure_file(manifest.json.in ${CMAKE_CURRENT_BINARY_DIR}/manifest.json)5 configure_file(manifest.json.in ${CMAKE_CURRENT_BINARY_DIR}/manifest.json)
6 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/manifest.json apparmor.json6 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/manifest.json shorts.apparmor
7 DESTINATION ${CMAKE_INSTALL_PREFIX})7 DESTINATION ${CMAKE_INSTALL_PREFIX})
8
9 # make the click files visible in qtcreator
10 file(GLOB CLICK_FILES
11 RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
12 *.json *.json.in *.apparmor)
13
14 add_custom_target(com_ubuntu_shorts_CLICKFiles ALL SOURCES ${CLICK_FILES})
15
8endif(CLICK_MODE)16endif(CLICK_MODE)
917
=== modified file 'click/manifest.json.in'
--- click/manifest.json.in 2014-08-05 14:52:07 +0000
+++ click/manifest.json.in 2014-09-23 07:39:30 +0000
@@ -1,9 +1,10 @@
1{1{
2 "architecture": "all",
2 "description": "Rss Reader application",3 "description": "Rss Reader application",
3 "framework": "ubuntu-sdk-14.10-qml-dev3",4 "framework": "ubuntu-sdk-14.10-qml-dev3",
4 "hooks": {5 "hooks": {
5 "@APP_NAME@": {6 "shorts": {
6 "apparmor": "apparmor.json",7 "apparmor": "shorts.apparmor",
7 "desktop": "@DESKTOP_FILE@"8 "desktop": "@DESKTOP_FILE@"
8 }9 }
9 },10 },
1011
=== renamed file 'click/apparmor.json' => 'click/shorts.apparmor'
=== modified file 'debian/rules'
--- debian/rules 2014-01-31 21:23:34 +0000
+++ debian/rules 2014-09-23 07:39:30 +0000
@@ -6,3 +6,6 @@
66
7%:7%:
8 dh $@8 dh $@
9
10override_dh_auto_configure:
11 dh_auto_configure -- -DCLICK_MODE=OFF
912
=== added file 'feeds/CMakeLists.txt'
--- feeds/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ feeds/CMakeLists.txt 2014-09-23 07:39:30 +0000
@@ -0,0 +1,4 @@
1file(GLOB FEEDS_QML_JS_FILES *.qml *.js)
2
3# make the files visible in the qtcreator tree
4add_custom_target(ubuntu-rssreader-app_feeds_QMlFiles ALL SOURCES ${FEEDS_QML_JS_FILES})

Subscribers

People subscribed via source and target branches