diff options
author | Iain <qt-info@nokia.com> | 2010-05-14 12:46:52 (GMT) |
---|---|---|
committer | Iain <qt-info@nokia.com> | 2010-05-14 13:16:50 (GMT) |
commit | 217cd535974720ea082f900d9adeb06cca2c530d (patch) | |
tree | 2b3bbce1844989de6199a1802e6eab113285db36 /tools/configure | |
parent | f752b927c6f7115646da7e86209e60e7c17e7d95 (diff) | |
download | Qt-217cd535974720ea082f900d9adeb06cca2c530d.zip Qt-217cd535974720ea082f900d9adeb06cca2c530d.tar.gz Qt-217cd535974720ea082f900d9adeb06cca2c530d.tar.bz2 |
Shadow building on Symbian fixes: part 2 - populate bin dir correctly
Second in a set of fixes for shadow building on Symbian - create links
in the shadow bin dir to the Symbian specific scripts we've added to the
bin directory
Task-number: QTBUG-10432
Reviewed-by: Alessandro Portale
Diffstat (limited to 'tools/configure')
-rw-r--r-- | tools/configure/configureapp.cpp | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index e264426..beaf9bd 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -195,10 +195,37 @@ Configure::Configure( int& argc, char** argv ) } } + // make patch_capabilities and createpackage scripts for Symbian that can be used from the shadow build + QFile patch_capabilities(buildPath + "/bin/patch_capabilities"); + if(patch_capabilities.open(QFile::WriteOnly)) { + QTextStream stream(&patch_capabilities); + stream << "#!/usr/bin/perl -w" << endl + << "require \"" << sourcePath + "/bin/patch_capabilities\";" << endl; + } + QFile patch_capabilities_bat(buildPath + "/bin/patch_capabilities.bat"); + if(patch_capabilities_bat.open(QFile::WriteOnly)) { + QTextStream stream(&patch_capabilities_bat); + stream << "@echo off" << endl + << "call " << fixSeparators(sourcePath) << fixSeparators("/bin/patch_capabilities.bat %*") << endl; + patch_capabilities_bat.close(); + } + QFile createpackage(buildPath + "/bin/createpackage"); + if(createpackage.open(QFile::WriteOnly)) { + QTextStream stream(&createpackage); + stream << "#!/usr/bin/perl -w" << endl + << "require \"" << sourcePath + "/bin/createpackage\";" << endl; + } + QFile createpackage_bat(buildPath + "/bin/createpackage.bat"); + if(createpackage_bat.open(QFile::WriteOnly)) { + QTextStream stream(&createpackage_bat); + stream << "@echo off" << endl + << "call " << fixSeparators(sourcePath) << fixSeparators("/bin/createpackage.bat %*") << endl; + createpackage_bat.close(); + } + // For Windows CE and shadow builds we need to copy these to the // build directory. QFile::copy(sourcePath + "/bin/setcepaths.bat" , buildPath + "/bin/setcepaths.bat"); - //copy the mkspecs buildDir.mkpath("mkspecs"); if(!Environment::cpdir(sourcePath + "/mkspecs", buildPath + "/mkspecs")){ |