Support Haiku OS specific libs and compile flags in the build system.

This commit is contained in:
Felix Kauselmann 2017-11-03 08:15:46 +01:00
parent 8c4f167fb0
commit 2c914d6579
4 changed files with 37 additions and 24 deletions

View File

@ -17,6 +17,11 @@ unix:!macx{
QMAKE_CXXFLAGS += -std=c++11
}
unix:haiku {
DEFINES += _BSD_SOURCE
LIBS += -lnetwork -lbsd
}
CONFIG(force_angle) {
contains(QMAKE_TARGET.arch, x86_64) {
Release:DESTDIR = ../release64_angle

View File

@ -19,6 +19,11 @@ QMAKE_MAC_SDK = macosx10.12
include (../config.pri)
include (../dependencies/pdf_backend.pri)
unix:haiku {
DEFINES += _BSD_SOURCE
LIBS += -lnetwork -lbsd
}
CONFIG(legacy_gl_widget) {
INCLUDEPATH += ../common/gl_legacy \
} else {
@ -66,11 +71,9 @@ unix:!macx:!CONFIG(no_opengl) {
}
macx {
LIBS += -framework Foundation -framework ApplicationServices -framework AppKit
CONFIG += objective_c
QT += macextras gui-private
LIBS += -framework Foundation -framework ApplicationServices -framework AppKit
CONFIG += objective_c
QT += macextras gui-private
}
unix:!macx {

View File

@ -33,6 +33,11 @@ unix {
CONFIG += c++11
}
unix:haiku {
DEFINES += _BSD_SOURCE
LIBS += -lnetwork -lbsd
}
#CONFIG += release
CONFIG -= flat
QT += core sql network