mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-24 14:41:53 +00:00
[c-host] linux: added initial stubs for XCB capture
This commit is contained in:
parent
37c1d7ea58
commit
afc264e846
2 changed files with 13 additions and 0 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
};
|
};
|
Loading…
Reference in a new issue