mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 16:46:28 +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
|
CC=gcc.exe
|
||||||
|
|
||||||
|
OUTPUT = looking-glass-host
|
||||||
|
EXT =
|
||||||
|
|
||||||
CFLAGS = -std=gnu99 -Wall -Werror
|
CFLAGS = -std=gnu99 -Wall -Werror
|
||||||
CFLAGS += -g -O0
|
CFLAGS += -g -O0
|
||||||
CFLAGS += -I.
|
CFLAGS += -I.
|
||||||
@ -16,22 +19,23 @@ ifdef OS
|
|||||||
OBJS += windows/platform.o
|
OBJS += windows/platform.o
|
||||||
OBJS += windows/windebug.o
|
OBJS += windows/windebug.o
|
||||||
CFLAGS += -I../vendor/kvm-guest-drivers-windows
|
CFLAGS += -I../vendor/kvm-guest-drivers-windows
|
||||||
|
EXT = .exe
|
||||||
|
|
||||||
ifeq ($(USE_DXGI), 1)
|
ifeq ($(USE_DXGI), 1)
|
||||||
CFLAGS += -DUSE_DXGI -DCOBJMACROS -DINITGUID
|
CFLAGS += -DUSE_DXGI -DCOBJMACROS -DINITGUID
|
||||||
LIBS += -ld3d11 -ldxgi
|
LIBS += -ld3d11 -ldxgi
|
||||||
DLLS += windows/dll/libd3d11.a
|
DLLS += windows/dll/libd3d11.a
|
||||||
OBJS += capture/dxgi.o
|
OBJS += windows/capture/dxgi.o
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
OBJS += linux/platform.o
|
OBJS += linux/platform.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: $(OBJS) $(DLLS)
|
all: $(OBJS) $(DLLS)
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o looking-glass-host.exe $(OBJS) $(LIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $(OUTPUT)$(EXT) $(OBJS) $(LIBS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -v $(OBJS) $(DLLS) looking-glass-host.exe
|
rm -v $(OBJS) $(DLLS) $(OUTPUT)$(EXT)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
@ -20,7 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#include "interface.h"
|
#include "interface.h"
|
||||||
|
|
||||||
#if defined(USE_DXGI)
|
#if defined(USE_DXGI)
|
||||||
extern struct CaptureInterface Capture_DXGI;
|
struct CaptureInterface Capture_DXGI;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct CaptureInterface * CaptureInterfaces[] =
|
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
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "interface.h"
|
#include "capture/interface.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "windows/windebug.h"
|
#include "windows/windebug.h"
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user