tools/assistant/compat/lib/lib.pro
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 TEMPLATE        = lib
       
     2 QT += network
       
     3 TARGET                = QtAssistantClient
       
     4 isEmpty(QT_MAJOR_VERSION) {
       
     5    VERSION=4.3.0
       
     6 } else {
       
     7    VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
       
     8 }
       
     9 
       
    10 CONFIG                += qt warn_on
       
    11 mac|win32:CONFIG                += debug_and_release
       
    12 mac:unix:CONFIG       += explicitlib
       
    13 CONFIG                -= dll
       
    14 
       
    15 HEADERS         = qassistantclient.h \
       
    16                   qassistantclient_global.h
       
    17 SOURCES         = qassistantclient.cpp
       
    18 
       
    19 DESTDIR                = ../../../../lib
       
    20 DLLDESTDIR             = ../../../../bin
       
    21 
       
    22 unix {
       
    23         QMAKE_CFLAGS += $$QMAKE_CFLAGS_SHLIB
       
    24         QMAKE_CXXFLAGS += $$QMAKE_CXXFLAGS_SHLIB
       
    25 }
       
    26 
       
    27 DEFINES += QT_ASSISTANT_CLIENT_LIBRARY
       
    28 contains(CONFIG, static) {
       
    29     DEFINES += QT_ASSISTANT_CLIENT_STATIC
       
    30 }
       
    31 
       
    32 #load up the headers info
       
    33 CONFIG += qt_install_headers
       
    34 HEADERS_PRI = $$QT_BUILD_TREE/include/QtAssistant/headers.pri
       
    35 include($$HEADERS_PRI, "", true)|clear(HEADERS_PRI)
       
    36 
       
    37 #mac frameworks
       
    38 mac:!static:contains(QT_CONFIG, qt_framework) {
       
    39    TARGET = QtAssistant    # Change the name to match the headers
       
    40    QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET
       
    41    CONFIG += lib_bundle qt_no_framework_direct_includes qt_framework
       
    42    CONFIG(debug, debug|release) {
       
    43       !build_pass:CONFIG += build_all
       
    44    } else { #release
       
    45       !debug_and_release|build_pass {
       
    46 	  CONFIG -= qt_install_headers #no need to install these as well
       
    47 	  FRAMEWORK_HEADERS.version = Versions
       
    48 	  FRAMEWORK_HEADERS.files = $$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES
       
    49       	  FRAMEWORK_HEADERS.path = Headers
       
    50       }
       
    51       QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
       
    52    }
       
    53 }
       
    54 
       
    55 TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #done towards the end
       
    56 
       
    57 target.path=$$[QT_INSTALL_LIBS]
       
    58 INSTALLS        += target
       
    59 win32 {
       
    60     dlltarget.path=$$[QT_INSTALL_BINS]
       
    61     INSTALLS += dlltarget
       
    62 }
       
    63 
       
    64 qt_install_headers {
       
    65     assistant_headers.files = $$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES
       
    66     assistant_headers.path = $$[QT_INSTALL_HEADERS]/QtAssistant
       
    67     INSTALLS        += assistant_headers
       
    68 }
       
    69 
       
    70 unix {
       
    71    CONFIG     += create_pc
       
    72    QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS]
       
    73    QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS]/QtAssistant
       
    74    QMAKE_PKGCONFIG_CFLAGS = -I$$[QT_INSTALL_HEADERS]
       
    75    QMAKE_PKGCONFIG_DESTDIR = pkgconfig
       
    76    QMAKE_PKGCONFIG_REQUIRES += QtNetwork
       
    77 }
       
    78