From 67ad0519fd165acee4a4d2a94fa502e9e4847bd0 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 23 Mar 2009 10:34:13 +0100 Subject: Long live Qt! --- projects.pro | 142 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 projects.pro (limited to 'projects.pro') diff --git a/projects.pro b/projects.pro new file mode 100644 index 0000000000..2596c0a00f --- /dev/null +++ b/projects.pro @@ -0,0 +1,142 @@ +##################################################################### +# Main projectfile +##################################################################### + +CONFIG += ordered +TEMPLATE = subdirs + +cross_compile: CONFIG += nostrip + +isEmpty(QT_BUILD_PARTS) { #defaults + QT_BUILD_PARTS = libs tools examples demos docs translations +} else { #make sure the order makes sense + contains(QT_BUILD_PARTS, tools) { + QT_BUILD_PARTS -= tools + QT_BUILD_PARTS = tools $$QT_BUILD_PARTS + } + contains(QT_BUILD_PARTS, libs) { + QT_BUILD_PARTS -= libs + QT_BUILD_PARTS = libs $$QT_BUILD_PARTS + } + contains(QT_BUILD_PARTS, qmake) { + QT_BUILD_PARTS -= qmake + QT_BUILD_PARTS = qmake $$QT_BUILD_PARTS + } +} + +#process the projects +for(PROJECT, $$list($$lower($$unique(QT_BUILD_PARTS)))) { + isEqual(PROJECT, tools) { + SUBDIRS += tools + } else:isEqual(PROJECT, examples) { + SUBDIRS += examples + } else:isEqual(PROJECT, demos) { + SUBDIRS += demos + } else:isEqual(PROJECT, libs) { + include(src/src.pro) + } else:isEqual(PROJECT, docs) { + contains(QT_BUILD_PARTS, tools):include(doc/doc.pri) + } else:isEqual(PROJECT, translations) { + contains(QT_BUILD_PARTS, tools):include(translations/translations.pri) + } else:isEqual(PROJECT, qmake) { +# SUBDIRS += qmake + } else { + message(Unknown PROJECT: $$PROJECT) + } +} + +confclean.depends += clean +confclean.commands = +unix { + confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \ + (cd config.tests/unix/endian && $(MAKE) distclean); \ + (cd config.tests/unix/ipv6 && $(MAKE) distclean); \ + (cd config.tests/unix/largefile && $(MAKE) distclean); \ + (cd config.tests/unix/ptrsize && $(MAKE) distclean); \ + (cd config.tests/x11/notype && $(MAKE) distclean); \ + (cd config.tests/unix/getaddrinfo && $(MAKE) distclean); \ + (cd config.tests/unix/cups && $(MAKE) distclean); \ + (cd config.tests/unix/psql && $(MAKE) distclean); \ + (cd config.tests/unix/mysql && $(MAKE) distclean); \ + (cd config.tests/unix/mysql_r && $(MAKE) distclean); \ + (cd config.tests/unix/nis && $(MAKE) distclean); \ + (cd config.tests/unix/nix && $(MAKE) distclean); \ + (cd config.tests/unix/odbc && $(MAKE) distclean); \ + (cd config.tests/unix/oci && $(MAKE) distclean); \ + (cd config.tests/unix/tds && $(MAKE) distclean); \ + (cd config.tests/unix/db2 && $(MAKE) distclean); \ + (cd config.tests/unix/ibase && $(MAKE) distclean); \ + (cd config.tests/unix/ipv6ifname && $(MAKE) distclean); \ + (cd config.tests/unix/zlib && $(MAKE) distclean); \ + (cd config.tests/unix/libmng && $(MAKE) distclean); \ + (cd config.tests/unix/sqlite2 && $(MAKE) distclean); \ + (cd config.tests/unix/libjpeg && $(MAKE) distclean); \ + (cd config.tests/unix/libpng && $(MAKE) distclean); \ + (cd config.tests/x11/xcursor && $(MAKE) distclean); \ + (cd config.tests/x11/xrender && $(MAKE) distclean); \ + (cd config.tests/x11/xrandr && $(MAKE) distclean); \ + (cd config.tests/x11/xkb && $(MAKE) distclean); \ + (cd config.tests/x11/xinput && $(MAKE) distclean); \ + (cd config.tests/x11/fontconfig && $(MAKE) distclean); \ + (cd config.tests/x11/xinerama && $(MAKE) distclean); \ + (cd config.tests/x11/sm && $(MAKE) distclean); \ + (cd config.tests/x11/xshape && $(MAKE) distclean); \ + (cd config.tests/x11/opengl && $(MAKE) distclean); \ + $(DEL_FILE) config.tests/.qmake.cache; \ + $(DEL_FILE) src/core/global/qconfig.h; \ + $(DEL_FILE) src/core/global/qconfig.cpp; \ + $(DEL_FILE) mkspecs/qconfig.pri; \ + $(DEL_FILE) .qmake.cache; \ + (cd qmake && $(MAKE) distclean); +} +win32 { + confclean.commands += -$(DEL_FILE) src\core\global\qconfig.h $$escape_expand(\n\t) \ + -$(DEL_FILE) src\core\global\qconfig.cpp $$escape_expand(\n\t) \ + -$(DEL_FILE) mkspecs\qconfig.pri $$escape_expand(\n\t) \ + -$(DEL_FILE) .qmake.cache $$escape_expand(\n\t) \ + (cd qmake && $(MAKE) distclean) +} +QMAKE_EXTRA_TARGETS += confclean +qmakeclean.commands += (cd qmake && $(MAKE) clean) +QMAKE_EXTRA_TARGETS += qmakeclean +CLEAN_DEPS += qmakeclean + +CONFIG -= qt + +### installations #### + +#translations +translations.path=$$[QT_INSTALL_TRANSLATIONS] +translations.files = $$QT_SOURCE_TREE/translations/*.qm +INSTALLS += translations + +#qmake +qmake.path=$$[QT_INSTALL_BINS] +win32 { + qmake.files=$$QT_BUILD_TREE/bin/qmake.exe +} else { + qmake.files=$$QT_BUILD_TREE/bin/qmake +} +INSTALLS += qmake + +#mkspecs +mkspecs.path=$$[QT_INSTALL_DATA]/mkspecs +mkspecs.files=$$QT_BUILD_TREE/mkspecs/qconfig.pri $$QT_SOURCE_TREE/mkspecs/* +unix { + DEFAULT_QMAKESPEC = $$QMAKESPEC + DEFAULT_QMAKESPEC ~= s,^.*mkspecs/,,g + mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default +} +INSTALLS += mkspecs + +false:macx { #mac install location + macdocs.files = $$htmldocs.files + macdocs.path = /Developer/Documentation/Qt + INSTALLS += macdocs +} + +!win32:contains(QT_CONFIG, qtusagereporter) { + usagereporter.path=$$[QT_INSTALL_BINS] + usagereporter.files=$$QT_BUILD_TREE/bin/qtusagereporter + INSTALLS += usagereporter +} -- cgit v1.2.3 From 8aef511877d460e4d7e75c978142f1ca3bd50451 Mon Sep 17 00:00:00 2001 From: Bill King Date: Thu, 28 May 2009 11:12:26 +1000 Subject: Adds support for linking against iodbc on linux. If unixodbc detection fails, try and link/detect iodbc libraries and link against them. Reviewed-by: Lincoln Ramsay --- projects.pro | 1 + 1 file changed, 1 insertion(+) (limited to 'projects.pro') diff --git a/projects.pro b/projects.pro index 2596c0a00f..3817792778 100644 --- a/projects.pro +++ b/projects.pro @@ -61,6 +61,7 @@ unix { (cd config.tests/unix/mysql_r && $(MAKE) distclean); \ (cd config.tests/unix/nis && $(MAKE) distclean); \ (cd config.tests/unix/nix && $(MAKE) distclean); \ + (cd config.tests/unix/iodbc && $(MAKE) distclean); \ (cd config.tests/unix/odbc && $(MAKE) distclean); \ (cd config.tests/unix/oci && $(MAKE) distclean); \ (cd config.tests/unix/tds && $(MAKE) distclean); \ -- cgit v1.2.3 From 5717e44d47bf5f6be59a59844223ce71b094b08e Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 9 Jun 2009 17:08:44 +0200 Subject: turn qm generation into a build time target consequently, remove the qm files from the repository this uses some really black magic to convince qmake to do the right thing. this will be fixed properly in a later version. Reviewed-by: mariusSO --- projects.pro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'projects.pro') diff --git a/projects.pro b/projects.pro index 2596c0a00f..03ce0984e3 100644 --- a/projects.pro +++ b/projects.pro @@ -37,7 +37,10 @@ for(PROJECT, $$list($$lower($$unique(QT_BUILD_PARTS)))) { } else:isEqual(PROJECT, docs) { contains(QT_BUILD_PARTS, tools):include(doc/doc.pri) } else:isEqual(PROJECT, translations) { - contains(QT_BUILD_PARTS, tools):include(translations/translations.pri) + contains(QT_BUILD_PARTS, tools) { + include(translations/translations.pri) # ts targets + SUBDIRS += translations # qm build step + } } else:isEqual(PROJECT, qmake) { # SUBDIRS += qmake } else { -- cgit v1.2.3