← Back to team overview

ubuntu-touch-coreapps team mailing list archive

Re: Enabling Cmake for all the core apps

 

Well, this took much longer than I expected, but cmake is now enabled for all the core apps. Cmake wizards please feel free to flail me for anything non-optimal, there is always room for improvement.

On that note, while generating the cmakelists for each app, I noticed that clock has laid out it's qml rather nicely making it very easy to make a build file for it. Namely, the main qml was in the main directory, with all other qml files nested under seperate subdirs. Inside the main qml, an import to each subdir was given, very easy layout to follow. I'd encourage you to consider keeping your projects clean and easy to build going forward.

Also of note, as part of creating the build, I finished the partial rename of ubuntu-rssreader to shorts-app. The test suite has been updated and the everything should continue to work as usual. Note that I've asked CI to reflect this name change; https://bugs.launchpad.net/ubuntu-ci-services-itself/+bug/1279643. Until they update the test runner, by default it's going to fail to merge. There are no pending merges and this should be a simple matter to update. If you run into an error before the runner is updated, simply ping myself (balloons).

Speaking of building, you can now easily build click packages and ready them for deployment to your device. Check out click-buddy in the phablet-tools package. It's now possible to do something like this;

bzr branch lp:ubuntu-clock-app
cd ubuntu-clock-app
click-buddy --dir .
or
click-buddy --dir . --provision

The --provision will push the click package to the device and ready it to run tests. Both will build a click package in the base directory. Enjoy your cmake goodness!


Nicholas

On 01/31/2014 05:03 PM, Nicholas Skaggs wrote:
Today I decided to finish bringing the cmake and click-buddy goodness to the rest of the core apps. Sergio had started with a couple apps; namely calculator and calendar.

If you pull calculator or calendar and want to build or test the click package for it it's as simple as using click-buddy (comes as part of phablet-tools package).

For the other core apps, I've sent merge requests that should also enable them for cmake goodness. Please double-check my work before merging, jenkins might yet complain about some as well; not everything is completely straightforward. In some cases I tried to clean up naming, etc. Enjoy the new build goodness :-)

music
https://code.launchpad.net/~nskaggs/music-app/add-cmake/+merge/204345

file-manager
https://code.launchpad.net/~nskaggs/ubuntu-filemanager-app/add-cmake/+merge/204333

clock
https://code.launchpad.net/~nskaggs/ubuntu-clock-app/add-cmake/+merge/204326

weather
https://code.launchpad.net/~nskaggs/ubuntu-weather-app/add-cmake/+merge/204349

rss-reader
https://code.launchpad.net/~nskaggs/ubuntu-rssreader-app/add-cmake/+merge/204352

terminal
https://code.launchpad.net/~nskaggs/ubuntu-terminal-app/add-cmake/+merge/204356

I have a sneaking feeling I've missed some core apps in here as well, so I'll have a review again to make sure everyone is migrated and write more about using click-buddy.

Happy New Year!

Nicholas


Follow ups

References