fixed OS X build
This commit is contained in:
		
							parent
							
								
									186dc1bfe9
								
							
						
					
					
						commit
						ead39083d1
					
				
					 3 changed files with 13 additions and 4 deletions
				
			
		
							
								
								
									
										15
									
								
								mkxp.pro
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								mkxp.pro
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,6 @@
 | 
			
		|||
 | 
			
		||||
#include <al.h>
 | 
			
		||||
#include <alc.h>
 | 
			
		||||
#include <alext.h>
 | 
			
		||||
 | 
			
		||||
#include "sharedstate.h"
 | 
			
		||||
#include "graphics.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue