source: trunk/tools/designer/src/components/lib/lib.pro

Last change on this file was 1077, checked in by Dmitry A. Kuminov, 14 years ago

Use a common file for VERSION definition.

This is much better than spreading this information over five
different files (three of which are forgotten and haven't been
updated since Qt 4.3.0).

This fixes a r1050 regression that caused Designer DLLs to
lose the major version suffix and completely supersedes r385
(still fixing what r1050 fixed).

File size: 2.0 KB
Line 
1TEMPLATE = lib
2TARGET = QtDesignerComponents
3os2:TARGET_SHORT = QtDsgC
4contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
5CONFIG += qt depend_prl no_objective_c designer
6win32|mac: CONFIG += debug_and_release
7QTDIR_build {
8 DESTDIR = $$QT_BUILD_TREE/lib
9 !wince*:DLLDESTDIR = $$QT_BUILD_TREE/bin
10}
11
12# QtDesignerComponents uses
13DEFINES += QT_STATICPLUGIN
14
15include(../../../../../src/qt_version.pri)
16include(../../../../../src/qt_targets.pri)
17QMAKE_TARGET_PRODUCT = Designer
18QMAKE_TARGET_DESCRIPTION = Graphical user interface designer.
19
20#load up the headers info
21CONFIG += qt_install_headers
22HEADERS_PRI = $$QT_BUILD_TREE/include/QtDesigner/headers.pri
23include($$HEADERS_PRI, "", true)|clear(HEADERS_PRI)
24
25#mac frameworks
26mac:!static:contains(QT_CONFIG, qt_framework) {
27 QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET
28 CONFIG += lib_bundle qt_no_framework_direct_includes qt_framework
29 CONFIG(debug, debug|release):!build_pass:CONFIG += build_all
30}
31
32SOURCES += qdesigner_components.cpp
33
34!contains(CONFIG, static) {
35 DEFINES += QDESIGNER_COMPONENTS_LIBRARY
36 CONFIG += dll
37 LIBS += -lQtDesigner
38} else {
39 DEFINES += QT_DESIGNER_STATIC
40}
41
42INCLUDEPATH += . .. \
43 $$PWD/../../lib/components \
44 $$PWD/../../lib/sdk \
45 $$PWD/../../lib/extension \
46 $$PWD/../../lib/uilib \
47 $$PWD/../../lib/shared
48
49include(../propertyeditor/propertyeditor.pri)
50include(../objectinspector/objectinspector.pri)
51include(../signalsloteditor/signalsloteditor.pri)
52include(../formeditor/formeditor.pri)
53include(../widgetbox/widgetbox.pri)
54include(../buddyeditor/buddyeditor.pri)
55include(../taskmenu/taskmenu.pri)
56include(../tabordereditor/tabordereditor.pri)
57
58PRECOMPILED_HEADER= lib_pch.h
59
60include(../../sharedcomponents.pri)
61include(../component.pri)
62
63unix {
64 QMAKE_PKGCONFIG_REQUIRES = QtCore QtDesigner QtGui QtXml
65 contains(QT_CONFIG, script): QMAKE_PKGCONFIG_REQUIRES += QtScript
66}
67
68target.path=$$[QT_INSTALL_LIBS]
69INSTALLS += target
70win32|os2 {
71 dlltarget.path=$$[QT_INSTALL_BINS]
72 INSTALLS += dlltarget
73}
Note: See TracBrowser for help on using the repository browser.