From 94873a48263d5923ba0640900b801b13fcd309d7 Mon Sep 17 00:00:00 2001 From: stijn Date: Fri, 11 Aug 2017 15:33:39 +0200 Subject: [PATCH] windows/msvc: Move build options from .vcxproj to .props files. We want the .vcxproj to be just a container with the minimum content for making it work as a project file for Visual Studio and MSBuild, whereas the actual build options and actions get placed in separate reusable files. This was roughly the case already except some compiler options were overlooked; fix this here: we'll need those common options when adding a project file for building mpy-cross. --- ports/windows/micropython.vcxproj | 10 ---------- ports/windows/msvc/common.props | 1 + ports/windows/msvc/debug.props | 2 ++ ports/windows/msvc/release.props | 5 ++++- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/ports/windows/micropython.vcxproj b/ports/windows/micropython.vcxproj index ee0b98abba..e468cfdae8 100644 --- a/ports/windows/micropython.vcxproj +++ b/ports/windows/micropython.vcxproj @@ -25,29 +25,19 @@ Application - true $(DefaultPlatformToolset) - MultiByte Application - false $(DefaultPlatformToolset) - true - MultiByte Application - true $(DefaultPlatformToolset) - MultiByte Application - false $(DefaultPlatformToolset) - true - MultiByte diff --git a/ports/windows/msvc/common.props b/ports/windows/msvc/common.props index 5fe1b45fef..6735f96d70 100644 --- a/ports/windows/msvc/common.props +++ b/ports/windows/msvc/common.props @@ -8,6 +8,7 @@ $(PyOutDir) $(PyIntDir) $(PyBuildDir)copycookie$(Configuration)$(Platform) + MultiByte diff --git a/ports/windows/msvc/debug.props b/ports/windows/msvc/debug.props index fa1ca4fcbc..5ae9d64fcd 100644 --- a/ports/windows/msvc/debug.props +++ b/ports/windows/msvc/debug.props @@ -3,6 +3,8 @@ + true + false diff --git a/ports/windows/msvc/release.props b/ports/windows/msvc/release.props index ea0bf433d3..a3fbe2494f 100644 --- a/ports/windows/msvc/release.props +++ b/ports/windows/msvc/release.props @@ -2,7 +2,10 @@ - + + false + true + true