|
|
@ -16,10 +16,17 @@ OBJECTS_DIR = build |
|
|
|
MOC_DIR = build |
|
|
|
MOC_DIR = build |
|
|
|
UI_DIR = build |
|
|
|
UI_DIR = build |
|
|
|
|
|
|
|
|
|
|
|
# use: qmake "USE_UPNP=0" (disable by default) or "USE_UPNP=1" (enable by default) |
|
|
|
# use: qmake "USE_UPNP=1" ( enabled by default; default) |
|
|
|
# miniupnpc (http://miniupnp.free.fr/files/) must be installed |
|
|
|
# or: qmake "USE_UPNP=0" (disabled by default) |
|
|
|
count(USE_UPNP, 1) { |
|
|
|
# or: qmake "USE_UPNP=-" (not supported) |
|
|
|
|
|
|
|
# miniupnpc (http://miniupnp.free.fr/files/) must be installed for support |
|
|
|
|
|
|
|
contains(USE_UPNP, -) { |
|
|
|
|
|
|
|
message(Building without UPNP support) |
|
|
|
|
|
|
|
} else { |
|
|
|
message(Building with UPNP support) |
|
|
|
message(Building with UPNP support) |
|
|
|
|
|
|
|
count(USE_UPNP, 0) { |
|
|
|
|
|
|
|
USE_UPNP=1 |
|
|
|
|
|
|
|
} |
|
|
|
DEFINES += USE_UPNP=$$USE_UPNP |
|
|
|
DEFINES += USE_UPNP=$$USE_UPNP |
|
|
|
LIBS += -lminiupnpc |
|
|
|
LIBS += -lminiupnpc |
|
|
|
} |
|
|
|
} |
|
|
|