[SailfishDevel] Sharing version number (and other constants?) between .yaml/spec, .pro and .cpp/.qml

Artem Marchenko artem.marchenko at gmail.com
Fri Dec 6 23:26:32 UTC 2013


P.S.
Oh well, super ideal version would pull tag from git into both .pro and
.yaml, but I guess that is impossible without the custom scripts.


On Sat, Dec 7, 2013 at 1:25 AM, Artem Marchenko
<artem.marchenko at gmail.com>wrote:

> Just what I was looking for. Thanks, Robin!
>
> Cheers,
> Artem.
>
>
> On Sat, Dec 7, 2013 at 12:50 AM, Robin Burchell <robin.burchell at jolla.com>wrote:
>
>>  https://github.com/nemomobile/mlite/blob/master/rpm/mlite-qt5.yaml#L20
>> gives you
>> https://github.com/nemomobile/mlite/blob/master/rpm/mlite-qt5.spec#L60
>>
>>  if you want to go all out gung-ho with automation, you can also do
>> something like
>> https://github.com/nemomobile/mlite/blob/master/src/src.pro#L3 in your
>> project file for local builds.
>>
>>  On 06 Dec 2013, at 23:45, Artem Marchenko <artem.marchenko at gmail.com>
>> wrote:
>>
>>  Hi All
>>
>>  Does anybody know a way to share constants between .yaml and any other
>> project file (preferably .pro, but any other way would do as well)?
>>
>>  I sort of got tired to duplicate version numbers in .yaml and app's
>> about dialog :)
>> Writing app description in one place only would've been good too.
>>
>>  Best regards,
>> Artem.
>>
>>  --
>> Artem Marchenko
>> http://agilesoftwaredevelopment.com
>> http://twitter.com/AgileArtem
>>  _______________________________________________
>> SailfishOS.org Devel mailing list
>>
>>
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>>
>
>
>
> --
> Artem Marchenko
> http://agilesoftwaredevelopment.com
> http://twitter.com/AgileArtem
>



-- 
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131207/b5966172/attachment.html>


More information about the Devel mailing list