[c-host] move dxgi capture into windows directory

This commit is contained in:
Geoffrey McRae 2019-02-28 19:44:15 +11:00
parent 532dc07c7b
commit 4fd62a58bd
4 changed files with 9 additions and 5 deletions

View file

@ -2,6 +2,9 @@ USE_DXGI ?= 1
CC=gcc.exe
OUTPUT = looking-glass-host
EXT =
CFLAGS = -std=gnu99 -Wall -Werror
CFLAGS += -g -O0
CFLAGS += -I.
@ -16,22 +19,23 @@ ifdef OS
OBJS += windows/platform.o
OBJS += windows/windebug.o
CFLAGS += -I../vendor/kvm-guest-drivers-windows
EXT = .exe
ifeq ($(USE_DXGI), 1)
CFLAGS += -DUSE_DXGI -DCOBJMACROS -DINITGUID
LIBS += -ld3d11 -ldxgi
DLLS += windows/dll/libd3d11.a
OBJS += capture/dxgi.o
OBJS += windows/capture/dxgi.o
endif
else
OBJS += linux/platform.o
endif
all: $(OBJS) $(DLLS)
$(CC) $(CFLAGS) $(LDFLAGS) -o looking-glass-host.exe $(OBJS) $(LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(OUTPUT)$(EXT) $(OBJS) $(LIBS)
clean:
rm -v $(OBJS) $(DLLS) looking-glass-host.exe
rm -v $(OBJS) $(DLLS) $(OUTPUT)$(EXT)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<

View file

@ -20,7 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include "interface.h"
#if defined(USE_DXGI)
extern struct CaptureInterface Capture_DXGI;
struct CaptureInterface Capture_DXGI;
#endif
struct CaptureInterface * CaptureInterfaces[] =

View file

@ -17,7 +17,7 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "interface.h"
#include "capture/interface.h"
#include "debug.h"
#include "windows/windebug.h"