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