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
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
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
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
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
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:
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
thanks a lot, it worked like a charm.
___
SailfishOS.org Devel mailing list