Ifdef LibretroDB code

This commit is contained in:
twinaphex 2015-01-22 03:58:04 +01:00
parent dfd8d55f7a
commit ff570dcdf4
3 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
HAVE_LIBRETRODB = 1
ifeq ($(HAVE_LIBRETRODB), 1)
DEFINES += -DHAVE_LIBRETRODB
endif
ifeq ($(HAVE_FBO), 1) ifeq ($(HAVE_FBO), 1)
DEFINES += -DHAVE_FBO DEFINES += -DHAVE_FBO
endif endif
@ -165,11 +171,13 @@ OBJ += frontend/frontend.o \
# LibretroDB # LibretroDB
ifeq ($(HAVE_LIBRETRODB), 1)
OBJ += libretrodb/bintree.o \ OBJ += libretrodb/bintree.o \
libretrodb/rarchdb.o \ libretrodb/rarchdb.o \
libretrodb/query.o \ libretrodb/query.o \
libretrodb/rmsgpack.o \ libretrodb/rmsgpack.o \
libretrodb/rmsgpack_dom.o libretrodb/rmsgpack_dom.o
endif
# Miscellaneous # Miscellaneous

View File

@ -14,6 +14,8 @@
* If not, see <http://www.gnu.org/licenses/>. * If not, see <http://www.gnu.org/licenses/>.
*/ */
#define HAVE_LIBRETRODB
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL) #if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
#define HAVE_SHADERS #define HAVE_SHADERS
#endif #endif
@ -805,11 +807,13 @@ XML
/*============================================================ /*============================================================
LIBRETRODB LIBRETRODB
============================================================ */ ============================================================ */
#ifdef HAVE_LIBRETRODB
#include "../libretrodb/bintree.c" #include "../libretrodb/bintree.c"
#include "../libretrodb/rarchdb.c" #include "../libretrodb/rarchdb.c"
#include "../libretrodb/rmsgpack.c" #include "../libretrodb/rmsgpack.c"
#include "../libretrodb/rmsgpack_dom.c" #include "../libretrodb/rmsgpack_dom.c"
#include "../libretrodb/query.c" #include "../libretrodb/query.c"
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -3353,11 +3353,13 @@ static bool setting_data_append_list_main_menu_options(
subgroup_info.name); subgroup_info.name);
#endif #endif
#ifdef HAVE_LIBRETRODB
CONFIG_ACTION( CONFIG_ACTION(
"database_manager_list", "database_manager_list",
"Database Manager", "Database Manager",
group_info.name, group_info.name,
subgroup_info.name); subgroup_info.name);
#endif
if (g_settings.history_list_enable) if (g_settings.history_list_enable)
{ {
@ -5832,6 +5834,7 @@ static bool setting_data_append_list_path_options(
list_info, list_info,
SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR | SD_FLAG_BROWSER_ACTION); SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR | SD_FLAG_BROWSER_ACTION);
#ifdef HAVE_LIBRETRODB
CONFIG_DIR( CONFIG_DIR(
g_settings.content_database, g_settings.content_database,
"content_database_path", "content_database_path",
@ -5846,6 +5849,7 @@ static bool setting_data_append_list_path_options(
list, list,
list_info, list_info,
SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR | SD_FLAG_BROWSER_ACTION); SD_FLAG_ALLOW_EMPTY | SD_FLAG_PATH_DIR | SD_FLAG_BROWSER_ACTION);
#endif
CONFIG_DIR( CONFIG_DIR(
g_settings.cheat_database, g_settings.cheat_database,