summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-07-02 16:35:50 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-07-02 16:38:13 +0200
commit9dd077e2adf6a786472bbdcb2bacdca863443f2f (patch)
tree8704e754b4cab1fc33e24f8ec992435b25eb0069
parentcd20dbba5feb9f6e44860100650f9b0f8007ba53 (diff)
qt5_tool: Adapt to buildsystem branch
- Remove Windows workaround (copying of profiles). - Remove call to obsoleted 'build' script. Change-Id: I00e754d9a9780a96e1d578f09d855e63da34f5ac Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
-rwxr-xr-xbin/qt5_tool29
1 files changed, 4 insertions, 25 deletions
diff --git a/bin/qt5_tool b/bin/qt5_tool
index fda56eb..4934de0 100755
--- a/bin/qt5_tool
+++ b/bin/qt5_tool
@@ -859,7 +859,9 @@ if ( $UPDATE != 0 ) {
if ( $BUILD != 0 ) {
print 'Building Qt 5 in ',$rootDir,"\n";
winRemoveGitFromPath() if $minGW;
- my @configureArguments = ('-prefix', File::Spec->catfile($rootDir, 'qtbase'));
+ my $developerBuild = readQt5ToolConfigBool($developerBuildConfigKey);
+ my @configureArguments;
+ push(@configureArguments, '-prefix', File::Spec->catfile($rootDir, 'qtbase')) unless $developerBuild;
my $configureArgumentsFromConfig = readQt5ToolConfig('configureArguments');
push(@configureArguments, split(/ /, $configureArgumentsFromConfig)) unless $configureArgumentsFromConfig eq '';
# --- Shadow builds: Remove and re-create directory
@@ -875,24 +877,6 @@ if ( $BUILD != 0 ) {
# ---- Configure and build
my $brc = execute(File::Spec->catfile($rootDir, 'configure'), @configureArguments);
die 'Configure failed' if ($brc);
-# --- Workaround: The module .pri files are currently (as of 30.9.2011) not copied to their
-# target location on Windows.
- if ($os == $OS_WINDOWS) {
- my $targetProfileFolder = File::Spec->catfile($rootDir, 'qtbase', 'mkspecs', 'modules');
- foreach my $module (@MODULES) {
- my $sourceProfilePattern = File::Spec->catfile($rootDir, $module, 'modules' , '*.pri');
- foreach my $sourceProfile (glob($sourceProfilePattern)) {
- my $baseName = basename($sourceProfile);
- if (index($baseName, 'jsondb') < 0 && index($baseName, 'compositor') < 0) {
- my $target = File::Spec->catfile($targetProfileFolder, basename($sourceProfile));
- if ( ! -f $target) {
- print 'Workaround: Copying ', $sourceProfile, ' to ',$target,"\n";
- File::Copy::copy($sourceProfile, $targetProfileFolder) or die ('Copy error '. $!);
- }
- }
- }
- }
- }
} # BUILD
if ( $BUILD + $MAKE != 0) {
@@ -904,12 +888,7 @@ if ( $BUILD + $MAKE != 0) {
}
}
# Run a global make for non-shadow developer build, else call 'build'.
- if (readQt5ToolConfigBool($developerBuildConfigKey) && $makeShadowBuildDir eq '') {
- executeCheck($make, @makeArgs);
- } else {
- setMakeEnvironment($make, @makeArgs);
- executeCheck('perl', 'build');
- }
+ executeCheck($make, @makeArgs);
} # MAKE
if ( $BUILD_WEBKIT != 0) {