fixed OS X build

This commit is contained in:
Mathew Velasquez 2015-09-07 13:03:21 -04:00
parent 186dc1bfe9
commit ead39083d1
3 changed files with 13 additions and 4 deletions

View File

@ -43,9 +43,18 @@ contains(BINDING, NULL) {
unix {
CONFIG += link_pkgconfig
PKGCONFIG += sigc++-2.0 pixman-1 zlib physfs vorbisfile \
sdl2 SDL2_image SDL2_ttf SDL_sound openal
LIBS += -ldl
PKGCONFIG += sigc++-2.0 pixman-1 zlib vorbisfile \
sdl2 SDL2_image SDL2_ttf SDL_sound
LIBS += -ldl -lphysfs
macx: {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
CONFIG -= app_bundle
INCLUDEPATH += /System/Library/Frameworks/OpenAL.framework/Headers
LIBS += -framework OpenAL
}
!macx: {
PKGCONFIG += openal
}
SHARED_FLUID {
PKGCONFIG += fluidsynth

View File

@ -31,7 +31,6 @@
#include <al.h>
#include <alc.h>
#include <alext.h>
#include "sharedstate.h"
#include "graphics.h"

View File

@ -20,6 +20,7 @@
#include <SDL2/SDL_syswm.h>
#elif defined __APPLE__
#define OS_OSX
#include <pwd.h>
#elif defined __linux__
#define OS_LINUX
#include <stdlib.h>