mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
Build: Use sdl2-config for SDL2 includes (#5)
Fixes compilation on ARM Macs
This commit is contained in:
parent
be9d877765
commit
45661ded1c
4 changed files with 8 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -17,6 +17,8 @@ build/
|
|||
[Oo]bj/
|
||||
[Oo]bj.x86/
|
||||
[Oo]bj.x64/
|
||||
[Oo]bj.linux-*/
|
||||
[Oo]bj.osx-*/
|
||||
|
||||
# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
|
||||
!packages/*/build/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#pragma once
|
||||
#include <SDL2/SDL.h>
|
||||
#include "SDL.h"
|
||||
#include "Core/Shared/Interfaces/IRenderingDevice.h"
|
||||
#include "Utilities/SimpleLock.h"
|
||||
#include "Core/Shared/Video/VideoRenderer.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#pragma once
|
||||
#include <SDL2/SDL.h>
|
||||
#include "SDL.h"
|
||||
#include "Core/Shared/Audio/BaseSoundManager.h"
|
||||
|
||||
class Emulator;
|
||||
|
|
7
makefile
7
makefile
|
@ -18,7 +18,10 @@ else
|
|||
PROFILE_USE_FLAG = -fprofile-instr-use=$(CURDIR)/PGOHelper/pgo.profdata
|
||||
endif
|
||||
|
||||
CXXFLAGS=-fPIC -Wall --std=c++17 -O3 $(MESENFLAGS) -I/usr/include/SDL2 -I $(realpath ./) -I $(realpath ./Core) -I $(realpath ./Utilities) -I $(realpath ./Linux)
|
||||
SDL2LIB=$(shell sdl2-config --libs)
|
||||
SDL2INC=$(shell sdl2-config --cflags)
|
||||
|
||||
CXXFLAGS=-fPIC -Wall --std=c++17 -O3 $(MESENFLAGS) $(SDL2INC) -I $(realpath ./) -I $(realpath ./Core) -I $(realpath ./Utilities) -I $(realpath ./Linux)
|
||||
CFLAGS=-fPIC -Wall -O3 $(MESENFLAGS)
|
||||
|
||||
LINKCHECKUNRESOLVED=-Wl,-z,defs
|
||||
|
@ -104,8 +107,6 @@ else
|
|||
LIBEVDEVINC=-I../
|
||||
endif
|
||||
|
||||
SDL2LIB=$(shell sdl2-config --libs)
|
||||
SDL2INC=$(shell sdl2-config --cflags)
|
||||
FSLIB=-lstdc++fs
|
||||
|
||||
ifeq ($(MESENOS),osx)
|
||||
|
|
Loading…
Add table
Reference in a new issue