I sometimes have to write qmake pro file like this:
QMAKE_EXTRA_TARGETS += activate
macos {
clear_cache.commands += defaults write io.delille.$$TARGET activated 1;
}
win32 {
clear_cache.commands += another working command;
}
linux {
clear_cache.commands += echo unsupported;
}
ios {
clear_cache.commands += echo unsupported;
}
Is there a way to have avoid listing all unsupported plateform in a simpler way like most language allow if if
/else if
statement?
Aucun commentaire:
Enregistrer un commentaire