summaryrefslogtreecommitdiff
path: root/MSVC_NMake
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-07-08 16:07:52 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-07-09 12:18:46 +0800
commit3e858b7abc8dc0f177ee980acfa384de6bb81c66 (patch)
treec9933e586cf33ccf47c43e671ef0e3696bcbc625 /MSVC_NMake
parent9dfda25061547d5d09d56e5134bd843a6bd0c178 (diff)
NMake Makefiles: Support ARM64 Windows builds
This will make the NMake Makefiles capable of building ARM64 binaries of cairomm, which can be used on Windows 10 on ARM systems.
Diffstat (limited to 'MSVC_NMake')
-rw-r--r--MSVC_NMake/detectenv-msvc.mak4
1 files changed, 4 insertions, 0 deletions
diff --git a/MSVC_NMake/detectenv-msvc.mak b/MSVC_NMake/detectenv-msvc.mak
index c687835..bf2e906 100644
--- a/MSVC_NMake/detectenv-msvc.mak
+++ b/MSVC_NMake/detectenv-msvc.mak
@@ -68,6 +68,8 @@ _HASH=^#
&& ![echo PLAT=Win32 >> vercl.x] \
&& ![echo $(_HASH)elif defined(_M_AMD64) >> vercl.x] \
&& ![echo PLAT=x64 >> vercl.x] \
+ && ![echo $(_HASH)elif defined(_M_ARM64) >> vercl.x] \
+ && ![echo PLAT=arm64 >> vercl.x] \
&& ![echo $(_HASH)endif >> vercl.x] \
&& ![cl -nologo -TC -P vercl.x $(ERRNUL)]
!include vercl.i
@@ -145,6 +147,8 @@ CFLAGS_ADD_NO_GL = $(CFLAGS_ADD)
!if "$(PLAT)" == "x64"
LDFLAGS_ARCH = /machine:x64
+!elseif "$(PLAT)" == "arm64"
+LDFLAGS_ARCH = /machine:arm64
!else
LDFLAGS_ARCH = /machine:x86
!endif