diff options
Diffstat (limited to 'share/qbs/modules/cpp/ponyphone.qbs')
-rw-r--r-- | share/qbs/modules/cpp/ponyphone.qbs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/ponyphone.qbs b/share/qbs/modules/cpp/ponyphone.qbs new file mode 100644 index 000000000..e7ea9dfe4 --- /dev/null +++ b/share/qbs/modules/cpp/ponyphone.qbs @@ -0,0 +1,28 @@ +/* + Giddyup, pony pony pony! + + How to setup this crazy horsey platform? + - install the pony SDK + - call the following + qbs config --global ponyphone/substitute theLittlePrancingPony + qbs config --global ponyphone/sdkInstallPath ~/theLittlePrancingPonySDK + - stand up and sing the Mr. Ed theme song! +*/ + +import qbs.base 1.0 + +GenericGCC { + property string substitute: qbs.configurationValue('ponyphone/substitute') + + condition: qbs.hostOS == 'linux' && qbs.targetOS == 'linux' && qbs.toolchain == 'gcc' && qbs.platform == 'ponyphone' + + toolchainPrefix: { + if (architecture == 'i586') + return architecture + '-' + substitute + '-linux-' + else if (architecture == 'armv7hl') + return architecture + '-' + substitute + '-linux-gnueabi-' + throw "unknown target architecture: " + architecture + } + toolchainInstallPath: qbs.configurationValue('ponyphone/sdkInstallPath') + "/" + substitute + "/" + architecture + "/toolchain/bin" +} + |