[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#769375: RFS: lightmdeditor/1.0-2 [ITP]



Am Samstag, den 13.12.2014, 23:27 +0530 schrieb Bhavyanshu Parasher:
> This is a Qt based software. During the build process the resources
> are compiled into the binary using the qrc file. I am not sure how
> would I do what you suggested in this particular case. Any suggestions
> would be helpful. 

You need to convince qmake to convert the hi-res file to the final
version during build. Or, work around qmake if that is not feasible.
 
Ideas: (I never used qmake so there might be others as well; absolutly
not tested)
- Add customs rules to your qmake setup: I could find some references on
the new how to do that, e.g. [1]. I saw also a possibility to call a
"standard" (GNU-) Makefiles [2] and also scripts [3].
Pay attention to clean the generated files in a clean target. 

- Not preferred, but you also can convert it in a script, and override
the build rule in debian/rules to run this script before make.


[1]
http://doc.qt.io/qt-5/qmake-advanced-usage.html#adding-custom-targets

[2]
http://stackoverflow.com/questions/3776476/how-to-add-custom-targets-in-a-qmake-generated-makefile

[3]
http://stackoverflow.com/questions/3612283/running-a-program-script-from-qmake

Also the last example in
http://doc.qt.io/qt-5/qmake-advanced-usage.html#adding-custom-targets
however, be aware that the title of the page is "undocumented features"


Reply to: