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

Last change on this file since 5 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

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