diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-07-08 16:07:52 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-07-08 16:46:27 +0800 |
commit | 6874e2f09cf28933784934b37598c3d21ec93cea (patch) | |
tree | df74ebc7779d0a26f0ef413a2406757be26cfd6c | |
parent | db75c985f7f9659613d31f9b97ca4b7d00b5d64b (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.
-rw-r--r-- | MSVC_NMake/detectenv-msvc.mak | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MSVC_NMake/detectenv-msvc.mak b/MSVC_NMake/detectenv-msvc.mak index 38bc704..d60b306 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 @@ -141,6 +143,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 |