summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-04-25Added manifest file according to smack 3-domain model.submit/tizen/20140428.999991submit/tizen/20140427.999999accepted/tizen/common/20140429.075417Tomasz Olszak2-1/+8
Bug-Tizen:TIVI-2416 Change-Id: I6526a128cfa9e87e17d25c4dbfff98ce97f73945 Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
2014-01-28Updated mkspec: qmlimportscanner and qtpaths added.submit/tizen_ivi_release/20140312.071344submit/tizen/20140312.070913submit/tizen/20140226.105923submit/tizen/20140129.110012accepted/tizen/mobile/20140227.072119accepted/tizen/ivi/release/20140312.124321accepted/tizen/ivi/panda/20140312.112653accepted/tizen/ivi/20140226.205351accepted/tizen/ivi/20140129.180909accepted/tizen/generic/20140312.123114accepted/tizen/generic/20140226.134636accepted/tizen/generic/20140129.142644tizen_ivi_releaseaccepted/tizen_ivi_releaseaccepted/tizen_ivi_pandaaccepted/tizen_genericaccepted/tizen/iviaccepted/tizen/genericTomasz Olszak1-0/+2
Tizen-Bug: TIVI-2416 Change-Id: I254befdf85ecd33c5843fc666b1490be988c1866 Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
2014-01-28Added qtchooser.1.gz manual.Tomasz Olszak1-1/+1
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>
2014-01-28Updated to version 39.Tomasz Olszak1-2/+2
Added qml binary.
2014-01-28spec updated for TizenTomasz Olszak2-20/+15
2014-01-28Import specs files from MerTomasz Olszak2-0/+115
2014-01-16Add qmlimportscanner, qtpathsAndrea Scarpino1-0/+2
Change-Id: Ibd0829127a246f4a97e46cbaa6d99117f826fc86 Change-Id: I870bdd0b46c97721356c8cd3fbb8778ff081ff4c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-12-18Created */man/man1 directory before installing manual.Tomasz Olszak1-0/+2
In packaging systems like rpmbuild the /usr/share/man/man1 may not exist. Change-Id: I23a2ddc22bcf13edfc0cb211f3f17d3d521e2bb3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-12-17Add QTCHOOSER_NO_GLOBAL_DIR to the man page.Lisandro Damián Nicanor Pérez Meyer1-0/+6
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>
2013-12-16make install installs the man page tooShawn Rutledge1-0/+1
Change-Id: I1c1afa489db7878277264d289b6da2c060de4d1b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-12-16Fix test failure: -list-versions must not include .confThiago Macieira2-6/+11
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>
2013-12-14add qml to the list of toolsShawn Rutledge1-0/+1
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>
2013-12-09Always ensure that the hardcoded paths are foundSune Vuorela1-1/+1
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>
2013-10-16Add support for Mac-specific tools to qtchooserupstream/31Thiago Macieira1-0/+8
Change-Id: I510ff1b560f5229497ad10632607590ee98b831d Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
2013-07-20Doc: Fix typoOrgad Shaneh1-1/+1
Change-Id: I2c15a4cd078a334368a3cb61c6233d4ce9aee47f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-05-23Print a sorted list of Qt versionsThiago Macieira1-8/+17
Right now, we're getting a directory order, which is arbitrary. Change-Id: Ia40c62ba9704fcc22504b1282f430e1fb18255d9 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
2013-05-23Use a regular function pointer for visitingThiago Macieira1-4/+5
No need for a PMF. Change-Id: I926b51be3e1a1a1ac4fb7dafc670b48a76fe88d2 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
2013-05-23Require an exact match to the tag when releasingThiago Macieira1-1/+1
Change-Id: Id4860109d680f50a94581fb407a8b9320cc68668 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
2013-05-18create a system default pathSune Vuorela2-2/+13
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>
2013-05-14Give home configurations precedence over system onesAndrea Scarpino1-3/+4
Change-Id: Ib0c4cf47c0ff5f716949cc5653ba27dad3558489 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-04-26Use getline from POSIX.1-2008 when availablePino Toscano1-1/+26
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>
2013-03-28Can find and launch an app bundle on MacShawn Rutledge1-0/+9
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>
2013-03-22argument -l is the same as -list-versions; double-dash is OK tooShawn Rutledge1-2/+5
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>
2013-03-05Add 'make distcheck'Thiago Macieira1-0/+5
Change-Id: Ic081ead02951f95172723fc3fdf56ac7d6c9699e Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
2013-03-05Allow testing of any commit, not just HEADThiago Macieira1-3/+4
Change-Id: I95efda786155737b7513307b61e7d2263d021044 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
2013-03-05Warn about recursive callsFrederik Gladhorn1-14/+36
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>
2013-02-07Add license files as mandated by (L)GPL and referred from main.cpp.Timo Jyrinki3-0/+1210
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>
2013-02-04Add qdoc and qdoc3Timo Jyrinki1-0/+2
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>
2013-02-01Expand leading tilde in tool path (for e.g. ~/dev/qt5)Shawn Rutledge1-18/+20
Change-Id: I712d22a40e75a9f36ccb5709844547249c24bf7c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-02-01Simplify the getenv use and handle the empty $HOME caseThiago Macieira1-11/+28
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>
2013-01-18Accept -run-tool if and only if the tool wasn't already selectedThiago Macieira2-69/+79
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>
2013-01-14Make messages slightly nicer.Frederik Gladhorn1-4/+4
Change-Id: I067d589692c15ba80bb1e7ed356c043d532c2721 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-01-10Change the zsh sourcing again to remove the sub-shell command.Thiago Macieira1-1/+1
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>
2013-01-09Also detect the source dir from Qt installations via qmakeThiago Macieira1-1/+9
Change-Id: I587fbd3fc90d7187634f4409216d0f8ee0f32ba4 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
2013-01-09Fix sourcing with zshThiago Macieira1-1/+1
(%) 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>
2013-01-08Make bash script workFrederik Gladhorn2-2/+5
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>
2013-01-08Add bash and zsh scripts to wrap qtchooserThiago Macieira3-0/+215
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>
2013-01-02Add a man page for qtchooser.Timo Jyrinki1-0/+78
Change-Id: I5dfdaee862bc83b72805d843fc3b96e18b387013 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-01-02Accept the -print-env and -list-versions commands only on "qtchooser"Thiago Macieira3-23/+62
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>
2013-01-02Add a help mode to the tool, printing the usageThiago Macieira1-3/+39
Only if another tool isn't specified somehow. Change-Id: I5c0068809cb49054012c14afa388b355efa6dd2d Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2012-12-29Make it possible to run the tests with Qt 4 tooThiago Macieira1-1/+5
Change-Id: Ied0efadce29348ea3f07a5238ac65f7f8bed35dc Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
2012-12-29Don't require private tests for this testThiago Macieira1-1/+0
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>
2012-12-29Remove the test-mode variablesThiago Macieira8-32/+25
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>
2012-12-19Add the necessary files to create a package with git archiveThiago Macieira3-1/+15
Change-Id: Ice29268ab455d14deb793440431be94f2a80f187 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2012-12-19Make make {install,clean,distclean,uninstall} workThiago Macieira2-2/+57
Change-Id: Iae7f50ee99efe39acca3e5221f50441e90d0d657 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2012-12-19Make it easier to test by building a separate test applicationThiago Macieira3-5/+15
Change-Id: Icff0b46578a5b857fcebbdb731e533c6e98e4f6f Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2012-12-19Add gitignoresThiago Macieira2-0/+45
Change-Id: Ie011d15f1bf31000205f5b2d9ddb4ce051158296 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2012-12-19Long live the Qt tool chooserThiago Macieira14-0/+829
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>
2012-11-27Initial empty repositorySergio Ahumada0-0/+0