[c-host] linux: added initial stubs for XCB capture

This commit is contained in:
Geoffrey McRae 2019-03-01 21:41:32 +11:00
parent 37c1d7ea58
commit afc264e846
2 changed files with 13 additions and 0 deletions

View File

@ -1,4 +1,5 @@
USE_DXGI ?= 1
USE_XCB ?= 1
OUTPUT = looking-glass-host
EXT =
@ -30,6 +31,11 @@ else
CC = gcc
OBJS += linux/platform.o
LIBS += -lpthread
ifeq ($(USE_XCB), 1)
CFLAGS += -DUSE_XCB
OBJS += linux/capture/xcb.o
endif
endif
all: $(OBJS) $(DLLS)

View File

@ -23,10 +23,17 @@ Place, Suite 330, Boston, MA 02111-1307 USA
struct CaptureInterface Capture_DXGI;
#endif
#if defined(USE_XCB)
struct CaptureInterface Capture_XCB;
#endif
struct CaptureInterface * CaptureInterfaces[] =
{
#if defined(USE_DXGI)
&Capture_DXGI,
#endif
#if defined(USE_XCB)
&Capture_XCB,
#endif
NULL
};