mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Add unix_common
This commit is contained in:
parent
a84ebda75c
commit
17e5e57bed
@ -83,6 +83,7 @@ ifneq ($(findstring Linux,$(OS)),)
|
||||
frontend/drivers/platform_linux.o
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(findstring Haiku,$(OS)),)
|
||||
LIBS += -lm
|
||||
DEBUG_FLAG = -g
|
||||
@ -633,6 +634,7 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
|
||||
ifeq ($(HAVE_VULKAN), 1)
|
||||
OBJ += gfx/drivers_context/wayland_ctx_vulkan.o
|
||||
endif
|
||||
UNIX_COMMON=1
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_GLES), 1)
|
||||
@ -660,6 +662,11 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
|
||||
DEFINES += -DHAVE_GLSL
|
||||
endif
|
||||
|
||||
ifeq ($(UNIX_COMMON),1)
|
||||
OBJ += gfx/common/unix_common.o
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(HAVE_EGL), 1)
|
||||
OBJ += gfx/common/egl_common.o
|
||||
endif
|
||||
|
28
gfx/common/unix_common.c
Normal file
28
gfx/common/unix_common.c
Normal file
@ -0,0 +1,28 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2011-2016 - Daniel De Matteis
|
||||
*
|
||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||
* of the GNU General Public License as published by the Free Software Found-
|
||||
* ation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "unix_common.h"
|
||||
|
||||
bool unix_common_ctl(enum unix_common_ctl_state state, void *data)
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
default:
|
||||
case UNIX_COMMON_NONE:
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
28
gfx/common/unix_common.h
Normal file
28
gfx/common/unix_common.h
Normal file
@ -0,0 +1,28 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2011-2016 - Daniel De Matteis
|
||||
*
|
||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||
* of the GNU General Public License as published by the Free Software Found-
|
||||
* ation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _UNIX_COMMON_H
|
||||
#define _UNIX_COMMON_H
|
||||
|
||||
#include <boolean.h>
|
||||
|
||||
enum unix_common_ctl_state
|
||||
{
|
||||
UNIX_COMMON_NONE = 0
|
||||
};
|
||||
|
||||
bool unix_common_ctl(enum unix_common_ctl_state state, void *data);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user