diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-12-07 09:22:12 +1000 |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-12-07 09:22:12 +1000 |
commit | baa8893bff8bc7c38a2326522be837dab233820c (patch) | |
tree | 9e297a225996918f6b60837d6997c64b9167f6b3 /bin | |
parent | 95f056c2ee03c3ebf68aaafb681a29bb66fd505a (diff) | |
parent | 0717ed93ab1455d7f1c5237b0dc4118e07bf1655 (diff) |
Merge remote branch 'origin/1.1' into master-from-1.1
Conflicts:
doc/src/examples/declarative-sfw-dialer.qdoc
examples/declarative-sfw-dialer/declarative-sfw-dialer/qmldialer.cpp
examples/declarative-sfw-notes/qmlnotes.cpp
Diffstat (limited to 'bin')
-rw-r--r--[-rwxr-xr-x] | bin/compilercheck.pl (renamed from bin/purge.sh) | 46 | ||||
-rw-r--r-- | bin/syncheaders.bat | 40 |
2 files changed, 41 insertions, 45 deletions
diff --git a/bin/purge.sh b/bin/compilercheck.pl index 58aad74f94..b5eaa74c73 100755..100644 --- a/bin/purge.sh +++ b/bin/compilercheck.pl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/perl ############################################################################# ## ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). @@ -40,7 +40,43 @@ ## ############################################################################# -make clean -rm -f config.pri -find . -name "Makefile*" |xargs rm -rm -rf build include install bin/examples lib +# use module + +my $result = `sbs --query=config[armv5_urel] 2>&1`; +my $count = length($result); +my $idx = index($result, "arm.v5.urel.rvct"); + +print "check sbs release armv5 default compiler...\n"; +if ($idx > 0 && $count > ($idx + 20)){ + $version_hig = substr($result, $idx+16, 1); + $version_low = substr($result, $idx+18, 1); + print "- sbs default release armv5 compiler found: RVCT" . $version_hig . "." . $version_low . "\n"; + + # check if RVCT in sbs config is < 4.0 + if($version_hig < 4 && $version_hig >= 2){ + #check installed ARM compiler version + $result = `armcc 2>&1`; + if( index($result, "RVCT") > 0){ + $idx = index($result, "."); + $rvctversion_hig = substr($result, $idx-1, 1); + $rvctversion_low = substr($result, $idx+1, 1); + print "- installed RVCT compiler: RVCT". $rvctversion_hig . "." . $rvctversion_low . "\n"; + #check if installed RVCT is >= 4.0 + if( $rvctversion_hig >= 4){ + #check if the variable QT_RVCT_VERSION is set to the rvct version + $qtvarval = $ENV{'QT_RVCT_VERSION'}; + $qtvarshould = $rvctversion_hig. "." .$rvctversion_low; + if((length($qtvarval) <= 0) || ($qtvarshould != $qtvarval)){ + print "- Please set enviroment variable QT_RVCT_VERSION="; + print "$rvctversion_hig.$rvctversion_low and run configure again!!!\n"; + } + } + } + else{ + print "- OK\n"; + } + } +} +else{ + print "- OK\n"; +} diff --git a/bin/syncheaders.bat b/bin/syncheaders.bat deleted file mode 100644 index 742be362a8..0000000000 --- a/bin/syncheaders.bat +++ /dev/null @@ -1,40 +0,0 @@ -::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: -:: Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). -:: All rights reserved. -:: Contact: Nokia Corporation (qt-info@nokia.com) -:: -:: This file is part of the Qt Mobility Components. -:: -:: $QT_BEGIN_LICENSE:LGPL$ -:: No Commercial Usage -:: This file contains pre-release code and may not be distributed. -:: You may use this file in accordance with the terms and conditions -:: contained in the Technology Preview License Agreement accompanying -:: this package. -:: -:: GNU Lesser General Public License Usage -:: Alternatively, this file may be used under the terms of the GNU Lesser -:: General Public License version 2.1 as published by the Free Software -:: Foundation and appearing in the file LICENSE.LGPL included in the -:: packaging of this file. Please review the following information to -:: ensure the GNU Lesser General Public License version 2.1 requirements -:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -:: -:: In addition, as a special exception, Nokia gives you certain additional -:: rights. These rights are described in the Nokia Qt LGPL Exception -:: version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -:: -:: If you have questions regarding the use of this file, please contact -:: Nokia at qt-info@nokia.com. -:: -:: -:: -:: -:: -:: -:: -:: -:: $QT_END_LICENSE$ -:: -::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |