Mercurial > DynamicMail
changeset 38:a69dab167dd4
Win: Use PLATFORM to detect target CPU using Visual Studio 2015.
author | Brian Smith <brian@dbsoft.org> |
---|---|
date | Tue, 30 Jun 2020 23:44:35 -0500 |
parents | 123dc24dc32b |
children | 683ab0f780e8 |
files | makefile.vc minimal/makefile.vc mysql/makefile.vc |
diffstat | 3 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/makefile.vc Fri May 15 06:58:35 2020 -0500 +++ b/makefile.vc Tue Jun 30 23:44:35 2020 -0500 @@ -11,11 +11,17 @@ # Configure settings for the target platform # Default to x86 if not specified # +!if "$(TARGET_CPU)" == "" !if "$(VSCMD_ARG_TGT_ARCH)" == "" +!if "$(PLATFORM)" == "" TARGET_CPU=x86 !else +TARGET_CPU=$(PLATFORM) +!endif +!else TARGET_CPU=$(VSCMD_ARG_TGT_ARCH) !endif +!endif !if "$(TARGET_CPU)" == "x86" PLATFORM_DEF = -DWIN32
--- a/minimal/makefile.vc Fri May 15 06:58:35 2020 -0500 +++ b/minimal/makefile.vc Tue Jun 30 23:44:35 2020 -0500 @@ -9,11 +9,17 @@ # Configure settings for the target platform # Default to x86 if not specified # +!if "$(TARGET_CPU)" == "" !if "$(VSCMD_ARG_TGT_ARCH)" == "" +!if "$(PLATFORM)" == "" TARGET_CPU=x86 !else +TARGET_CPU=$(PLATFORM) +!endif +!else TARGET_CPU=$(VSCMD_ARG_TGT_ARCH) !endif +!endif !if "$(TARGET_CPU)" == "x86" PLATFORM_DEF = -DWIN32
--- a/mysql/makefile.vc Fri May 15 06:58:35 2020 -0500 +++ b/mysql/makefile.vc Tue Jun 30 23:44:35 2020 -0500 @@ -9,11 +9,17 @@ # Configure settings for the target platform # Default to x86 if not specified # +!if "$(TARGET_CPU)" == "" !if "$(VSCMD_ARG_TGT_ARCH)" == "" +!if "$(PLATFORM)" == "" TARGET_CPU=x86 !else +TARGET_CPU=$(PLATFORM) +!endif +!else TARGET_CPU=$(VSCMD_ARG_TGT_ARCH) !endif +!endif !if "$(TARGET_CPU)" == "x86" PLATFORM_DEF = -DWIN32