[SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Iosif Hamlatzis
I cannot find a way to include my resources for my game. I have a hierarchy of folders for my fonts, images, sounds and settings files, how can I package them so they keep the hierarchy? ___ SailfishOS.org Devel mailing list

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Andrea Bernabei
This is what Qt offers ;) http://qt-project.org/doc/qt-5/resources.html 2014-02-27 19:35 GMT+01:00 Iosif Hamlatzis i.hamlat...@gmail.com: I cannot find a way to include my resources for my game. I have a hierarchy of folders for my fonts, images, sounds and settings files, how can I package

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Andrea Bernabei
given your case (a game) you probably don't want to compile the biggest files inside the binary... so you just bundle those files in your application rpm by modifying the INSTALLS var in your .pro project file More info: https://sailfishos.org/develop-packaging-apps.html 2014-02-27 20:05

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Iosif Hamlatzis
ok thanks and if I am not making a Qt application but just a plain c/c++ application? Is there a way to define just the root of my assets folder? Let's say my tree is: c:\workspace\mygame\Home c:\workspace\mygame\Home\media c:\workspace\mygame\Home\media\bmps

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Andrea Bernabei
if you just want to bundle all the files in one dir, you just add example_name.files = dir example_name.path = output_dir INSTALLS += example_name (this is for the just bundle inside the rpm package case) Read the sailfishos.org page I linked :) 2014-02-27 20:14 GMT+01:00 Iosif Hamlatzis

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Andrey Kozhevnikov
res.files = Home/* res.path = /usr/share/mygame/resourcces INSTALLS += res On 28.02.2014 01:14, Iosif Hamlatzis wrote: ok thanks and if I am not making a Qt application but just a plain c/c++ application? Is there a way to define just the root of my assets folder? Let's say my tree is:

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Marcin M.
Is there no debian/install counterpart in rpm, not to have use qmake INSTALLS? -- Marcin 2014-02-27 20:25 GMT+01:00 Andrey Kozhevnikov coderusin...@gmail.com: res.files = Home/* res.path = /usr/share/mygame/resourcces INSTALLS += res On 28.02.2014 01:14, Iosif Hamlatzis wrote: ok

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Iosif Hamlatzis
thanks a lot, it worked like a charm. ___ SailfishOS.org Devel mailing list