ubuntu-touch-coreapps team mailing list archive
-
ubuntu-touch-coreapps team
-
Mailing list archive
-
Message #00705
Re: Enabling Cmake for all the core apps
Hi David, Sergio,
I think David aptly captured what I was trying to convey which is,
before the cmake migration it was much easier to test pure QML apps. Adding
> cmake to the mix now requires a build step that needs to be done outside of
> Qt Creator to generate the .desktop file.
>
Quite frankly I was just a bit frustrated that I couldn't test some of my
local branches on the devices which brings some performance patches to the
clock app, so apologies for that :). I am fine with the additional step of
performing a cmake build to generate the .desktop file before using
Qtcreator to test the application on the device. However that didn't work
either for me. I did the following changes to make it finally on the device
which were,
1. I changed the* com.ubuntu.clock_clock.desktop.in
<http://com.ubuntu.clock_clock.desktop.in>* file to
*ubuntu-clock-app.desktop.in
<http://ubuntu-clock-app.desktop.in> file*
2. Changed the project variable to *(ubuntu-clock-app)* in the
CMAKELIST.txt file
In addition to the step proposed by sergio,
The desktop part can be resolved by changing the
> -set(DESKTOP_FILE "${PROJECT_NAME}_${APP_NAME}.desktop")
> +set(DESKTOP_FILE "${PROJECT_NAME}.desktop")
>
I then cmake CMAKELIST.txt and then proceeded to Ctrl+F12 to test my branch
on the device :). Now I am not so sure what I did is correct or wrong but
it just helped with what I wanted to do which was do a quick test of the
branch on the device.
My final question is *what is the correct method to test an application on
the device*? Am I supposed to use click-buddy to build click packages and
then install them on the phone every time I want to try out a local branch?
If yes, wouldn't I be breaking the current clock app on my phone?
ctrl+12 should be fixed; I would prefer a common workflow for everyone
> instead pure qml which 3 already aren't:
>
> * music
> * terminal
> * file manager
>
Actually music and file manager are also pure QML JS applications like the
clock app. Sure they use external QML C++ plugins such as Nemo and Grillo
however they are not built together with the music or file manager app.
Nemo and Grillo are built as separate packages allowing music and file
manager to just use them.
Cheers,
Nekhelesh
References