[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_DXGI ?= 1
USE_XCB ?= 1
OUTPUT = looking-glass-host OUTPUT = looking-glass-host
EXT = EXT =
@ -30,6 +31,11 @@ else
CC = gcc CC = gcc
OBJS += linux/platform.o OBJS += linux/platform.o
LIBS += -lpthread LIBS += -lpthread
ifeq ($(USE_XCB), 1)
CFLAGS += -DUSE_XCB
OBJS += linux/capture/xcb.o
endif
endif endif
all: $(OBJS) $(DLLS) all: $(OBJS) $(DLLS)

View file

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