From e033c0cfb218b599fcec138d859a2ee1f860e60e Mon Sep 17 00:00:00 2001 From: Xiaoqiang Wang Date: Wed, 1 Apr 2020 14:44:38 +0200 Subject: [PATCH] use MSVC via WINE to compile for windows --- configure/os/CONFIG.RHEL7-x86_64.win32-x86 | 5 +++++ configure/os/CONFIG.RHEL7-x86_64.windows-x64 | 5 +++++ configure/os/CONFIG_SITE.RHEL7-x86_64.Common | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 configure/os/CONFIG.RHEL7-x86_64.win32-x86 create mode 100644 configure/os/CONFIG.RHEL7-x86_64.windows-x64 diff --git a/configure/os/CONFIG.RHEL7-x86_64.win32-x86 b/configure/os/CONFIG.RHEL7-x86_64.win32-x86 new file mode 100644 index 000000000..45e886eaa --- /dev/null +++ b/configure/os/CONFIG.RHEL7-x86_64.win32-x86 @@ -0,0 +1,5 @@ +include $(CONFIG)/os/CONFIG.win32-x86.win32-x86 + +PATH_FILTER = $(subst /,/,$(1)) + +MSVC_DIR = /afs/psi/intranet/Controls/scratch/wine-msvc-2017/drive_c/msvc/bin/x86/ diff --git a/configure/os/CONFIG.RHEL7-x86_64.windows-x64 b/configure/os/CONFIG.RHEL7-x86_64.windows-x64 new file mode 100644 index 000000000..80f87e49c --- /dev/null +++ b/configure/os/CONFIG.RHEL7-x86_64.windows-x64 @@ -0,0 +1,5 @@ +include $(CONFIG)/os/CONFIG.windows-x64.windows-x64 + +PATH_FILTER = $(subst /,/,$(1)) + +MSVC_DIR = /afs/psi/intranet/Controls/scratch/wine-msvc-2017/drive_c/msvc/bin/x64/ diff --git a/configure/os/CONFIG_SITE.RHEL7-x86_64.Common b/configure/os/CONFIG_SITE.RHEL7-x86_64.Common index 70e181229..171b09dc7 100644 --- a/configure/os/CONFIG_SITE.RHEL7-x86_64.Common +++ b/configure/os/CONFIG_SITE.RHEL7-x86_64.Common @@ -11,3 +11,6 @@ CROSS_COMPILER_TARGET_ARCHS += SL6-x86_64 # Build for old SL6 32 bit CROSS_COMPILER_TARGET_ARCHS += SL6-x86 + +# WINE MSVC +CROSS_COMPILER_TARGET_ARCHS += win32-x86 windows-x64