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 qbsSearchPaths: ["qbs"] 0021 0022 references: [ 0023 "tools/tools.qbs", 0024 "extensions/extensions.qbs" 0025 ] 0026 0027 AutotestRunner { 0028 environment: { 0029 var env = base; 0030 env.push("QML2_IMPORT_PATH=" + cutehmi.dirs.installDir + "/" + cutehmi.dirs.extensionsInstallSubdir); 0031 0032 env.push("QBS_INSTALL_ROOT=" + qbs.installRoot); 0033 0034 if (qbs.hostOS.contains("windows") && qbs.targetOS.contains("windows")) { 0035 var path = ""; 0036 for (var i = 0; i < env.length; ++i) { 0037 if (env[i].startsWith("PATH=")) { 0038 path = env[i].substring(5); 0039 break; 0040 } 0041 } 0042 path = Qt.core.binPath + ";" + path; 0043 var arrayElem = "PATH=" + path; 0044 if (i < env.length) 0045 env[i] = arrayElem; 0046 else 0047 env.push(arrayElem); 0048 } 0049 0050 if (qbs.hostOS.contains("darwin") && qbs.targetOS.contains("darwin")) { 0051 env.push("DYLD_FRAMEWORK_PATH=" + Qt.core.libPath); 0052 env.push("DYLD_LIBRARY_PATH=" + Qt.core.libPath); 0053 } 0054 0055 return env; 0056 } 0057 0058 Depends { name: "Qt.core" } 0059 0060 Depends { name: "cutehmi.dirs" } 0061 } 0062 }