Make vs2022 path shared
This commit is contained in:
parent
26fca2525c
commit
af557a0dba
2 changed files with 12 additions and 10 deletions
|
@ -23,14 +23,14 @@ OBJS := $(OBJDIR)/capture.o \
|
||||||
$(OBJDIR)/nvfbc_library.o \
|
$(OBJDIR)/nvfbc_library.o \
|
||||||
$(OBJDIR)/main.o \
|
$(OBJDIR)/main.o \
|
||||||
|
|
||||||
LINK_LIBS := ~/vs2022/ucrt/lib/$(ARCH)/libucrt$(D).lib \
|
LINK_LIBS := $(VS2022_PATH)/ucrt/lib/$(ARCH)/libucrt$(D).lib \
|
||||||
~/vs2022/crt/lib/$(ARCH)/libcmt$(D).lib \
|
$(VS2022_PATH)/crt/lib/$(ARCH)/libcmt$(D).lib \
|
||||||
~/vs2022/crt/lib/$(ARCH)/libcpmt$(D).lib \
|
$(VS2022_PATH)/crt/lib/$(ARCH)/libcpmt$(D).lib \
|
||||||
~/vs2022/crt/lib/$(ARCH)/libvcruntime$(D).lib \
|
$(VS2022_PATH)/crt/lib/$(ARCH)/libvcruntime$(D).lib \
|
||||||
~/vs2022/winsdk/lib/$(ARCH)/kernel32.lib \
|
$(VS2022_PATH)/winsdk/lib/$(ARCH)/kernel32.lib \
|
||||||
~/vs2022/winsdk/lib/$(ARCH)/user32.lib \
|
$(VS2022_PATH)/winsdk/lib/$(ARCH)/user32.lib \
|
||||||
~/vs2022/winsdk/lib/$(ARCH)/comctl32.lib \
|
$(VS2022_PATH)/winsdk/lib/$(ARCH)/comctl32.lib \
|
||||||
~/vs2022/winsdk/lib/$(ARCH)/ws2_32.lib
|
$(VS2022_PATH)/winsdk/lib/$(ARCH)/ws2_32.lib
|
||||||
|
|
||||||
.PHONY: all dumpinfo clean matrix
|
.PHONY: all dumpinfo clean matrix
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
# Base compiler flags. Only change if you *explicitly* know what you're doing.
|
# Base compiler flags. Only change if you *explicitly* know what you're doing.
|
||||||
|
|
||||||
|
# replace this
|
||||||
|
VS2022_PATH := ~/vs2022
|
||||||
|
|
||||||
RC_INCLUDES := /I ~/vs2022/winsdk/include/um /I ~/vs2022/winsdk/include/shared
|
RC_INCLUDES := /I $(VS2022_PATH)/winsdk/include/um /I $(VS2022_PATH)/winsdk/include/shared
|
||||||
SDK_INCLUDES := -isystem ~/vs2022/ucrt/include -isystem ~/vs2022/crt/include -isystem ~/vs2022/winsdk/include/shared -isystem ~/vs2022/winsdk/include/um
|
SDK_INCLUDES := -isystem $(VS2022_PATH)/ucrt/include -isystem $(VS2022_PATH)/crt/include -isystem $(VS2022_PATH)/winsdk/include/shared -isystem $(VS2022_PATH)/winsdk/include/um
|
||||||
|
|
||||||
# Windows 6.1
|
# Windows 6.1
|
||||||
BASE_CCFLAGS := $(SDK_INCLUDES) -D_WIN32_WINNT=0x0601 -Ires -std=c17
|
BASE_CCFLAGS := $(SDK_INCLUDES) -D_WIN32_WINNT=0x0601 -Ires -std=c17
|
||||||
|
|
Loading…
Reference in a new issue