dcourtois / premake-qt

Premake module adding support for Qt to actions (Visual Studio, makefiles, etc.)
Do What The F*ck You Want To Public License
45 stars 11 forks source link

Add options to handle Qt translation tool #25

Closed Jarod42 closed 1 year ago

Jarod42 commented 1 year ago

i.e conversion of .ts -> .qm

No rules added to update ts files themselves (regeneration would be needed for almost any file changes (files containing tr(..), .ui files...). Anyway, translators won't have add anything ;)

Tested on my premake testing repo https://github.com/Jarod42/premake-sample-projects/tree/qt_translate

As usual doesn't works with gmake2.

Jarod42 commented 1 year ago

What happens if I add qtqmgenerateddir "foo/bar" in my project and compile? Does lrelease create output folders as necessary, or does it fail?

As for other qt tools, it fails... but all generators but gmake handle that case internally.

Jarod42 commented 1 year ago

Notice that the per-file configuration has similar issue in premake-core, so I asked https://github.com/premake/premake-core/issues/2048