From 94873a48263d5923ba0640900b801b13fcd309d7 Mon Sep 17 00:00:00 2001
From: stijn
Date: Fri, 11 Aug 2017 15:33:39 +0200
Subject: 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(-)
(limited to 'ports')
diff --git a/ports/windows/micropython.vcxproj b/ports/windows/micropython.vcxproj
index ee0b98abb..e468cfdae 100644
--- a/ports/windows/micropython.vcxproj
+++ b/ports/windows/micropython.vcxproj
@@ -25,29 +25,19 @@
Application
- true$(DefaultPlatformToolset)
- MultiByteApplication
- false$(DefaultPlatformToolset)
- true
- MultiByteApplication
- true$(DefaultPlatformToolset)
- MultiByteApplication
- false$(DefaultPlatformToolset)
- true
- MultiByte
diff --git a/ports/windows/msvc/common.props b/ports/windows/msvc/common.props
index 5fe1b45fe..6735f96d7 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 fa1ca4fcb..5ae9d64fc 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 ea0bf433d..a3fbe2494 100644
--- a/ports/windows/msvc/release.props
+++ b/ports/windows/msvc/release.props
@@ -2,7 +2,10 @@
-
+
+ false
+ true
+ true
--
cgit v1.2.3