[host] mingw-w64 compile fixes (#44)

* [host] rename min() to LG_MIN()

* [host] format string type fixes, %Ix doesn't exist in mingw

* [host] DXGI minor fixes

* [host] mingw lacks media foundation api headers and QISearch
This commit is contained in:
arcnmx
2018-01-30 05:07:46 -05:00
committed by Geoffrey McRae
parent d7321d5f5f
commit 35b4d75eea
6 changed files with 48 additions and 29 deletions

View File

@@ -1,11 +1,12 @@
BINARY = looking-glass-host.exe
CFLAGS = -g -O3 -march=native -Wall -Werror -I./ -I../common # -DDEBUG
LDFLAGS = -lshlwapi -ldxgi -ld3d11 -lsetupapi -luuid
LDFLAGS = -lshlwapi -ldxgi -ld3d11 -lsetupapi -luuid -lole32 -lmfplat -lmfuuid
CFLAGS += -ffast-math
CFLAGS += -fdata-sections -ffunction-sections
CFLAGS += -I../ -I.
LDFLAGS += -Wl,--gc-sections -mwindows
CFLAGS += -DWINVER=0x0602
PREFIX ?= x86_64-w64-mingw32-
STRIP = $(PREFIX)strip