Make it possible to disable Qt type pack handlers at build time

usable with either
  qmake DEFINES+=MSGPACK_NO_PACKTYPES
or
  DEFINES += MSGPACK_STATIC MSGPACK_NO_PACKTYPES
  include(path/to/qmsgpack/qmsgpack.pri)
This commit is contained in:
Konstantin Ritt
2018-11-20 20:57:25 +03:00
parent 34afb5aba3
commit 0b8282d592
4 changed files with 45 additions and 26 deletions

View File

@@ -3,6 +3,10 @@ TEMPLATE = subdirs
SUBDIRS += \
pack \
unpack \
mixed \
stream \
qttypes
mixed
!contains(DEFINES, MSGPACK_NO_PACKTYPES) {
SUBDIRS += \
stream \
qttypes
}