/**************************************************************************** ** ** Copyright (C) 2018 The Qt Company Ltd. ** Copyright (C) 2014 BlackBerry Limited. All rights reserved. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the release tools of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3 as published by the Free Software ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** ** $QT_END_LICENSE$ ** ****************************************************************************/ var Dir = new function () { this.toNativeSparator = function (path) { if (installer.value("os") == "win") return path.replace(/\//g, '\\'); return path; } }; // constructor function Component() { } Component.prototype.createOperations = function() { component.createOperations(); var sdpDirectoryPath = installer.value("QNX700_SDP_PATH"); var sdpQnxHostPath = ""; var sdpQnxToolsExtension = ""; if (installer.value("os") == "x11") { sdpQnxHostPath = sdpDirectoryPath + "/host/linux/x86_64"; } if (installer.value("os") == "win") { sdpQnxHostPath = sdpDirectoryPath + "/host/win64/x86_64"; sdpQnxToolsExtension = ".exe"; } // add QCC (QNX SDP) to QtCreator component.addOperation("Execute", ["@SDKToolBinary@", "addTC", "--id", "Qnx.QccToolChain:opt_qnx700_qcc_armv8", "--language", "C", "--name", "QCC (gcc) for QNX 7.0.0 ARMv8", "--path", Dir.toNativeSparator(sdpQnxHostPath + "/usr/bin/qcc" + sdpQnxToolsExtension), "--abi", "arm-linux-generic-elf-64bit", "--supportedAbis", "arm-linux-generic-elf-64bit", "Qnx.QnxToolChain.NDKPath", "QString:" + Dir.toNativeSparator(sdpDirectoryPath), "UNDOEXECUTE", "@SDKToolBinary@", "rmTC", "--id", "Qnx.QccToolChain:opt_qnx700_qcc_armv8"]); // add QCC (QNX SDP) to QtCreator component.addOperation("Execute", ["@SDKToolBinary@", "addTC", "--id", "Qnx.QccToolChain:opt_qnx700_qcc_armv8.g++", "--language", "Cxx", "--name", "QCC (g++) for QNX 7.0.0 ARMv8", "--path", Dir.toNativeSparator(sdpQnxHostPath + "/usr/bin/qcc" + sdpQnxToolsExtension), "--abi", "arm-linux-generic-elf-64bit", "--supportedAbis", "arm-linux-generic-elf-64bit", "Qnx.QnxToolChain.NDKPath", "QString:" + Dir.toNativeSparator(sdpDirectoryPath), "UNDOEXECUTE", "@SDKToolBinary@", "rmTC", "--id", "Qnx.QccToolChain:opt_qnx700_qcc_armv8.g++"]); // add QCC Debugger (QNX SDP) to QtCreator component.addOperation("Execute", ["@SDKToolBinary@", "addDebugger", "--id", "opt_qnx700_debugger_armv8", "--name", "Debugger for QNX 7.0.0 ARMv8", "--engine", "1", "--binary", Dir.toNativeSparator(sdpQnxHostPath + "/usr/bin/ntoaarch64-gdb" + sdpQnxToolsExtension), "--abis", "arm-linux-generic-elf-64bit", "UNDOEXECUTE", "@SDKToolBinary@", "rmDebugger", "--id", "opt_qnx700_debugger_armv8"]); }