From 146c32a14196356fbf3c3b5f2a7c6e41e3b59389 Mon Sep 17 00:00:00 2001
From: stijn
Date: Mon, 14 Aug 2017 12:12:30 +0200
Subject: windows/msvc: Enable overriding directories used in the build.
Append to PyIncDirs, used to define include directories specific to
MicroPython, instead of just overwriting it so project files importing this
file can define additional directories. And allow defining the target
directory for the executable instead of hardcoding it to the windows
directory. Main reason for this change is that it will allow building
mpy-cross with msvc.
---
ports/windows/msvc/common.props | 2 +-
ports/windows/msvc/paths.props | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
(limited to 'ports')
diff --git a/ports/windows/msvc/common.props b/ports/windows/msvc/common.props
index 6735f96d7..2545a3646 100644
--- a/ports/windows/msvc/common.props
+++ b/ports/windows/msvc/common.props
@@ -28,7 +28,7 @@
- $(PyWinDir)%(FileName)%(Extension)
+ $(PyTargetDir)%(FileName)%(Extension)
diff --git a/ports/windows/msvc/paths.props b/ports/windows/msvc/paths.props
index db3af4c0f..cfd43b708 100644
--- a/ports/windows/msvc/paths.props
+++ b/ports/windows/msvc/paths.props
@@ -26,9 +26,10 @@
$([System.IO.Path]::GetFullPath(`$(MSBuildThisFileDirectory)..\..\..`))\
$(PyBaseDir)ports\windows\
$(PyWinDir)build\
+ $(PyWinDir)
- $(PyBaseDir);$(PyWinDir);$(PyBuildDir);$(PyWinDir)msvc
+ $(PyIncDirs);$(PyBaseDir);$(PyWinDir);$(PyBuildDir);$(PyWinDir)msvc