platform/upstream/qtchooser.git
8 years agoBump package version to 39.g4717841.11.gd20fdc6 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_unified accepted/tizen_wearable tizen tizen_3.0 tizen_3.0.m2 accepted/tizen/3.0/common/20161114.111640 accepted/tizen/3.0/ivi/20161011.062253 accepted/tizen/common/20160307.154636 accepted/tizen/ivi/20160307.103614 accepted/tizen/mobile/20160307.111421 accepted/tizen/tv/20160307.111445 accepted/tizen/unified/20170309.040421 accepted/tizen/wearable/20160307.111508 submit/tizen/20160303.070536 submit/tizen/20160303.090622 submit/tizen/20160303.114700 submit/tizen/20160307.093400 submit/tizen_3.0.m2/20170104.093754 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000006 submit/tizen_unified/20170308.100416 tizen_4.0.m1_release
Tomasz Olszak [Mon, 9 Nov 2015 12:12:18 +0000 (13:12 +0100)]
Bump package version to 39.g4717841.11.gd20fdc6

8 years agoBump package version to 39.g4717841.10.gf0ced7e
Tomasz Olszak [Mon, 15 Dec 2014 20:56:17 +0000 (21:56 +0100)]
Bump package version to 39.g4717841.10.gf0ced7e

Additionally added qmleasing and qmllint

Bug-Tizen: TIVI-2416
Change-Id: Ic8adef685cebaa10332367f335ded8be1fb0cdb5
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
8 years agoBump package version to 39.g4717841.8.gd2b7997
Tomasz Olszak [Fri, 4 Jul 2014 14:16:44 +0000 (16:16 +0200)]
Bump package version to 39.g4717841.8.gd2b7997

Bug-Tizen: TIVI-2416
Change-Id: I6e54bc41cf431ca86c2c71a29da0ae3b0b2d3777
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
8 years agoBump package version to 39.1.7985f775fb
Tomasz Olszak [Fri, 23 May 2014 09:30:54 +0000 (11:30 +0200)]
Bump package version to 39.1.7985f775fb

Change-Id: I05ae5c489f557f3cf25fda1717fd8184af62c8f7
Bug-Tizen: TIVI-2416
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
8 years agopackaging: Added qtdiag binary
Tomasz Olszak [Wed, 7 May 2014 05:24:22 +0000 (07:24 +0200)]
packaging: Added qtdiag binary

Change-Id: I53548dcba55d4e21e836e30599108db05c5d6c46
Bug-Tizen:TIVI-2416
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
8 years agoAdded manifest file according to smack 3-domain model.
Tomasz Olszak [Fri, 25 Apr 2014 08:49:32 +0000 (10:49 +0200)]
Added manifest file according to smack 3-domain model.

Bug-Tizen:TIVI-2416

Change-Id: I6526a128cfa9e87e17d25c4dbfff98ce97f73945
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
8 years agoUpdated mkspec: qmlimportscanner and qtpaths added.
Tomasz Olszak [Tue, 28 Jan 2014 22:10:38 +0000 (23:10 +0100)]
Updated mkspec: qmlimportscanner and qtpaths added.

Tizen-Bug: TIVI-2416

Change-Id: I254befdf85ecd33c5843fc666b1490be988c1866
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
8 years agoAdded qtchooser.1.gz manual.
Tomasz Olszak [Tue, 17 Dec 2013 23:36:54 +0000 (00:36 +0100)]
Added qtchooser.1.gz manual.

Newest version of qtchooser didn't build because
qtchooser.1.gz file was not included into package.

Change-Id: Ie159c4433646b487e1d4126638ce1824af0b6c33
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
8 years agoUpdated to version 39.
Tomasz Olszak [Mon, 16 Dec 2013 09:29:49 +0000 (10:29 +0100)]
Updated to version 39.

Added qml binary.

8 years agospec updated for Tizen
Tomasz Olszak [Wed, 28 Aug 2013 13:22:23 +0000 (13:22 +0000)]
spec updated for Tizen

8 years agoImport specs files from Mer
Tomasz Olszak [Wed, 28 Aug 2013 11:52:31 +0000 (11:52 +0000)]
Import specs files from Mer

8 years agoAdd qtplugininfo upstream upstream/39.g4717841.11.gd20fdc6
Andrea Scarpino [Wed, 9 Sep 2015 17:56:05 +0000 (19:56 +0200)]
Add qtplugininfo

Change-Id: I0d95b9c991bc8a0b87fa9c6c2327d1fb6dcf8fd2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
9 years agoImplement fallback mechanism for some tools
Dmitry Shachnev [Fri, 4 Apr 2014 09:53:15 +0000 (13:53 +0400)]
Implement fallback mechanism for some tools

If a tool was requested without specifying the SDK name, and the
default SDK does not have that tool, fall back to any installed
SDK that contains that tool.

Currently this is enabled only for qdbus, qmlscene, and for tools
that are new in Qt 5.

Change-Id: I19a82a06c75fe9cd624aa51b086d72e75310ba35
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
9 years agoset CMAKE_PREFIX_PATH
Shawn Rutledge [Tue, 13 Jan 2015 08:46:31 +0000 (09:46 +0100)]
set CMAKE_PREFIX_PATH

so that cmake can find the chosen Qt version when building packages
that depend on Qt.

Change-Id: Ifd8b85b331fc718a14f22c2e4dc3af1315a60a62
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
9 years agoUse a variable for the qmake executable
Pino Toscano [Tue, 30 Dec 2014 22:37:56 +0000 (23:37 +0100)]
Use a variable for the qmake executable

Use $(QMAKE) (defaulting to "qmake", like before) to refer to the
qmake executable.

This allows to use in tests a qmake not in $PATH (e.g. in a local
installation), without altering the environment:
  $ make check QMAKE=/path/to/qmake

Change-Id: I4ed906a5b911b6aed82596219ca813c643db6d62
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
9 years agoFix possible buffer overrun in use of readlink(2) upstream/39.g4717841.10.gf0ced7e
Thiago Macieira [Mon, 15 Dec 2014 22:39:51 +0000 (14:39 -0800)]
Fix possible buffer overrun in use of readlink(2)

The man page says:
       readlink() does not append a null byte to buf.  It will truncate
       the contents (to a length of bufsiz characters), in case the
       buffer is too small to hold all of the contents.
[...]
  RETURN VALUE
       On success, these calls return the number of bytes placed in buf.

So we need to pass size-1 so we'll have room for the NUL byte at the
end.

Change-Id: I9ccfb451f8dbe39bc1786864fbd4d0f018598e00
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
9 years agoAdd qmleasing and qmllint tools upstream/39.g4717841.9.g657db9d
Andrea Scarpino [Fri, 12 Dec 2014 13:22:35 +0000 (14:22 +0100)]
Add qmleasing and qmllint tools

Change-Id: I04093a0001c90b406f027e54c9b9d8fd1895ea19
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
9 years agoAdd the install mode for qtchooser upstream/39.1.d2b79979be upstream/39.g4717841.8.gd2b7997
Thiago Macieira [Mon, 24 Feb 2014 22:57:23 +0000 (14:57 -0800)]
Add the install mode for qtchooser

Change-Id: I8bbd7fc683e341ca6af3b1396a655684233f5562
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
9 years agoAdd qlalr to the tools (it's built by default from src/tools/qlalr)
Simon Hausmann [Fri, 30 May 2014 05:52:07 +0000 (07:52 +0200)]
Add qlalr to the tools (it's built by default from src/tools/qlalr)

Change-Id: Id5c80f645a49f2226ac2275a2c34a5ac75bedae4
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
9 years agoCompletion for bash upstream/39.1.7985f775fb upstream/39g47178416g7985f77
J-P Nurmi [Mon, 19 May 2014 12:01:33 +0000 (14:01 +0200)]
Completion for bash

Change-Id: Ie2cfb3de74f7bec15391110e6c213e839108dc84
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
10 years agoAdded qtdiag upstream/39
Tomasz Olszak [Mon, 28 Apr 2014 14:38:59 +0000 (16:38 +0200)]
Added qtdiag

Change-Id: Ic58548eacbb31aa2fbaf0e8f69e94f566783468c
Reviewed-by: Philippe Coval <rzr@gna.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
10 years agoAdd qmlimportscanner, qtpaths
Andrea Scarpino [Thu, 16 Jan 2014 08:33:43 +0000 (09:33 +0100)]
Add qmlimportscanner, qtpaths

Change-Id: Ibd0829127a246f4a97e46cbaa6d99117f826fc86
Change-Id: I870bdd0b46c97721356c8cd3fbb8778ff081ff4c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
10 years agoCreated */man/man1 directory before installing manual.
Tomasz Olszak [Tue, 17 Dec 2013 22:20:29 +0000 (23:20 +0100)]
Created */man/man1 directory before installing manual.

In packaging systems like rpmbuild the /usr/share/man/man1
may not exist.

Change-Id: I23a2ddc22bcf13edfc0cb211f3f17d3d521e2bb3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
10 years agoAdd QTCHOOSER_NO_GLOBAL_DIR to the man page.
Lisandro Damián Nicanor Pérez Meyer [Tue, 10 Dec 2013 00:26:11 +0000 (21:26 -0300)]
Add QTCHOOSER_NO_GLOBAL_DIR to the man page.

Document what QTCHOOSER_NO_GLOBAL_DIR does in the man page.

Change-Id: I00bb056eba0713ebb70c52a1ad332050ffcca052
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
10 years agomake install installs the man page too
Shawn Rutledge [Mon, 16 Dec 2013 09:10:07 +0000 (10:10 +0100)]
make install installs the man page too

Change-Id: I1c1afa489db7878277264d289b6da2c060de4d1b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
10 years agoFix test failure: -list-versions must not include .conf
Thiago Macieira [Sat, 14 Dec 2013 20:39:57 +0000 (12:39 -0800)]
Fix test failure: -list-versions must not include .conf

The output should match what gets put on the environment variable, in
the -qt argument, etc.

Change-Id: Ibab71182d7962cdd1ffa8e175810bfab987a3974
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
10 years agoadd qml to the list of tools
Shawn Rutledge [Fri, 13 Dec 2013 06:47:42 +0000 (07:47 +0100)]
add qml to the list of tools

It's new in Qt 5.2.0.

Change-Id: Ibb24f1cc82cbd74f4886f512986e1d45f29ae326
Reviewed-by: Liang Qi <liang.qi@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
10 years agoAlways ensure that the hardcoded paths are found
Sune Vuorela [Sat, 7 Dec 2013 20:19:50 +0000 (21:19 +0100)]
Always ensure that the hardcoded paths are found

Practice has shown that quite many sets XDG dirs for various purposes
and that spoils qtchooser finding the distro provided Qt without adding
like /usr to the XDG dirs variable which kind of kills performance.

Provide a dedicated variable to disable a global installation.

Change-Id: I58953e3b2b3cf43cb67d4c367312e83cfa9ad2b3
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
10 years agoAdd support for Mac-specific tools to qtchooser upstream/31
Thiago Macieira [Mon, 7 Oct 2013 21:23:40 +0000 (14:23 -0700)]
Add support for Mac-specific tools to qtchooser

Change-Id: I510ff1b560f5229497ad10632607590ee98b831d
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
10 years agoDoc: Fix typo
Orgad Shaneh [Thu, 18 Jul 2013 18:55:18 +0000 (21:55 +0300)]
Doc: Fix typo

Change-Id: I2c15a4cd078a334368a3cb61c6233d4ce9aee47f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
10 years agoPrint a sorted list of Qt versions
Thiago Macieira [Sat, 18 May 2013 18:32:35 +0000 (11:32 -0700)]
Print a sorted list of Qt versions

Right now, we're getting a directory order, which is arbitrary.

Change-Id: Ia40c62ba9704fcc22504b1282f430e1fb18255d9
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
10 years agoUse a regular function pointer for visiting
Thiago Macieira [Sat, 18 May 2013 18:20:43 +0000 (11:20 -0700)]
Use a regular function pointer for visiting

No need for a PMF.

Change-Id: I926b51be3e1a1a1ac4fb7dafc670b48a76fe88d2
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
10 years agoRequire an exact match to the tag when releasing
Thiago Macieira [Sat, 18 May 2013 22:06:42 +0000 (15:06 -0700)]
Require an exact match to the tag when releasing

Change-Id: Id4860109d680f50a94581fb407a8b9320cc68668
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agocreate a system default path
Sune Vuorela [Sat, 29 Dec 2012 22:56:27 +0000 (23:56 +0100)]
create a system default path

Make it possible to build qtchooser with a system default search path

build using make QTCHOOSER_GLOBAL_DIR=/usr/share/ will make qtchooser
fall back to search in /usr/share/qtchooser/ as a last option if
XDG_CONFIG_DIRS is not set

Change-Id: Ie0d438ddc1e259d4c5fb70aa332bd6bfef2448e5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoGive home configurations precedence over system ones
Andrea Scarpino [Mon, 15 Apr 2013 21:19:39 +0000 (23:19 +0200)]
Give home configurations precedence over system ones

Change-Id: Ib0c4cf47c0ff5f716949cc5653ba27dad3558489
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoUse getline from POSIX.1-2008 when available
Pino Toscano [Fri, 26 Apr 2013 14:12:12 +0000 (16:12 +0200)]
Use getline from POSIX.1-2008 when available

Ask the standard library to use POSIX.1-2008, and if available use its getline
function to read lines from the SDK configuration file.
If not, fallback on the current way (fgets with PATH_MAX-sized buffer), which
is now used only if PATH_MAX is defined.
If neither POSIX.1-2008 nor PATH_MAX are available, error out.

Change-Id: I8d2d256530d68884850535a6cd5908d1205035bc
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoCan find and launch an app bundle on Mac
Shawn Rutledge [Fri, 22 Mar 2013 12:53:55 +0000 (13:53 +0100)]
Can find and launch an app bundle on Mac

Required for https://codereview.qt-project.org/#change,51502
If qml is an app bundle, we'd still like to be able to launch it
just as easily on the command line.

Change-Id: I37973b296b1da9d27e7f3bfff1c54487bbb387ea
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoargument -l is the same as -list-versions; double-dash is OK too
Shawn Rutledge [Fri, 22 Mar 2013 13:37:23 +0000 (14:37 +0100)]
argument -l is the same as -list-versions; double-dash is OK too

Linux users tend to be accustomed to GNU-style options.  Now qtchooser
is agnostic about that.

Change-Id: Idb9731cf6892c183370d863e4261936dc21e9ac8
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoAdd 'make distcheck'
Thiago Macieira [Sat, 29 Dec 2012 21:30:18 +0000 (19:30 -0200)]
Add 'make distcheck'

Change-Id: Ic081ead02951f95172723fc3fdf56ac7d6c9699e
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agoAllow testing of any commit, not just HEAD
Thiago Macieira [Sat, 29 Dec 2012 21:29:15 +0000 (19:29 -0200)]
Allow testing of any commit, not just HEAD

Change-Id: I95efda786155737b7513307b61e7d2263d021044
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agoWarn about recursive calls
Frederik Gladhorn [Fri, 11 Jan 2013 09:27:41 +0000 (10:27 +0100)]
Warn about recursive calls

Calling qdbus took a long time and 100% cpu since I had a broken
setup.
Instead of doing that, warn that the user callls a symlink
to qtchooser itself.

Change-Id: I968a6d637f51bf8138e196207b7f3bbae17883f5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoAdd license files as mandated by (L)GPL and referred from main.cpp.
Timo Jyrinki [Thu, 7 Feb 2013 10:33:35 +0000 (12:33 +0200)]
Add license files as mandated by (L)GPL and referred from main.cpp.

The files wget:d from:

https://qt.gitorious.org/qt/qtbase/blobs/raw/stable/LGPL_EXCEPTION.txt
https://qt.gitorious.org/qt/qtbase/blobs/raw/stable/LICENSE.LGPL
https://qt.gitorious.org/qt/qtbase/blobs/raw/stable/LICENSE.GPL

Not sanitize-commit clean because those files aren't.

Change-Id: I17e05b5afbb826a910866ee63a25ea1860f5c5c9
Reviewed-by: Sune Vuorela <sune@vuorela.dk>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoAdd qdoc and qdoc3
Timo Jyrinki [Mon, 4 Feb 2013 09:01:00 +0000 (11:01 +0200)]
Add qdoc and qdoc3

Make qtchooser handle also qdoc and qdoc3, expected to be found
similar to other tools by developers.

Change-Id: Ie6bfb1d85fbdcb1919f107e97557ccc848f334cd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoExpand leading tilde in tool path (for e.g. ~/dev/qt5)
Shawn Rutledge [Wed, 30 Jan 2013 15:38:06 +0000 (16:38 +0100)]
Expand leading tilde in tool path (for e.g. ~/dev/qt5)

Change-Id: I712d22a40e75a9f36ccb5709844547249c24bf7c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoSimplify the getenv use and handle the empty $HOME case
Thiago Macieira [Sat, 29 Dec 2012 23:37:01 +0000 (21:37 -0200)]
Simplify the getenv use and handle the empty $HOME case

getenv(3) can return NULL if the variable isn't set. Some Standard
Library implementations (like Clang's libc++) do not like a NULL as
the argument to std::string's constructor, which is why the code is so
convoluted as it is. Instead, simplify the code by having a getenv
wrapper that has a default value.

And handle the case of the empty $HOME: currently, if it isn't set,
the application would crash. Instead, use getpwuid as a fallback.

Change-Id: I0185dbc7b026a5978b678207b31de90cba531623
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
11 years agoAccept -run-tool if and only if the tool wasn't already selected
Thiago Macieira [Fri, 21 Dec 2012 00:01:21 +0000 (16:01 -0800)]
Accept -run-tool if and only if the tool wasn't already selected

That means we invert the order of overriding. Previously, -run-tool
overrode the environment, which overrode argv[0]. Now, argv[0] overrides
the environment, which overrides -run-tool.

Change-Id: I60bd5e1397cb5a6cb8b0df9c1c3ebba6210ed920
Reviewed-by: Sune Vuorela <sune@vuorela.dk>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoMake messages slightly nicer.
Frederik Gladhorn [Fri, 11 Jan 2013 09:30:08 +0000 (10:30 +0100)]
Make messages slightly nicer.

Change-Id: I067d589692c15ba80bb1e7ed356c043d532c2721
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoChange the zsh sourcing again to remove the sub-shell command.
Thiago Macieira [Tue, 8 Jan 2013 22:06:34 +0000 (20:06 -0200)]
Change the zsh sourcing again to remove the sub-shell command.

This uses the following zsh expansion tricks:
   ${:-word}     always replace by "word"
   (%) modifier  expand %-escapes like in PS1
   %pattern      strip shortest matching pattern from the end

%x is the name of the current script or sourced file; the /* pattern
strips the last component from a file path.

Change-Id: Ie29a06bd164b36b820342c3c3178e387389de29d
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agoAlso detect the source dir from Qt installations via qmake
Thiago Macieira [Tue, 8 Jan 2013 22:06:18 +0000 (20:06 -0200)]
Also detect the source dir from Qt installations via qmake

Change-Id: I587fbd3fc90d7187634f4409216d0f8ee0f32ba4
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agoFix sourcing with zsh
Thiago Macieira [Tue, 8 Jan 2013 22:06:34 +0000 (20:06 -0200)]
Fix sourcing with zsh

(%) tells zsh to expand prompt % escapes and %x is the name of the
script or sourced file.

Change-Id: I79abd727c55523575431834c65aa602154853f8a
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agoMake bash script work
Frederik Gladhorn [Tue, 8 Jan 2013 11:53:31 +0000 (12:53 +0100)]
Make bash script work

Bash functions need semicolons or newlines (common.sh) as separators.
When source-ing the script $0 will be /bin/bash, use $BASH_SOURCE instead.

Change-Id: I250a6caa12f48c0b05b9836be47514e914b218cb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoAdd bash and zsh scripts to wrap qtchooser
Thiago Macieira [Mon, 7 Jan 2013 18:50:11 +0000 (16:50 -0200)]
Add bash and zsh scripts to wrap qtchooser

Those scripts are meant to be sourced by the user, usually by an
interactive or login shell. They will define two public shell
functions: qt and qcd.

Change-Id: I9cf27d45ae6a1d91a9cbaf1548b700b1ddba78bf
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agoAdd a man page for qtchooser.
Timo Jyrinki [Wed, 2 Jan 2013 11:35:47 +0000 (13:35 +0200)]
Add a man page for qtchooser.

Change-Id: I5dfdaee862bc83b72805d843fc3b96e18b387013
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoAccept the -print-env and -list-versions commands only on "qtchooser"
Thiago Macieira [Thu, 20 Dec 2012 23:28:18 +0000 (15:28 -0800)]
Accept the -print-env and -list-versions commands only on "qtchooser"

Do not accept those options when called with another tool, especially
when using argv[0]. This allows the target tools to have options with
identical names.

Change-Id: I7c2881100ccc10c73ddfc5d15dcc7f89555392cf
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoAdd a help mode to the tool, printing the usage
Thiago Macieira [Thu, 20 Dec 2012 22:54:34 +0000 (14:54 -0800)]
Add a help mode to the tool, printing the usage

Only if another tool isn't specified somehow.

Change-Id: I5c0068809cb49054012c14afa388b355efa6dd2d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoMake it possible to run the tests with Qt 4 too
Thiago Macieira [Sat, 29 Dec 2012 21:33:07 +0000 (19:33 -0200)]
Make it possible to run the tests with Qt 4 too

Change-Id: Ied0efadce29348ea3f07a5238ac65f7f8bed35dc
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
11 years agoDon't require private tests for this test
Thiago Macieira [Sat, 29 Dec 2012 21:11:41 +0000 (19:11 -0200)]
Don't require private tests for this test

They are not required. This was a left-over from when qtchooser was
part of qtbase

Change-Id: Ie82fd50bf2e50b11b1b3d65b94638c27f5288cec
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
11 years agoRemove the test-mode variables
Thiago Macieira [Thu, 20 Dec 2012 22:36:12 +0000 (14:36 -0800)]
Remove the test-mode variables

One of the bugs I found during development was in the code handling
the XDG data paths, which wasn't exercised during testing. So exercise
it instead.

Now the test-mode build will be exact the same as the normal code,
except that it won't actually run the target executable.

Change-Id: I829ed252836b2b581cd61c7dfab9d3061377e8f0
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoAdd the necessary files to create a package with git archive
Thiago Macieira [Tue, 18 Dec 2012 18:28:18 +0000 (10:28 -0800)]
Add the necessary files to create a package with git archive

Change-Id: Ice29268ab455d14deb793440431be94f2a80f187
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoMake make {install,clean,distclean,uninstall} work
Thiago Macieira [Tue, 18 Dec 2012 01:59:25 +0000 (17:59 -0800)]
Make make {install,clean,distclean,uninstall} work

Change-Id: Iae7f50ee99efe39acca3e5221f50441e90d0d657
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoMake it easier to test by building a separate test application
Thiago Macieira [Tue, 18 Dec 2012 01:41:27 +0000 (17:41 -0800)]
Make it easier to test by building a separate test application

Change-Id: Icff0b46578a5b857fcebbdb731e533c6e98e4f6f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoAdd gitignores
Thiago Macieira [Fri, 30 Nov 2012 12:34:04 +0000 (21:34 +0900)]
Add gitignores

Change-Id: Ie011d15f1bf31000205f5b2d9ddb4ce051158296
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoLong live the Qt tool chooser
Thiago Macieira [Sat, 27 Oct 2012 00:32:27 +0000 (17:32 -0700)]
Long live the Qt tool chooser

This tool wraps the execution of the other tools. It's supposed to
live on systems' /usr/bin dir or equivalent.

WIP: need to compile on Mac, I need to know which libs are necessary
for the FSFindFolder function (can't find the documentation on Apple's
website).

Change-Id: I1c429a159a4e02b78a835888d470514d8e4a23a7
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoInitial empty repository
Sergio Ahumada [Tue, 27 Nov 2012 16:44:17 +0000 (17:44 +0100)]
Initial empty repository