valentina/qbs/modules/ebr/rcc.js

14 lines
369 B
JavaScript
Raw Permalink Normal View History

var Utilities = require("qbs.Utilities");
function fullPath(product)
{
if (Utilities.versionCompare(product.Qt.core.version, "6.1") < 0)
return product.Qt.core.binPath + '/' + product.Qt.core.rccName;
return product.Qt.core.libExecPath + '/' + product.Qt.core.rccName;
}
function bound(min, val, max)
{
return Math.max(min, Math.min(max, val));
}