qtcreatorlibrary.pri 774 Bytes
Newer Older
1
include($$replace(_PRO_FILE_PWD_, ([^/]+$), \\1/\\1_dependencies.pri))
2
TARGET = $$QTC_LIB_NAME
3

4 5
include(../qtcreator.pri)

6 7 8
# use precompiled header for libraries by default
isEmpty(PRECOMPILED_HEADER):PRECOMPILED_HEADER = $$PWD/shared/qtcreator_pch.h

con's avatar
con committed
9
win32 {
10
    DLLDESTDIR = $$IDE_APP_PATH
con's avatar
con committed
11 12 13 14
}

DESTDIR = $$IDE_LIBRARY_PATH

15 16 17 18
osx {
    QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/Frameworks/
    QMAKE_LFLAGS += -compatibility_version $$QTCREATOR_COMPAT_VERSION
}
19
include(rpath.pri)
con's avatar
con committed
20

21
TARGET = $$qtLibraryTargetName($$TARGET)
con's avatar
con committed
22

23
TEMPLATE = lib
24 25
CONFIG += shared dll

con's avatar
con committed
26
contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
27

28 29 30 31 32 33
win32 {
    dlltarget.path = $$INSTALL_BIN_PATH
    INSTALLS += dlltarget
} else {
    target.path = $$INSTALL_LIBRARY_PATH
    INSTALLS += target
34
}