CONFIG(release, debug|release): DEFINES *= NDEBUG
-macx|linux|openbsd {
+unix {
if (equals(MAKEFILE_GENERATOR, XCODE)) {
# "Configure tests are not supported with the XCODE Makefile generator"
# assume we have the following headers
QMAKE_CLEAN += $${OUT_PWD}/testo.d/*.vglog
# build the compilation data base used by clang tools including clang-tidy.
-macx|linux|openbsd{
+unix {
compile_command_database.target = compile_commands.json
compile_command_database.commands = $(MAKE) clean; bear $(MAKE)
QMAKE_EXTRA_TARGETS += compile_command_database
-macx|linux|openbsd {
+unix {
!defined(WITH_LIBUSB, var) {
- macx: WITH_LIBUSB = included
- linux|openbsd: WITH_LIBUSB = system
+ mac: WITH_LIBUSB = included
+ !mac: WITH_LIBUSB = system
}
equals(WITH_LIBUSB, no) {
message("libusb-1.0 disabled")
PKGCONFIG += libusb-1.0
DEFINES += LIBUSB_H_INCLUDE=$$shell_quote(<libusb.h>)
} else {
- linux|openbsd {
+ !mac {
equals(WITH_LIBUSB, system) {
LIBS += "-lusb-1.0"
DEFINES += LIBUSB_H_INCLUDE=$$shell_quote(<libusb-1.0/libusb.h>)
}
}
- macx {
+ mac {
equals(WITH_LIBUSB, included) {
# TODO: It would be better to create an archive and link to it
# to separate library build requirements from gpsbabel requirements.