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

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 :

>  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:
>
>  c:\workspace\mygame\Home
> c:\workspace\mygame\Home\media
>  c:\workspace\mygame\Home\media\bmps
>  c:\workspace\mygame\Home\media\bmps\.
>  c:\workspace\mygame\Home\media\bmps\.\.
>  c:\workspace\mygame\Home\media\sounds
>  c:\workspace\mygame\Home\other\
>  etc
>
>  is it possible to say I want everything under the
> c:\workspace\mygame\Home folder?
>
>  If I have lots and lots of sounds, images, fonts etc it's getting .
> (I cannot find a polite word to use) to manually add each and every file,
> something is going to get lost
>
>
> ___
> SailfishOS.org Devel mailing list
>
>
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

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:

c:\workspace\mygame\Home
c:\workspace\mygame\Home\media
c:\workspace\mygame\Home\media\bmps
c:\workspace\mygame\Home\media\bmps\.
c:\workspace\mygame\Home\media\bmps\.\.
c:\workspace\mygame\Home\media\sounds
c:\workspace\mygame\Home\other\
etc

is it possible to say I want everything under the 
c:\workspace\mygame\Home folder?


If I have lots and lots of sounds, images, fonts etc it's getting 
. (I cannot find a polite word to use) to manually add each and 
every file, something is going to get lost



___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

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 = 
example_name.path = 
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 :

> 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
> c:\workspace\mygame\Home\media\bmps\.
> c:\workspace\mygame\Home\media\bmps\.\.
> c:\workspace\mygame\Home\media\sounds
> c:\workspace\mygame\Home\other\
> etc
>
> is it possible to say I want everything under the c:\workspace\mygame\Home
> folder?
>
> If I have lots and lots of sounds, images, fonts etc it's getting . (I
> cannot find a polite word to use) to manually add each and every file,
> something is going to get lost
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

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
c:\workspace\mygame\Home\media\bmps\.
c:\workspace\mygame\Home\media\bmps\.\.
c:\workspace\mygame\Home\media\sounds
c:\workspace\mygame\Home\other\
etc

is it possible to say I want everything under the c:\workspace\mygame\Home
folder?

If I have lots and lots of sounds, images, fonts etc it's getting . (I
cannot find a polite word to use) to manually add each and every file,
something is going to get lost
___
SailfishOS.org Devel mailing list

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 GMT+01:00 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 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
>>
>
>
___
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 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
>
___
SailfishOS.org Devel mailing list

[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