/**************************************************************************** ** ** Copyright (C) 2021 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$ ** ****************************************************************************/ // constructor function Component() { } Component.prototype.createOperations = function() { component.createOperations(); var sdpDirectoryPath = installer.value("QNX710_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_qnx710_qcc_x86_64", "--language", "C", "--name", "QCC (gcc) for QNX 7.1.0 x86-64", "--path", installer.toNativeSeparators(sdpQnxHostPath + "/usr/bin/qcc" + sdpQnxToolsExtension), "--abi", "x86-qnx-generic-elf-64bit", "--supportedAbis", "x86-qnx-generic-elf-64bit", "Qnx.QnxToolChain.NDKPath", "QString:" + installer.toNativeSeparators(sdpDirectoryPath), "UNDOEXECUTE", "@SDKToolBinary@", "rmTC", "--id", "Qnx.QccToolChain:opt_qnx710_qcc_x86_64"]); // add QCC (QNX SDP) to QtCreator component.addOperation("Execute", ["@SDKToolBinary@", "addTC", "--id", "Qnx.QccToolChain:opt_qnx710_qcc_x86_64.g++", "--language", "Cxx", "--name", "QCC (g++) for QNX 7.1.0 x86-64", "--path", installer.toNativeSeparators(sdpQnxHostPath + "/usr/bin/qcc" + sdpQnxToolsExtension), "--abi", "x86-qnx-generic-elf-64bit", "--supportedAbis", "x86-qnx-generic-elf-64bit", "Qnx.QnxToolChain.NDKPath", "QString:" + installer.toNativeSeparators(sdpDirectoryPath), "UNDOEXECUTE", "@SDKToolBinary@", "rmTC", "--id", "Qnx.QccToolChain:opt_qnx710_qcc_x86_64.g++"]); // add QCC Debugger (QNX SDP) to QtCreator component.addOperation("Execute", ["@SDKToolBinary@", "addDebugger", "--id", "opt_qnx710_debugger_x86_64", "--name", "Debugger for QNX 7.1.0 x86-64", "--engine", "1", "--binary", installer.toNativeSeparators(sdpQnxHostPath + "/usr/bin/ntox86_64-gdb" + sdpQnxToolsExtension), "--abis", "x86-qnx-generic-elf-64bit", "Version", "QString:7.1.0", "UNDOEXECUTE", "@SDKToolBinary@", "rmDebugger", "--id", "opt_qnx710_debugger_x86_64"]); }