Commit Graph

49 Commits

Author SHA1 Message Date
Oswald Buddenhagen
3ff007d573 don't detect readlink a-priori
it's pointless and causes an unnecessary delay.
what's worse, we wouldn't actually know whether we found a compatible
(gnu) readlink, so the fallback would never get activated. this would be
the case on macos (the problem wasn't noticed so far, because on macos
we build a bundle which doesn't need the wrapper in the first place).

Change-Id: Ibf4c370d5d9e25064e80faeaf12eb5fa1bc68c20
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-27 13:06:53 +00:00
Oswald Buddenhagen
5654828b22 fix hand-crafted symlink resolution
the base directory for making the symlink target absolute is of course
the dirname of the original file, not the target itself.

Change-Id: If5171ead8da0aa2afcaa8ccd6365771441440146
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-27 13:06:38 +00:00
Eike Ziller
80d93ab52a Fix qtcreator.sh for the new Qt deployment necessary with Qt 5.6
We need to deploy Qt 5.6 into its own directory (lib/Qt/) in the
Qt Creator packages, so the LD_LIBRARY_PATH that is set in
qtcreator.sh needs that too.

Task-number: QTCREATORBUG-15748
Change-Id: I637322dfe5eb669b6447aa2f2b52e3ba2fe2979f
Reviewed-by: Edward Welbourne <edward.welbourne@theqtcompany.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-02-22 13:13:48 +00:00
Eike Ziller
9dd84323df Use variables for install locations
Define variables in qtcreator.pri for the various
install locations, instead of hardcoding the paths
everywhere where they are needed.

Change-Id: Ia34de711a7f2be317272ede023e2a8b9cdcc30fe
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-09-22 12:16:08 +00:00
Oswald Buddenhagen
ca492c8fac use DISTFILES instead of OTHER_FILES in creator's own build system
it's the correct variable to use.

Change-Id: I9ec7795099097715a64969516cd3fae9e213a0f4
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2014-09-15 12:10:01 +02:00
Oswald Buddenhagen
f832bdb7ad silence useless warnings
same trick as in static.pro

Change-Id: I1d3c30f8d03179fcff1fa463bf7f44af0290f4f0
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-03-04 16:19:13 +01:00
Daniel Molkentin
745cb4b7ec Introduce $$QTC_PREFIX
'make install' now installs to $(INSTALL_ROOT)$$QTC_PREFIX/...

This is used for giving the contents of the 7zips an additional prefix.
(previously done by doing an additional copying step in bindistHelper).
QTC_PREFIX can also be used to give Qt Creator a different install path
at qmake time, and defaults to /usr/local on Linux.
On Windows and Mac there is no default for QTC_PREFIX.

Usage: qmake -r QTC_PREFIX=/qtcreator-2.6.0 && make &&
INSTALL_ROOT=/tmp/creator-dist make install

Change-Id: Id30781e14bfdde52531800f22b22e39f0459e806
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
2012-09-25 10:14:51 +02:00
Eike Ziller
b56b1c7d59 Revert "Introduce $$QTC_PREFIX instead of abusing $(INSTALL_ROOT)."
It depends on and mixes in changes made in another change on gerrit
that is not merged, so it breaks the package build.

This reverts commit c29bf6f652.

Change-Id: Ibb251150909271f3e119f05a1691832aae8ac633
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-09-07 10:02:40 +02:00
Daniel Molkentin
c29bf6f652 Introduce $$QTC_PREFIX instead of abusing $(INSTALL_ROOT).
Reason: $INSTALL_ROOT is only meant to be used by packagers
to temporarily put the contents into a different location,
which is needed for fakeroot packaging.

QTC_PREFIX is not a qmake variable, and defaults to
/usr/local. On Windows the default prefix is "QtCreator",
since "make install" is expected to be used in
a packaging context only where either INSTALL_ROOT
should be used or QTC_PREFIX should be set to the
absolute destination path where e.g. an installer
generator will pick it up.

Change-Id: Ifa4950340e58e34726c53f5417adcc7b50828ce1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2012-09-05 16:37:42 +02:00
Oswald Buddenhagen
519e0a795d don't try to strip the wrapper script
yet another hack

Change-Id: Ic041e8bdfb7331d6934620c8fbb91435f3495ba7
Reviewed-on: http://codereview.qt-project.org/4790
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
2011-09-13 18:16:49 +02:00
Oswald Buddenhagen
4078fba4ec re-add LD_LIBRARY_PATH script
we need to override RUNPATHs from possible plugins.

due to d7d23226, this should not re-introduce QTCREATORBUG-1646.

unlike in the previous incarnation, we don't replace the binary with the
script, but give the script an extension. this is nicer for packagers
and less confusing in creator's own run configurations. the .desktop
files created by our installers need to be adjusted for that.

Task-number: QTCREATORBUG-5565
Change-Id: Icd2fa55456754a05257376b8288e8bdf423c62db
Reviewed-on: http://codereview.qt.nokia.com/3180
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
2011-08-18 15:40:11 +02:00
dt
2bd2373b38 Remove LD_LIBRARY_PATH script.
Christian Kamm convinced me that it should not have any effect.

Reviewed-By: ckamm

Task-Nr: QTCREATORBUG-1646
2010-06-22 12:47:04 +02:00
dt
a417b3d8ea Fix shell script
Task-Nr: QTCREATOR-116
2010-04-12 15:03:34 +02:00
Thiago Macieira
1420cd1786 Fix compliance of the qtcreator script with Bourne shell.
./bin/qtcreator: 3: Syntax error: "(" unexpected
2009-08-03 18:27:21 +02:00
Thiago Macieira
2b739a6b9e Fix running the qtcreator script with traditional Bourne shell.
First, there's no $( ) for subshells. You have to use backticks.

Second problem, "VAR=value exec command" doesn't work. Split into
variable setting, exporting and then exec'ing the program.

Third, Solaris doesn't come with readlink, so parse the output of ls -l.
2009-08-03 16:06:43 +02:00
dt
9e9f2a7da2 Always use "lib" in the startup script. 2009-05-12 17:12:01 +02:00
Oswald Buddenhagen
97ffee6bdd automate setting IDE_BUILD_TREE 2009-05-06 20:25:20 +02:00
Oswald Buddenhagen
13f04d8430 revamp build system
now bin and share are not pegged to linking the executable any more,
but are proper subdirs targets of their own.
unforturnately, qmake is a bit tenacious, so we hack around a bit. :)

more or less in passing by, i removed some superfluous trailing slashes
and added path normalization as well.
2009-04-20 16:51:10 +02:00
Daniel Molkentin
07f1aafa38 Fixes: Startup wrapper when Creator in directory with spaces.
Bug reported and fix suggested by catanzag on Qt Labs blog. Thanks!

Reviewed By: Thorbjorn Lindeijer <thorbjorn.lindeijer@nokia.com>
2009-04-14 10:14:51 +02:00
Marco Bubke
851fb975ec add readlink to the qtcreator startup script so that you can use sym links on it 2009-04-07 14:09:18 +02:00
Oswald Buddenhagen
c30420af7a adjust to changed library location 2009-03-27 20:55:00 +01:00
hjk
80468d9986 use 'lib64' instead of 'lib' on linux/x64_86 2009-03-23 15:36:15 +01:00
Bradley T. Hughes
ba511b4731 Fixes: don't override LD_LIBRARY_PATH, don't depend on /bin/bash
RevBy: hjk
2009-03-09 12:54:49 +01:00
hjk
d9cbcdc94b Fixes: use LD_LIBRARY_PATH in wrapper script 2009-03-06 14:51:33 +01:00
hjk
850102307d Fixes: add startup script for creator
Details:  LD_LIBRARY_PATH setting still missing
2009-03-06 09:34:00 +01:00
Daniel Molkentin
0f20a20b4c Fixes: Implement make install target, Step 1
Details: Moving files so that the local layout corresponds to the layout pushed by make install.
Adjust Make target, modify the resource path of the loader to find the resources in the
right place. All pathes are still looked up relative to binaryPath(), libs are found via
relative rpath.
2009-01-21 08:52:19 +01:00
Daniel Molkentin
59affcfffc Bump year in licence header. 2009-01-13 19:22:14 +01:00
hjk
c9b2dfc363 implement QLinkedList dumper 2009-01-08 11:50:20 +01:00
hjk
a598aa12b6 add dumper for QMultiMap 2009-01-07 16:29:14 +01:00
hjk
b4c1552ec2 handle Qt 4.4 and Qt 4.5's QMap in dumpers 2009-01-07 15:03:49 +01:00
hjk
8e5b3a260c mention QList in list of available dumpers 2008-12-29 13:30:21 +01:00
hjk
6049e1fbb4 small dumper refactoring oin the way to "all dumper code in gdbmacros.cpp" 2008-12-19 09:15:02 +01:00
hjk
3bd633ef04 move some of the code for handling template types from creator proper
to the "user space" (gdbmacros.cpp)
2008-12-18 10:11:10 +01:00
hjk
5285379f18 make watchers persistent in the session 2008-12-17 17:43:01 +01:00
hjk
04c4a0ec72 make the std::map dumper work with keys that already have a const
qualification like 'const char *'
2008-12-17 15:46:27 +01:00
hjk
06e5e83e1e fix license header 2008-12-16 17:25:01 +01:00
dt
4531a90c47 Fixes: Add beta license replacing Technology Preview license. 2008-12-16 16:20:42 +01:00
hjk
47c9f22f34 remove dead code from dumpers 2008-12-12 13:14:51 +01:00
hjk
96c446ffd4 remove some dead code 2008-12-12 13:09:34 +01:00
hjk
70d2bfed32 code cosmetics on std::map dumper 2008-12-12 13:02:29 +01:00
hjk
7898a499b6 add custom dumper for std::map 2008-12-12 12:55:05 +01:00
hjk
540c6de108 work on std::list dumper 2008-12-10 16:48:12 +01:00
hjk
3b31b5c98c work on std::list dumper; also a bit of refactoring 2008-12-10 16:31:50 +01:00
hjk
94c613c9fe add custom dumpers for std::list 2008-12-10 14:37:15 +01:00
hjk
44cc9a2b40 fix expansion state of "dummy" items in locals&watchers after frame changes 2008-12-08 10:25:39 +01:00
hjk
0d46571eb3 fix QSet custom dumper for namespaced Qt 2008-12-05 18:44:09 +01:00
hjk
d8b343afa1 silence warning 2008-12-05 18:27:45 +01:00
Eike Ziller
9a801f897d Fixes: - Size of terminal when open in external editor on Mac 2008-12-02 17:56:01 +01:00
con
05c35356ab Initial import 2008-12-02 12:01:29 +01:00