mirror of
https://github.com/romixlab/qmsgpack.git
synced 2025-07-29 18:07:16 +02:00
Re-use qmsgpack.pri in library builds
Deduplicates the build rules and ensures no differences in source-in and library build rules
This commit is contained in:
@ -1,7 +1,5 @@
|
|||||||
QT += core
|
QT += core
|
||||||
|
|
||||||
DEFINES += MSGPACK_MAKE_LIB
|
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD/src
|
INCLUDEPATH += $$PWD/src
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
|
32
src/src.pro
32
src/src.pro
@ -1,5 +1,3 @@
|
|||||||
QT += core
|
|
||||||
|
|
||||||
TARGET = qmsgpack
|
TARGET = qmsgpack
|
||||||
CONFIG -= app_bundle
|
CONFIG -= app_bundle
|
||||||
|
|
||||||
@ -13,27 +11,7 @@ CONFIG(debug, debug|release) {
|
|||||||
TARGET = $$join(TARGET,,,d)
|
TARGET = $$join(TARGET,,,d)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include(../qmsgpack.pri)
|
||||||
SOURCES += msgpack.cpp \
|
|
||||||
msgpackcommon.cpp \
|
|
||||||
private/pack_p.cpp \
|
|
||||||
private/unpack_p.cpp \
|
|
||||||
private/qt_types_p.cpp \
|
|
||||||
msgpackstream.cpp \
|
|
||||||
stream/time.cpp \
|
|
||||||
stream/geometry.cpp
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
msgpack.h \
|
|
||||||
private/pack_p.h \
|
|
||||||
private/unpack_p.h \
|
|
||||||
endianhelper.h \
|
|
||||||
msgpackcommon.h \
|
|
||||||
msgpack_export.h \
|
|
||||||
private/qt_types_p.h \
|
|
||||||
msgpackstream.h \
|
|
||||||
stream/time.h \
|
|
||||||
stream/geometry.h
|
|
||||||
|
|
||||||
HEADERS_INSTALL = \
|
HEADERS_INSTALL = \
|
||||||
msgpack.h \
|
msgpack.h \
|
||||||
@ -46,15 +24,7 @@ STREAM_HEADERS_INSTALL = \
|
|||||||
stream/geometry.h \
|
stream/geometry.h \
|
||||||
stream/time.h
|
stream/time.h
|
||||||
|
|
||||||
qtHaveModule(gui) {
|
|
||||||
QT += gui
|
|
||||||
}
|
|
||||||
|
|
||||||
qtHaveModule(location) {
|
qtHaveModule(location) {
|
||||||
QT += location
|
|
||||||
|
|
||||||
SOURCES += stream/location.cpp
|
|
||||||
HEADERS += stream/location.h
|
|
||||||
STREAM_HEADERS_INSTALL += stream/location.h
|
STREAM_HEADERS_INSTALL += stream/location.h
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user