aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Molkentin <daniel.molkentin@nokia.com>2009-01-20 14:58:10 +0100
committerDaniel Molkentin <daniel.molkentin@nokia.com>2009-01-21 08:52:19 +0100
commit194175cce70b238dea014e4e4e1ceb4b95290ec0 (patch)
tree8f15bce9b9dcfcf50d66f57d8ea523f4746062ea
parenta534a1e4d76138b3751d75a2c0fdf33f48d26e2a (diff)
Fixes: make install workd
Details: Make install works now, we just have to agree on layout details and check for mac compatibility. Also, plugins will carry no version in their filename anymore starting with this commit. Versioning happens in the creators pluginloader using the pluginspec file.
-rw-r--r--doc/doc.pri5
-rw-r--r--qtcreator.pro20
-rw-r--r--src/app/app.pro4
-rw-r--r--src/qworkbench.pri14
-rw-r--r--src/qworkbenchlibrary.pri2
-rw-r--r--src/qworkbenchplugin.pri10
6 files changed, 20 insertions, 35 deletions
diff --git a/doc/doc.pri b/doc/doc.pri
index bfcaaecf33..4ed0de9937 100644
--- a/doc/doc.pri
+++ b/doc/doc.pri
@@ -21,6 +21,11 @@ qch_docs.commands = $$HELPGENERATOR -o $$QCH_FILE $$QHP_FILE
qch_docs.depends += html_docs
qch_docs.files = $$QCH_FILE
+linux-* {
+ qch_docs.path = /share/doc/qtcreator
+ INSTALLS += qch_docs
+}
+
macx {
cp_docs.commands = $${QMAKE_COPY_DIR} $${OUT_PWD}/doc $${OUT_PWD}/bin/QtCreator.app/Contents/Resources
cp_docs.depends += qch_docs
diff --git a/qtcreator.pro b/qtcreator.pro
index faaa070988..fe0e0c2795 100644
--- a/qtcreator.pro
+++ b/qtcreator.pro
@@ -5,26 +5,12 @@ count(TOO_OLD_LIST, 1) {
error("Use at least Qt 4.5.")
}
-
-linux-* {
- isEmpty( LOCATION ) {
- LOCATION = /usr/share
- }
- documentation.files += doc/qtcreator.qch
- documentation.path = $$LOCATION/share/qtcreator/doc/qtcreator
-
- share.files += share/qtcreator/*
- share.parth = $$LOCATION/share/qtcreator
-
-
- INSTALLS += \
- documentation \
- share
-}
+include(doc/doc.pri)
+include(share/share.pri)
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS = src
-include(doc/doc.pri)
+message($$INSTALLS)
diff --git a/src/app/app.pro b/src/app/app.pro
index e839964ba1..c42e206d5d 100644
--- a/src/app/app.pro
+++ b/src/app/app.pro
@@ -16,10 +16,6 @@ linux-* {
ISGCC33=$$(GCC33)
!equals(ISGCC33, 1):QT += svg dbus
- isEmpty( LOCATION ) {
- error("app.pro: including file must define LOCATION (didn't you run qmake from the root dir?)")
- }
-
binaries.files += bin/qtcreator
binaries.path = $$LOCATION/bin
diff --git a/src/qworkbench.pri b/src/qworkbench.pri
index b76b421802..0fe4418fca 100644
--- a/src/qworkbench.pri
+++ b/src/qworkbench.pri
@@ -6,12 +6,6 @@ isEmpty(TEST):CONFIG(debug, debug|release) {
}
}
-linux-* {
- isEmpty( LOCATION ) {
- error("qworkbench.pri: including file must define LOCATION (didn't you run qmake from the root dir?)")
- }
-}
-
equals(TEST, 1) {
QT +=testlib
DEFINES += WITH_TESTS
@@ -21,12 +15,14 @@ isEmpty(IDE_BUILD_TREE) {
error("qworkbench.pri: including file must define IDE_BUILD_TREE (probably a relative path)")
}
macx {
- IDE_APP_TARGET = QtCreator
+ IDE_APP_TARGET = QtCreator
IDE_LIBRARY_PATH = $$IDE_BUILD_TREE/bin/$${IDE_APP_TARGET}.app/Contents/PlugIns
+ IDE_PLUGIN_PATH = $$IDE_LIBRARY_PATH
contains(QT_CONFIG, ppc):CONFIG += ppc x86
} else {
- IDE_APP_TARGET = qtcreator
- IDE_LIBRARY_PATH = $$IDE_BUILD_TREE/share/qtcreator/lib
+ IDE_APP_TARGET = qtcreator
+ IDE_LIBRARY_PATH = $$IDE_BUILD_TREE/share/lib/qtcreator
+ IDE_PLUGIN_PATH = $$IDE_LIBRARY_PATH/plugins/
}
IDE_APP_PATH = $$IDE_BUILD_TREE/bin
win32 {
diff --git a/src/qworkbenchlibrary.pri b/src/qworkbenchlibrary.pri
index 46f28f443e..5425e1813d 100644
--- a/src/qworkbenchlibrary.pri
+++ b/src/qworkbenchlibrary.pri
@@ -24,4 +24,4 @@ contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
linux-* {
target.path = $$LOCATION/lib/qtcreator
INSTALLS += target
-} \ No newline at end of file
+}
diff --git a/src/qworkbenchplugin.pri b/src/qworkbenchplugin.pri
index e689f6ed3b..d73f0e8456 100644
--- a/src/qworkbenchplugin.pri
+++ b/src/qworkbenchplugin.pri
@@ -7,7 +7,7 @@ isEmpty(PROVIDER) {
PROVIDER = Nokia
}
-DESTDIR = $$IDE_LIBRARY_PATH/$$PROVIDER/
+DESTDIR = $$IDE_PLUGIN_PATH/$$PROVIDER/
LIBS += -L$$DESTDIR
INCLUDEPATH += $$IDE_SOURCE_TREE/src/plugins
DEPENDPATH += $$IDE_SOURCE_TREE/src/plugins
@@ -49,9 +49,11 @@ macx {
contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
-
+CONFIG += plugin
linux-* {
- target.path = $$LOCATION/lib/qtcreator/plugins
- INSTALLS += target
+ target.path = /lib/qtcreator/plugins
+ pluginspec.files += $${TARGET}.pluginspec
+ pluginspec.path = /lib/qtcreator/plugins
+ INSTALLS += target pluginspec
}