diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2012-07-31 13:12:26 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-01 01:27:21 +0200 |
commit | 8d79031140f2c963c5c1ffa5b613e30bcdd8f548 (patch) | |
tree | f70bb6376178aee2265ae84b91eb3d9ce19a5ac5 /scripts/qt | |
parent | 4c50b466be676b3b84ddc205d158b1115b0cd3d5 (diff) |
qtmod_test.pl: removed obsolete install logic
`configure && make && make install' in the qt5 repository works fine for
a while now, including for shadow builds, so remove the logic for building
and installing together in a single step.
Change-Id: I15dc9e3df503072b365ccc8de9005ed81f83d77e
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'scripts/qt')
-rwxr-xr-x | scripts/qt/qtmod_test.pl | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/scripts/qt/qtmod_test.pl b/scripts/qt/qtmod_test.pl index 82711ef2..e575d6b8 100755 --- a/scripts/qt/qtmod_test.pl +++ b/scripts/qt/qtmod_test.pl @@ -936,20 +936,11 @@ sub run_compile chdir( $qt_build_dir ); - # is this shadow build with installation enabled? - if ($qt_make_install && $qt_dir ne $qt_build_dir) { - $self->{ shadow_build_with_install_enabled } = 1; - } - my @make_args = split(/ /, $make_args); my @commands; if (($self->{'qt.gitmodule'} eq 'qt5') or ($self->{'qt.gitmodule'} eq 'qt')) { # Building qt5 or qt4; just do a `make' of all default targets in the top-level makefile. - if ($self->{ shadow_build_with_install_enabled }) { - # shadow build and installing? need to build & install together - push @make_args, 'install'; - } push @commands, sub { $self->exe( $make_bin, @make_args ) }; } elsif ($module_in_qt5) { @@ -980,20 +971,6 @@ sub run_compile # and all deps, as parallel as possible. my $make_target = "module-$qt_gitmodule"; - if ($self->{ shadow_build_with_install_enabled }) { - # shadow build and installing? - # Then we first install, then do another make to catch anything not - # covered by install (e.g. subdirs with no_default_install). - # Note that we have to do it in this unintuitive order because we need to ensure - # that e.g. qtbase is installed before we attempt to compile the modules which - # depend on qtbase. - my $make_install_target = "$make_target-install_subtargets"; - push @commands, sub { - $self->exe( $make_bin, @make_args, $make_install_target ); - $self->{ installed } = 1; - }; - } - push @commands, sub { $self->exe( $make_bin, @make_args, $make_target ) }; } else { @@ -1003,13 +980,8 @@ sub run_compile # The Makefile generated in qt5 doesn't know anything about this module. # First, we build all deps: - my $target_suffix = ''; - if ($self->{ shadow_build_with_install_enabled }) { - # In this configuration, we don't just need to build, but also install - $target_suffix = '-install_subtargets'; - } my %dependencies = $self->read_dependencies( "$qt_gitmodule_dir/sync.profile" ); - my @module_targets = map { "module-$_$target_suffix" } keys %dependencies; + my @module_targets = map { "module-$_" } keys %dependencies; push @commands, sub { $self->exe( $make_bin, @make_args, @module_targets ) }; if (! -e $qt_gitmodule_build_dir) { @@ -1028,20 +1000,12 @@ sub run_compile push @qmake_args, map { "QT_BUILD_PARTS+=$_" } @OPTIONAL_BUILD_PARTS; } push @commands, sub { $self->exe( - $self->{ shadow_build_with_install_enabled } ? $qmake_install_bin : $qmake_bin, + $qmake_bin, $qt_gitmodule_dir, @qmake_args ) }; - if ($self->{ shadow_build_with_install_enabled }) { - push @commands, sub { - $self->exe( $make_bin, @make_args, 'install' ); - $self->{ installed } = 1; - }; - } - else { - push @commands, sub { $self->exe( $make_bin, @make_args ) }; - } + push @commands, sub { $self->exe( $make_bin, @make_args ) }; } foreach my $command (@commands) { @@ -1064,12 +1028,6 @@ sub run_install my $qt_gitmodule_dir= $self->{ 'qt.gitmodule.dir' }; my $qt_make_install = $self->{ 'qt.make_install' }; - # if shadow_build_with_install_enabled true, no need to install anymore. - if ($self->{ shadow_build_with_install_enabled }) { - warn __PACKAGE__ . ": installation was included in the build process.\n"; - return; - } - return if (!$qt_make_install); chdir( $qt_build_dir ); |