source: trunk/tools/designer/src/lib/lib.pro@ 1077

Last change on this file since 1077 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=QtDesigner
3os2:TARGET_SHORT=QtDsgn
4QT += xml
5contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
6CONFIG += qt
7win32|mac: CONFIG += debug_and_release
8DESTDIR = ../../../../lib
9!wince*:DLLDESTDIR = ../../../../bin
10
11unix:QMAKE_PKGCONFIG_REQUIRES += QtXml
12
13include(../../../../src/qt_version.pri)
14include(../../../../src/qt_targets.pri)
15QMAKE_TARGET_PRODUCT = Designer
16QMAKE_TARGET_DESCRIPTION = Graphical user interface designer.
17
18!contains(CONFIG, static) {
19 CONFIG += dll
20
21 DEFINES += \
22 QDESIGNER_SDK_LIBRARY \
23 QDESIGNER_EXTENSION_LIBRARY \
24 QDESIGNER_UILIB_LIBRARY \
25 QDESIGNER_SHARED_LIBRARY
26} else {
27 DEFINES += QT_DESIGNER_STATIC
28}
29
30#load up the headers info
31CONFIG += qt_install_headers
32HEADERS_PRI = $$QT_BUILD_TREE/include/QtDesigner/headers.pri
33include($$HEADERS_PRI, "", true)|clear(HEADERS_PRI)
34
35#mac frameworks
36mac:CONFIG += explicitlib
37mac:!static:contains(QT_CONFIG, qt_framework) {
38 QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET
39 CONFIG += lib_bundle qt_no_framework_direct_includes qt_framework
40 CONFIG(debug, debug|release) {
41 !build_pass:CONFIG += build_all
42 } else { #release
43 !debug_and_release|build_pass {
44 CONFIG -= qt_install_headers #no need to install these as well
45 FRAMEWORK_HEADERS.version = Versions
46 FRAMEWORK_HEADERS.files = $$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES
47 FRAMEWORK_HEADERS.path = Headers
48 }
49 QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
50 }
51}
52
53include(extension/extension.pri)
54include(sdk/sdk.pri)
55include(uilib/uilib.pri)
56include(shared/shared.pri)
57PRECOMPILED_HEADER=lib_pch.h
58
59include(../sharedcomponents.pri)
60include(../components/component.pri)
61
62target.path=$$[QT_INSTALL_LIBS]
63INSTALLS += target
64win32|os2 {
65 dlltarget.path=$$[QT_INSTALL_BINS]
66 INSTALLS += dlltarget
67}
68
69
70qt_install_headers {
71 designer_headers.files = $$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES
72 designer_headers.path = $$[QT_INSTALL_HEADERS]/QtDesigner
73 INSTALLS += designer_headers
74}
Note: See TracBrowser for help on using the repository browser.