mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-13 13:28:49 +00:00
More cleanup...
This commit is contained in:
parent
9006c77fcf
commit
38616ee794
2
Makefile
2
Makefile
@ -26,7 +26,7 @@ ifeq ($(HAVE_AL), 1)
|
||||
LIBS += -lopenal
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_OPENGL), 1)
|
||||
ifeq ($(HAVE_GLFW), 1)
|
||||
OBJ += gfx/gl.o
|
||||
LIBS += -lglfw
|
||||
endif
|
||||
|
3
driver.c
3
driver.c
@ -21,6 +21,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "hqflt/filters.h"
|
||||
#include "config.h"
|
||||
|
||||
static const audio_driver_t *audio_drivers[] = {
|
||||
#ifdef HAVE_ALSA
|
||||
@ -41,7 +42,7 @@ static const audio_driver_t *audio_drivers[] = {
|
||||
};
|
||||
|
||||
static const video_driver_t *video_drivers[] = {
|
||||
#ifdef HAVE_GL
|
||||
#ifdef HAVE_GLFW
|
||||
&video_gl,
|
||||
#endif
|
||||
};
|
||||
|
@ -19,6 +19,8 @@
|
||||
#ifndef __FILTERS_H
|
||||
#define __FILTERS_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_FILTER
|
||||
|
||||
#include "pastlib.h"
|
||||
|
@ -16,10 +16,12 @@ check_lib ROAR -lroar roar_vs_new
|
||||
check_lib GLFW -lglfw glfwInit
|
||||
check_critical GLFW "Cannot find GLFW library."
|
||||
|
||||
check_lib CG -lCg cgCreateContext
|
||||
|
||||
check_lib SRC -lsamplerate src_callback_new
|
||||
|
||||
# Creates config.mk.
|
||||
VARS="ALSA OSS AL RSOUND ROAR GLFW FILTERS"
|
||||
VARS="ALSA OSS AL RSOUND ROAR GLFW FILTER CG"
|
||||
create_config_make config.mk $VARS
|
||||
create_config_header config.h $VARS
|
||||
|
||||
|
@ -8,7 +8,7 @@ PACKAGE_VERSION=0.1
|
||||
# $2: Comment
|
||||
# $3: Default arg. auto implies that HAVE_ALSA will be set according to library checks later on.
|
||||
add_command_line_string LIBSNES "libsnes library used" "-lsnes"
|
||||
add_command_line_enable FILTERS "Disable CPU filter support" yes
|
||||
add_command_line_enable FILTER "Disable CPU filter support" yes
|
||||
add_command_line_enable CG "Enable CG shader support" auto
|
||||
add_command_line_enable ALSA "Enable ALSA support" auto
|
||||
add_command_line_enable OSS "Enable OSS support" auto
|
||||
|
@ -277,9 +277,9 @@ create_config_make()
|
||||
do
|
||||
tmpval="HAVE_$1"
|
||||
eval tmpval=\$$tmpval
|
||||
if [ $tmpval = yes ]; then
|
||||
if [ "$tmpval" = yes ]; then
|
||||
echo "HAVE_$1 = 1" >> "$outfile"
|
||||
elif [ $tmpval = no ]; then
|
||||
elif [ "$tmpval" = no ]; then
|
||||
echo "HAVE_$1 = 0" >> "$outfile"
|
||||
fi
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "hqflt/filters.h"
|
||||
#include "config.h"
|
||||
|
||||
struct settings g_settings;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user