Some additional fixes. Build in libxml2 for shader support.

This commit is contained in:
Themaister 2011-01-07 18:26:19 +01:00
parent 35124dc288
commit 5ecc622524
2 changed files with 11 additions and 3 deletions

View File

@ -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)

View File

@ -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;