mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-19 01:12:33 +00:00
Some additional fixes. Build in libxml2 for shader support.
This commit is contained in:
parent
35124dc288
commit
5ecc622524
@ -6,10 +6,11 @@ CXX = g++
|
||||
|
||||
HAVE_SRC = 1
|
||||
HAVE_SDL = 1
|
||||
HAVE_XML = 1
|
||||
libsnes ?= -lsnes
|
||||
|
||||
LIBS =
|
||||
DEFINES = -I. -DHAVE_SRC -DHAVE_SDL
|
||||
DEFINES = -I.
|
||||
LDFLAGS = -L.
|
||||
|
||||
SRC_LIBS = -lsamplerate-0
|
||||
@ -18,13 +19,19 @@ SDL_CFLAGS = -ISDL
|
||||
|
||||
ifeq ($(HAVE_SRC), 1)
|
||||
LIBS += $(SRC_LIBS)
|
||||
DEFINES += $(SRC_CFLAGS)
|
||||
DEFINES += $(SRC_CFLAGS) -DHAVE_SRC
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_SDL), 1)
|
||||
OBJ += gfx/gl.o input/sdl.o audio/sdl.o audio/buffer.o
|
||||
LIBS += $(SDL_LIBS) -lopengl32
|
||||
DEFINES += $(SDL_CFLAGS)
|
||||
DEFINES += $(SDL_CFLAGS) -DHAVE_SDL
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_XML), 1)
|
||||
OBJ += gfx/shader_glsl.o
|
||||
DEFINES += $(XML_CFLAGS) -DHAVE_XML
|
||||
LIBS += -lxml2
|
||||
endif
|
||||
|
||||
LIBS += $(libsnes)
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
#include <GL/glext.h>
|
||||
|
||||
static PFNGLCREATEPROGRAMPROC glCreateProgram = NULL;
|
||||
static PFNGLUSEPROGRAMPROC glUseProgram = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user