build Mac OS X binary with SDL2
This commit is contained in:
		
							parent
							
								
									a62e97f986
								
							
						
					
					
						commit
						2eec1f805b
					
				@ -190,6 +190,11 @@ else
 | 
			
		||||
    SDLLOPT = -isysroot $(MACOSX_SYSROOT) $(MACOSX_ARCH) -L/usr/lib -framework SDL -framework SDL_image -framework Cocoa -framework Carbon -framework OpenGL
 | 
			
		||||
    SDLCOPT = $(MACOSX_ARCH) -I$(FWDIR)/SDL.framework/Headers -I$(FWDIR)/SDL_image.framework/Headers -I$(FWDIR)/SDL_ttf.framework/Headers -D_THREAD_SAFE
 | 
			
		||||
endif
 | 
			
		||||
endif
 | 
			
		||||
ifeq ($(API),sdl2)
 | 
			
		||||
    SDLCOPT = $(shell sdl2-config --cflags)
 | 
			
		||||
    SDLLOPT = $(shell sdl2-config --libs) $(shell pkg-config --libs SDL2_image)
 | 
			
		||||
    SDLLOPT += -Wl,-framework,Cocoa
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
    # these are for use with macports
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user