mirror of
git://code.qt.io/qt/qt5.git
synced 2025-12-25 17:36:13 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c21bee55a5 | ||
|
|
ad03e256c0 | ||
|
|
441527d168 | ||
|
|
62187932be |
@@ -4,27 +4,15 @@
|
||||
# ==[ Details: Describe what changed and explain why it changed ]======|
|
||||
|
||||
|
||||
# Change log entry (see below for instructions).
|
||||
#[ChangeLog][][]
|
||||
|
||||
# ==[ Footers: Uncomment and edit where applicable ]===================|
|
||||
#
|
||||
# One task per entry. Remember space after colon.
|
||||
#Task-number:
|
||||
#
|
||||
# Solicit reviewers. They still need to use the Gerrit frontend.
|
||||
#Reviewed-by:
|
||||
|
||||
# ==[ Please wrap at 72 characters ]===================================|
|
||||
#
|
||||
# Remember to read http://wiki.qt-project.org/Commit_Policy
|
||||
#
|
||||
# Change log entry: If this commit adds a significant feature, fixes an
|
||||
# issue or contains a behavior change that is relevant to others,
|
||||
# add a change log entry. It can be multiple lines long and ends with an
|
||||
# empty newline. Try to integrate it into the flow of the commit message
|
||||
# to avoid redundancy.
|
||||
# Use the module name to indicate the area of the change e.g. [QtCore].
|
||||
# Optionally specify a class or subtopic [QtNetwork][QSslSocket].
|
||||
# Other common tags are: [General], [Important Behavior Changes],
|
||||
# [Platform Specific Changes][Windows][OS X][Linux/XCB].
|
||||
#
|
||||
# [ChangeLog][module][class/topic] description of the really important
|
||||
# change that was just made on several lines.
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,2 @@
|
||||
Makefile
|
||||
.qmake.cache
|
||||
.qmake.super
|
||||
|
||||
21
.gitmodules
vendored
21
.gitmodules
vendored
@@ -28,6 +28,9 @@
|
||||
[submodule "qtdoc"]
|
||||
path = qtdoc
|
||||
url = ../qtdoc.git
|
||||
[submodule "qlalr"]
|
||||
path = qlalr
|
||||
url = ../qlalr.git
|
||||
[submodule "qtrepotools"]
|
||||
path = qtrepotools
|
||||
url = ../qtrepotools.git
|
||||
@@ -70,6 +73,9 @@
|
||||
[submodule "qt3d"]
|
||||
path = qt3d
|
||||
url = ../qt3d.git
|
||||
[submodule "qtjsbackend"]
|
||||
path = qtjsbackend
|
||||
url = ../qtjsbackend.git
|
||||
[submodule "qtimageformats"]
|
||||
path = qtimageformats
|
||||
url = ../qtimageformats.git
|
||||
@@ -88,18 +94,3 @@
|
||||
[submodule "qtx11extras"]
|
||||
path = qtx11extras
|
||||
url = ../qtx11extras.git
|
||||
[submodule "qtmacextras"]
|
||||
path = qtmacextras
|
||||
url = ../qtmacextras.git
|
||||
[submodule "qtwinextras"]
|
||||
path = qtwinextras
|
||||
url = ../qtwinextras.git
|
||||
[submodule "qtandroidextras"]
|
||||
path = qtandroidextras
|
||||
url = ../qtandroidextras.git
|
||||
[submodule "qtenginio"]
|
||||
path = qtenginio
|
||||
url = ../qtenginio.git
|
||||
[submodule "qtwebsockets"]
|
||||
path = qtwebsockets
|
||||
url = ../qtwebsockets.git
|
||||
|
||||
9
README
9
README
@@ -127,13 +127,12 @@ HOW TO BUILD QT5
|
||||
Documentation
|
||||
=============
|
||||
|
||||
After configuring and compiling Qt, building the documentation is possible by running
|
||||
After the configure step, building the documentation is possible by running
|
||||
"make docs".
|
||||
Example:
|
||||
|
||||
After having built the documentation, you need to install it with the following
|
||||
command:
|
||||
|
||||
make install_docs
|
||||
./configure -prefix $PWD/qtbase -opensource
|
||||
make docs
|
||||
|
||||
The documentation is installed in the path set to $QT_INSTALL_DOCS.
|
||||
Running "qmake -query" will list the value of QT_INSTALL_DOCS.
|
||||
|
||||
10
configure
vendored
10
configure
vendored
@@ -53,5 +53,11 @@ mkdir -p qtbase || exit
|
||||
echo "+ cd qtbase"
|
||||
cd qtbase || exit
|
||||
|
||||
echo "+ $configure -top-level $@"
|
||||
exec "$configure" -top-level "$@"
|
||||
echo "+ $configure $@"
|
||||
"$configure" "$@" || exit 1
|
||||
|
||||
echo "+ cd .."
|
||||
cd ..
|
||||
|
||||
echo "+ qtbase/bin/qmake $srcpath"
|
||||
exec qtbase/bin/qmake "$srcpath"
|
||||
|
||||
@@ -52,10 +52,17 @@ if not exist qtbase mkdir qtbase || exit /b 1
|
||||
echo + cd qtbase
|
||||
cd qtbase || exit /b 1
|
||||
|
||||
echo + %configure% -top-level %*
|
||||
call %configure% -top-level %*
|
||||
echo + %configure% %*
|
||||
call %configure% %*
|
||||
set err=%errorlevel%
|
||||
|
||||
cd ..
|
||||
|
||||
if not %err% == 0 goto out
|
||||
|
||||
echo + qtbase\bin\qmake %srcpath%
|
||||
qtbase\bin\qmake %srcpath%
|
||||
set err=%errorlevel%
|
||||
|
||||
:out
|
||||
exit /b %err%
|
||||
|
||||
111
init-repository
111
init-repository
@@ -70,12 +70,6 @@ B<Global options:>
|
||||
Force initialization (even if the submodules are already checked out).
|
||||
|
||||
|
||||
=item --force-hooks
|
||||
|
||||
Force initialization of hooks (even if there are already hooks in checked out
|
||||
submodules).
|
||||
|
||||
|
||||
=item --quiet, -q
|
||||
|
||||
Be quiet. Will exit cleanly if the repository is already initialized.
|
||||
@@ -110,6 +104,8 @@ Skip the `git submodule update' command.
|
||||
Set git config to ignore submodules by default when doing operations on the
|
||||
qt5 repo, such as `pull', `fetch', `diff' etc.
|
||||
|
||||
This option is default for --nokia-developer.
|
||||
|
||||
After using this option, pass `--ignore-submodules=none' to git to override
|
||||
it as needed.
|
||||
|
||||
@@ -120,15 +116,24 @@ B<Repository options:>
|
||||
|
||||
=over
|
||||
|
||||
=item --nokia-developer
|
||||
|
||||
Switch to internal Nokia URLs.
|
||||
|
||||
|
||||
=item --berlin
|
||||
|
||||
Switch to internal URLs and make use of the Berlin git mirrors.
|
||||
Switch to internal Nokia URLs and make use of the Berlin git mirrors.
|
||||
(Implies `--mirror').
|
||||
|
||||
=item --oslo
|
||||
|
||||
Switch to internal URLs and make use of the Oslo git mirrors.
|
||||
(Implies `--mirror').
|
||||
=item --ssh
|
||||
|
||||
Use the SSH protocol for git operations. This may be useful if the git
|
||||
protocol is blocked by a firewall. Note that this requires a user account
|
||||
with an uploaded SSH key on all servers used. (Implies `--nokia-developer').
|
||||
|
||||
The `--ssh' option does not affect the gerrit remotes.
|
||||
|
||||
|
||||
=item --http
|
||||
@@ -200,26 +205,27 @@ use Pod::Usage qw( pod2usage );
|
||||
use Cwd qw( getcwd );
|
||||
|
||||
my %PROTOCOLS = (
|
||||
'internal' => 'git://scm.dev.nokia.troll.no/' ,
|
||||
'ssh' => 'git@scm.dev.nokia.troll.no:' ,
|
||||
'http' => 'http://git.gitorious.org/' ,
|
||||
);
|
||||
|
||||
my %GERRIT_REPOS = map { $_ => "qt/$_" } qw(
|
||||
qt3d
|
||||
qt5
|
||||
qlalr
|
||||
qtactiveqt
|
||||
qtandroidextras
|
||||
qtbase
|
||||
qtconnectivity
|
||||
qtdeclarative
|
||||
qtdoc
|
||||
qtdocgallery
|
||||
qtenginio
|
||||
qtfeedback
|
||||
qtgraphicaleffects
|
||||
qtimageformats
|
||||
qtjsondb
|
||||
qtjsbackend
|
||||
qtlocation
|
||||
qtmacextras
|
||||
qtmultimedia
|
||||
qtpim
|
||||
qtqa
|
||||
@@ -236,28 +242,22 @@ my %GERRIT_REPOS = map { $_ => "qt/$_" } qw(
|
||||
qtwayland
|
||||
qtwebkit
|
||||
qtwebkit-examples
|
||||
qtwebsockets
|
||||
qtwinextras
|
||||
qtx11extras
|
||||
qtxmlpatterns
|
||||
);
|
||||
|
||||
my @DEFAULT_REPOS = qw(
|
||||
qtactiveqt
|
||||
qtandroidextras
|
||||
qtbase
|
||||
qtconnectivity
|
||||
qtdeclarative
|
||||
qtdoc
|
||||
qtenginio
|
||||
qtgraphicaleffects
|
||||
qtimageformats
|
||||
qtmacextras
|
||||
qtjsbackend
|
||||
qtmultimedia
|
||||
qtqa
|
||||
qtquick1
|
||||
qtquickcontrols
|
||||
qtlocation
|
||||
qtrepotools
|
||||
qtscript
|
||||
qtsensors
|
||||
@@ -265,10 +265,8 @@ my @DEFAULT_REPOS = qw(
|
||||
qtsvg
|
||||
qttools
|
||||
qttranslations
|
||||
qtwebsockets
|
||||
qtwebkit
|
||||
qtwebkit-examples
|
||||
qtwinextras
|
||||
qtx11extras
|
||||
qtxmlpatterns
|
||||
);
|
||||
@@ -277,10 +275,7 @@ my $GERRIT_SSH_BASE
|
||||
= 'ssh://@USER@codereview.qt-project.org@PORT@/';
|
||||
|
||||
my $BER_MIRROR_URL_BASE
|
||||
= 'git://hegel/';
|
||||
|
||||
my $OSLO_MIRROR_URL_BASE
|
||||
= 'git://qilin/';
|
||||
= 'git://ber-git.europe.nokia.com/';
|
||||
|
||||
sub new
|
||||
{
|
||||
@@ -318,9 +313,9 @@ sub parse_arguments
|
||||
'codereview-username' => "",
|
||||
'detach-alternates' => 0 ,
|
||||
'force' => 0 ,
|
||||
'force-hooks' => 0 ,
|
||||
'ignore-submodules' => 0 ,
|
||||
'mirror-url' => "",
|
||||
'nokia-developer' => 0 ,
|
||||
'protocol' => "",
|
||||
'update' => 1 ,
|
||||
'webkit' => 1 ,
|
||||
@@ -331,10 +326,10 @@ sub parse_arguments
|
||||
'alternates=s' => \$self->{qw{ alternates }},
|
||||
'codereview-username=s' => \$self->{qw{ codereview-username }},
|
||||
'copy-objects' => \$self->{qw{ detach-alternates }},
|
||||
'force|f' => \$self->{qw{ force }},
|
||||
'force-hooks' => \$self->{qw{ force-hooks }},
|
||||
'force' => \$self->{qw{ force }},
|
||||
'ignore-submodules' => \$self->{qw{ ignore-submodules }},
|
||||
'mirror=s' => \$self->{qw{ mirror-url }},
|
||||
'nokia-developer' => \$self->{qw{ nokia-developer }},
|
||||
'quiet' => \$self->{qw{ quiet }},
|
||||
'update!' => \$self->{qw{ update }},
|
||||
'webkit!' => \$self->{qw{ webkit }},
|
||||
@@ -342,15 +337,26 @@ sub parse_arguments
|
||||
|
||||
'help|?' => sub { pod2usage(1); },
|
||||
'http' => sub { $self->{protocol} = 'http'; },
|
||||
'ssh|ssh-protocol' => sub { $self->{protocol} = 'ssh'; },
|
||||
|
||||
'berlin' => sub {
|
||||
'berlin|berlin-nokia-developer' => sub {
|
||||
$self->{'nokia-developer'} = 1;
|
||||
$self->{'protocol'} = 'internal';
|
||||
$self->{'mirror-url'} = $BER_MIRROR_URL_BASE;
|
||||
},
|
||||
'oslo' => sub {
|
||||
$self->{'mirror-url'} = $OSLO_MIRROR_URL_BASE;
|
||||
|
||||
'nokia-developer' => sub {
|
||||
$self->{'nokia-developer'} = 1;
|
||||
$self->{'protocol'} = 'internal';
|
||||
$self->{'ignore-submodules'} = 1;
|
||||
},
|
||||
) || pod2usage(2);
|
||||
|
||||
if ($self->{'nokia-developer'} && $self->{'protocol'} eq 'http') {
|
||||
print "*** Ignoring use of HTTP protocol, as it's only usable with external server\n";
|
||||
$self->{'protocol'} = '';
|
||||
}
|
||||
|
||||
# Replace any double trailing slashes from end of mirror
|
||||
$self->{'mirror-url'} =~ s{//+$}{/};
|
||||
|
||||
@@ -449,7 +455,12 @@ sub git_set_submodule_config
|
||||
my $value = $2;
|
||||
|
||||
if ($protocol) {
|
||||
# rewrite URL to chosen protocol
|
||||
# qt-labs projects are still hosted under qt internally.
|
||||
if ($protocol ne 'http') {
|
||||
$value =~ s,^git://gitorious\.org/qt-labs/,${url_base_for_protocol}qt/,;
|
||||
}
|
||||
|
||||
# assume all other projects hosted under gitorious publicly.
|
||||
$value =~ s,^git://gitorious\.org/,$url_base_for_protocol,;
|
||||
}
|
||||
|
||||
@@ -584,38 +595,6 @@ sub git_clone_one_submodule
|
||||
return;
|
||||
}
|
||||
|
||||
sub ensure_link
|
||||
{
|
||||
my ($self, $src, $tgt) = @_;
|
||||
return if (!$self->{'force-hooks'} and -f $tgt);
|
||||
unlink($tgt); # In case we have a dead symlink or pre-existing hook
|
||||
print "Aliasing $src\n as $tgt ...\n" if (!$self->{quiet});
|
||||
return if eval { symlink($src, $tgt) };
|
||||
# Windows doesn't do (proper) symlinks. As the post_commit script needs
|
||||
# them to locate itself, we write a forwarding script instead.
|
||||
open SCRIPT, ">".$tgt or die "Cannot create forwarding script $tgt: $!\n";
|
||||
print SCRIPT "#!/bin/sh\nexec `dirname \$0`/$src \"\$\@\"\n";
|
||||
close SCRIPT;
|
||||
}
|
||||
|
||||
sub git_install_hooks
|
||||
{
|
||||
my ($self) = @_;
|
||||
|
||||
return if (!-d 'qtrepotools/git-hooks');
|
||||
|
||||
chomp(my @modules = `git submodule foreach :`);
|
||||
push @modules, "";
|
||||
for my $module (@modules) {
|
||||
$module =~ s,^Entering \'([^\']+)\'$,$1/,;
|
||||
my $rel = $module;
|
||||
$rel =~ s,[^/]+,..,g;
|
||||
$rel .= "../../qtrepotools/git-hooks/";
|
||||
$self->ensure_link($rel.'gerrit_commit_msg_hook', $module.'.git/hooks/commit-msg');
|
||||
$self->ensure_link($rel.'git_post_commit_hook', $module.'.git/hooks/post-commit');
|
||||
}
|
||||
}
|
||||
|
||||
sub run
|
||||
{
|
||||
my ($self) = @_;
|
||||
@@ -637,8 +616,6 @@ sub run
|
||||
|
||||
$self->git_add_remotes('qt5');
|
||||
|
||||
$self->git_install_hooks;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
1
qlalr
Submodule
1
qlalr
Submodule
Submodule qlalr added at d7064c2c7d
27
qt.pro
27
qt.pro
@@ -3,7 +3,6 @@ cache(, super)
|
||||
|
||||
CONFIG += build_pass # hack to disable the .qmake.super auto-add
|
||||
load(qt_build_config)
|
||||
CONFIG -= build_pass # unhack, as it confuses Qt Creator
|
||||
|
||||
TEMPLATE = subdirs
|
||||
|
||||
@@ -54,40 +53,34 @@ defineTest(addModule) {
|
||||
# users responsibility to ensure that all needed dependencies exist, or
|
||||
# it may not build.
|
||||
|
||||
ANDROID_EXTRAS =
|
||||
android: ANDROID_EXTRAS = qtandroidextras
|
||||
|
||||
addModule(qtbase)
|
||||
addModule(qtandroidextras, qtbase)
|
||||
addModule(qtmacextras, qtbase)
|
||||
addModule(qtx11extras, qtbase)
|
||||
addModule(qlalr, qtbase)
|
||||
addModule(qtsvg, qtbase)
|
||||
addModule(qtxmlpatterns, qtbase)
|
||||
addModule(qtdeclarative, qtbase, qtsvg qtxmlpatterns)
|
||||
addModule(qtjsbackend, qtbase)
|
||||
addModule(qtdeclarative, qtjsbackend, qtsvg qtxmlpatterns)
|
||||
addModule(qtquickcontrols, qtdeclarative)
|
||||
addModule(qtmultimedia, qtbase, qtdeclarative)
|
||||
addModule(qtwinextras, qtbase, qtdeclarative qtmultimedia)
|
||||
addModule(qtmultimedia, qtdeclarative)
|
||||
addModule(qtactiveqt, qtbase)
|
||||
addModule(qt3d, qtdeclarative)
|
||||
addModule(qtjsondb, qtdeclarative)
|
||||
addModule(qtsystems, qtbase, qtdeclarative)
|
||||
addModule(qtlocation, qtbase, qt3d qtsystems qtmultimedia)
|
||||
addModule(qtsystems, qtbase, qtdeclarative qtjsondb)
|
||||
addModule(qtlocation, qtbase, qt3d qtjsondb qtsystems qtmultimedia)
|
||||
addModule(qtsensors, qtbase, qtdeclarative)
|
||||
addModule(qtconnectivity, qtbase $$ANDROID_EXTRAS, qtdeclarative)
|
||||
addModule(qtconnectivity, qtsystems)
|
||||
addModule(qtfeedback, qtdeclarative, qtmultimedia)
|
||||
addModule(qtpim, qtdeclarative, qtjsondb)
|
||||
addModule(qtwebkit, qtdeclarative, qtlocation qtmultimedia qtsensors, WebKit.pro)
|
||||
addModule(qtwebkit, qtdeclarative, qtlocation qtsensors, WebKit.pro)
|
||||
addModule(qttools, qtbase, qtdeclarative qtactiveqt qtwebkit)
|
||||
addModule(qtwebkit-examples, qtwebkit qttools)
|
||||
addModule(qtimageformats, qtbase)
|
||||
addModule(qtgraphicaleffects, qtdeclarative)
|
||||
addModule(qtscript, qtbase, qttools)
|
||||
addModule(qtquick1, qtscript, qtsvg qtxmlpatterns qtwebkit)
|
||||
addModule(qtscript, qtbase)
|
||||
addModule(qtquick1, qtscript, qtsvg qtxmlpatterns qtwebkit qttools)
|
||||
addModule(qtdocgallery, qtdeclarative, qtjsondb)
|
||||
!win32:!mac:addModule(qtwayland, qtbase, qtdeclarative)
|
||||
addModule(qtserialport, qtbase)
|
||||
addModule(qtenginio, qtdeclarative)
|
||||
addModule(qtwebsockets, qtbase, qtdeclarative)
|
||||
addModule(qttranslations, qttools)
|
||||
addModule(qtdoc, qtdeclarative)
|
||||
addModule(qtqa, qtbase)
|
||||
|
||||
2
qt3d
2
qt3d
Submodule qt3d updated: 9a4f9f3eca...6b8ee028ac
Submodule qtactiveqt updated: ace322643b...8c1759ed70
Submodule qtandroidextras deleted from a441d816a0
2
qtbase
2
qtbase
Submodule qtbase updated: f1bce3bc17...215f137e29
Submodule qtconnectivity updated: 8a33a9b43d...fee6b50154
Submodule qtdeclarative updated: a67aa6abc6...811337a73c
2
qtdoc
2
qtdoc
Submodule qtdoc updated: 450060fac2...4d875f2b06
Submodule qtdocgallery updated: 870b170354...f3fa41d4a9
Submodule qtenginio deleted from 4ee5a2f13a
Submodule qtfeedback updated: dea0da7265...0d85e95a06
Submodule qtgraphicaleffects updated: ca99f8c336...535c6978fd
Submodule qtimageformats updated: 85e621e3ec...37257d4be0
1
qtjsbackend
Submodule
1
qtjsbackend
Submodule
Submodule qtjsbackend added at ca1ac7634f
2
qtjsondb
2
qtjsondb
Submodule qtjsondb updated: 4497f2a754...3b693a54e5
Submodule qtlocation updated: 6e39a79010...fd330db9e5
Submodule qtmacextras deleted from 9af049f151
Submodule qtmultimedia updated: 20da381608...1c0cfdf408
2
qtpim
2
qtpim
Submodule qtpim updated: 902c55a228...099111a9fb
2
qtqa
2
qtqa
Submodule qtqa updated: 130c512d14...6c31afb3f6
2
qtquick1
2
qtquick1
Submodule qtquick1 updated: 3074a3a8fe...c3eae1e470
Submodule qtquickcontrols updated: 45484e3f70...aa4ddfd844
Submodule qtrepotools updated: 4f3bd722c8...e4364f46e0
2
qtscript
2
qtscript
Submodule qtscript updated: 11ca34818a...e2415c8b95
Submodule qtsensors updated: f33363d292...e26a41a51d
Submodule qtserialport updated: 286d64c202...58365228b3
2
qtsvg
2
qtsvg
Submodule qtsvg updated: 66444e54dd...0b7bb2bd2d
Submodule qtsystems updated: 5084080c62...620592b4bc
2
qttools
2
qttools
Submodule qttools updated: 32bb805deb...d403785d9b
Submodule qttranslations updated: b9a22c997c...eb8ee6a96b
Submodule qtwayland updated: af551d0e4f...7334963a79
2
qtwebkit
2
qtwebkit
Submodule qtwebkit updated: bc8af0ec15...0368bb7e26
Submodule qtwebkit-examples updated: 9fc54596d8...bb4c9761d2
Submodule qtwebsockets deleted from ca03374390
Submodule qtwinextras deleted from b128803199
Submodule qtx11extras updated: 61e0824f24...1a095bd1f4
Submodule qtxmlpatterns updated: 10ddd5a745...ce0f629b74
Reference in New Issue
Block a user