Warning, /sdk/cutehmi/CuteHMI.qbs is written in an unsupported language. File is not indexed.

0001 import qbs
0002 
0003 Project {
0004         minimumQbsVersion: "1.19"
0005 
0006         property bool buildExtensions: true
0007 
0008         property bool buildTests: false
0009 
0010         property bool buildTools: true
0011 
0012         property bool staticExtensions: false
0013 
0014         property bool buildApk: false
0015 
0016         property bool buildBinaries: true
0017 
0018         property bool windeployqt: false
0019 
0020         property string extensionsSubdir: "extensions"
0021 
0022         property string toolsSubdir: "tools"
0023 
0024         qbsSearchPaths: ["qbs"]
0025 
0026         references: [
0027                 toolsSubdir + "/tools.qbs",
0028                 extensionsSubdir + "/extensions.qbs"
0029         ]
0030 
0031         AutotestRunner {
0032                 environment: {
0033                         var env = base;
0034                         env.push("QML2_IMPORT_PATH=" + cutehmi.dirs.installDir + "/" + cutehmi.dirs.extensionsInstallSubdir);
0035 
0036                         env.push("QBS_INSTALL_ROOT=" + qbs.installRoot);
0037 
0038                         if (qbs.hostOS.contains("windows") && qbs.targetOS.contains("windows")) {
0039                                 var path = "";
0040                                 for (var i = 0; i < env.length; ++i) {
0041                                         if (env[i].startsWith("PATH=")) {
0042                                                 path = env[i].substring(5);
0043                                                 break;
0044                                         }
0045                                 }
0046                                 path = Qt.core.binPath + ";" + path;
0047                                 var arrayElem = "PATH=" + path;
0048                                 if (i < env.length)
0049                                         env[i] = arrayElem;
0050                                 else
0051                                         env.push(arrayElem);
0052                         }
0053 
0054                         if (qbs.hostOS.contains("darwin") && qbs.targetOS.contains("darwin")) {
0055                                 env.push("DYLD_FRAMEWORK_PATH=" + Qt.core.libPath);
0056                                 env.push("DYLD_LIBRARY_PATH=" + Qt.core.libPath);
0057                         }
0058 
0059                         return env;
0060                 }
0061 
0062                 Depends { name: "Qt.core" }
0063 
0064                 Depends { name: "cutehmi.dirs" }
0065         }
0066 }