diff options
| author | Samuli Piippo <samuli.piippo@qt.io> | 2016-12-28 16:06:59 +0200 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@qt.io> | 2017-01-05 13:50:12 +0000 |
| commit | bd2ee586786cb4aebeab9fcfc53f6ab1994887fb (patch) | |
| tree | c59f79bf3cdb964d055c74b680a5432095f3b8db /scripts/configure-qtcreator.sh | |
| parent | 6b7454d0b43888e4dac09693c674ee712638e27c (diff) | |
| download | meta-boot2qt-bd2ee586786cb4aebeab9fcfc53f6ab1994887fb.tar.gz | |
Update qtcreator configure script
Using new sdktool interfaces for <LANG>toolchain and debugger.
Change-Id: I0ddd788feba74280bda760826dd154a284ea9979
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'scripts/configure-qtcreator.sh')
| -rwxr-xr-x | scripts/configure-qtcreator.sh | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/scripts/configure-qtcreator.sh b/scripts/configure-qtcreator.sh index 22fd7ce..0ebbe55 100755 --- a/scripts/configure-qtcreator.sh +++ b/scripts/configure-qtcreator.sh | |||
| @@ -97,7 +97,9 @@ BASEID="byos.${RELEASE}.${MACHINE}" | |||
| 97 | 97 | ||
| 98 | ${SDKTOOL} rmKit --id ${BASEID}.kit 2>/dev/null || true | 98 | ${SDKTOOL} rmKit --id ${BASEID}.kit 2>/dev/null || true |
| 99 | ${SDKTOOL} rmQt --id ${BASEID}.qt || true | 99 | ${SDKTOOL} rmQt --id ${BASEID}.qt || true |
| 100 | ${SDKTOOL} rmTC --id ProjectExplorer.ToolChain.Gcc:${BASEID}.tc || true | 100 | ${SDKTOOL} rmTC --id ProjectExplorer.ToolChain.Gcc:${BASEID}.gcc || true |
| 101 | ${SDKTOOL} rmTC --id ProjectExplorer.ToolChain.Gcc:${BASEID}.g++ || true | ||
| 102 | ${SDKTOOL} rmDebugger --id ${BASEID}.gdb || true | ||
| 101 | 103 | ||
| 102 | if [ -n "${REMOVEONLY}" ]; then | 104 | if [ -n "${REMOVEONLY}" ]; then |
| 103 | echo "Kit removed: ${NAME}" | 105 | echo "Kit removed: ${NAME}" |
| @@ -105,10 +107,25 @@ if [ -n "${REMOVEONLY}" ]; then | |||
| 105 | fi | 107 | fi |
| 106 | 108 | ||
| 107 | ${SDKTOOL} addTC \ | 109 | ${SDKTOOL} addTC \ |
| 108 | --id "ProjectExplorer.ToolChain.Gcc:${BASEID}.tc" \ | 110 | --id "ProjectExplorer.ToolChain.Gcc:${BASEID}.gcc" \ |
| 109 | --name "GCC (${NAME})" \ | 111 | --name "GCC (${NAME})" \ |
| 110 | --path "$(type -p ${OE_QMAKE_CXX})" \ | 112 | --path "$(type -p ${CC})" \ |
| 111 | --abi "${ABI}" | 113 | --abi "${ABI}" \ |
| 114 | --language 1 | ||
| 115 | |||
| 116 | ${SDKTOOL} addTC \ | ||
| 117 | --id "ProjectExplorer.ToolChain.Gcc:${BASEID}.g++" \ | ||
| 118 | --name "G++ (${NAME})" \ | ||
| 119 | --path "$(type -p ${CXX})" \ | ||
| 120 | --abi "${ABI}" \ | ||
| 121 | --language 2 | ||
| 122 | |||
| 123 | ${SDKTOOL} addDebugger \ | ||
| 124 | --id "${BASEID}.gdb" \ | ||
| 125 | --name "GDB (${NAME})" \ | ||
| 126 | --engine 1 \ | ||
| 127 | --binary "$(type -p ${GDB})" \ | ||
| 128 | --abis "${ABI}" | ||
| 112 | 129 | ||
| 113 | ${SDKTOOL} addQt \ | 130 | ${SDKTOOL} addQt \ |
| 114 | --id "${BASEID}.qt" \ | 131 | --id "${BASEID}.qt" \ |
| @@ -120,11 +137,11 @@ ${SDKTOOL} addKit \ | |||
| 120 | --id "${BASEID}.kit" \ | 137 | --id "${BASEID}.kit" \ |
| 121 | --name "${NAME}" \ | 138 | --name "${NAME}" \ |
| 122 | --qt "${BASEID}.qt" \ | 139 | --qt "${BASEID}.qt" \ |
| 123 | --debuggerengine "1" \ | 140 | --debuggerid "${BASEID}.gdb" \ |
| 124 | --debugger "$(type -p ${GDB})" \ | ||
| 125 | --sysroot "${SDKTARGETSYSROOT}" \ | 141 | --sysroot "${SDKTARGETSYSROOT}" \ |
| 126 | --devicetype "Boot2Qt.HwDevice" \ | 142 | --devicetype "Boot2Qt.HwDevice" \ |
| 127 | --toolchain "ProjectExplorer.ToolChain.Gcc:${BASEID}.tc" \ | 143 | --Ctoolchain "ProjectExplorer.ToolChain.Gcc:${BASEID}.gcc" \ |
| 144 | --Cxxtoolchain "ProjectExplorer.ToolChain.Gcc:${BASEID}.g++" \ | ||
| 128 | --icon ":/boot2qt/images/B2Qt_QtC_icon.png" \ | 145 | --icon ":/boot2qt/images/B2Qt_QtC_icon.png" \ |
| 129 | --mkspec "${MKSPEC}" | 146 | --mkspec "${MKSPEC}" |
| 130 | 147 | ||
