mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:03:40 +00:00
[c-host] move dxgi capture into windows directory
This commit is contained in:
parent
532dc07c7b
commit
4fd62a58bd
@ -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 $@ $<
|
||||
|
@ -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[] =
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user