Update build system

This commit is contained in:
Themaister 2011-01-06 20:12:25 +01:00
parent ce3bdc9aec
commit 948de95799
3 changed files with 9 additions and 7 deletions

View File

@ -4,7 +4,7 @@ TARGET = ssnes
OBJ = ssnes.o file.o driver.o conf/config_file.o settings.o dynamic.o
LIBS = -lsamplerate -lSDL
LIBS = -lsamplerate
DEFINES =
ifeq ($(HAVE_RSOUND), 1)

View File

@ -17,12 +17,13 @@ It is used through command-line.
SSNES requires these libraries to build:
- [libsnes](http://byuu.org/bsnes/)
- GLFW
- SDL
- libsamplerate
SSNES can utilize these libraries if enabled:
- nvidia-cg-toolkit
- libxml2 (bSNES XML shaders)
SSNES needs one of these audio driver libraries:
@ -67,13 +68,14 @@ Do note that these two options are mutually exclusive.
# Filters and Cg shader support
# Filters, bSNES XML shaders and Cg shader support
This is not strictly not necessary for an emulator, but it can be enabled if desired.
For best performance, Cg shaders are recommended as they do not eat up valuable CPU time.
Cg shaders are compiled at run-time, and shaders could be dropped in.
For best performance, Cg shaders or bSNES XML shaders are recommended as they do not eat up valuable CPU time (assuming your GPU can handle the shaders).
Cg shaders and XML shaders (GLSL) are compiled at run-time.
All shaders share a common interface to pass some essential arguments such as texture size and viewport size. (Common for pixel art scalers)
Some Cg shaders are included in hqflt/cg/ and could be used as an example.
bSNES XML shaders can be found on various places on the net. Best place to start looking are the bSNES forums.
While these shaders are Cg, they closely resemble the GLSL shaders found in bSNES shader pack, so porting them is trivial.
The Cg shaders closely resemble the GLSL shaders found in bSNES shader pack, so porting them is trivial if desired.

View File

@ -16,7 +16,7 @@ check_lib RSOUND -lrsound rsd_init
check_lib ROAR -lroar roar_vs_new
check_lib JACK -ljack jack_client_open
check_pkgconf SDL SDL_gfx
check_pkgconf SDL sdl
check_critical SDL "Cannot find SDL library."
check_lib CG -lCg cgCreateContext