Skip to content

Commit 9c7ff87

Browse files
stinosdpgeorge
authored andcommitted
all: Keep msvc build output in build/ directories.
This follow the change made for Makefile-based projects in b2e8240.
1 parent db19ee7 commit 9c7ff87

File tree

9 files changed

+20
-11
lines changed

9 files changed

+20
-11
lines changed

Diff for: mpy-cross/mpy-cross.vcxproj

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<PyBuildingMpyCross>True</PyBuildingMpyCross>
2525
<PyBuildDir>$(MSBuildThisFileDirectory)build\</PyBuildDir>
2626
<PyIncDirs>$(MSBuildThisFileDirectory)</PyIncDirs>
27-
<PyTargetDir>$(MSBuildThisFileDirectory)</PyTargetDir>
2827
<PyMsvcDir>$(MSBuildThisFileDirectory)..\ports\windows\msvc\</PyMsvcDir>
2928
</PropertyGroup>
3029
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />

Diff for: ports/windows/.appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ after_test:
7878
if ($LASTEXITCODE -ne 0) {
7979
throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
8080
}
81-
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1 MICROPY_MPYCROSS=../../mpy-cross/mpy-cross.exe VARIANT=$($env:PyVariant)"
81+
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1 MICROPY_MPYCROSS=../../mpy-cross/build/mpy-cross.exe VARIANT=$($env:PyVariant)"
8282
if ($LASTEXITCODE -ne 0) {
8383
throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
8484
}

Diff for: ports/windows/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ functions and thus should be ran using the `wineconsole` tool. Depending
128128
on the Wine build configuration, you may also want to select the curses
129129
backend which has the look&feel of a standard Unix console:
130130

131-
wineconsole --backend=curses ./micropython.exe
131+
wineconsole --backend=curses ./build-standard/micropython.exe
132132

133133
For more info, see https://www.winehq.org/docs/wineusr-guide/cui-programs .
134134

Diff for: ports/windows/msvc/paths.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
|- standard [PyVariantDir]
2323
2424
Note that the micropython executable will be copied from PyOutDir
25-
to PyWinDir after each build. -->
25+
to PyTargetDir after each build. -->
2626

2727
<!-- Start from project root -->
2828
<PyBaseDir>$([System.IO.Path]::GetFullPath(`$(MSBuildThisFileDirectory)..\..\..`))\</PyBaseDir>
2929
<PyWinDir>$(PyBaseDir)ports\windows\</PyWinDir>
3030
<PyBuildDir Condition="'$(PyBuildDir)' == ''">$(PyWinDir)$(PyBuild)\</PyBuildDir>
3131
<PyVariantDir Condition="'$(PyVariantDir)' == ''">$(PyWinDir)variants\$(PyVariant)\</PyVariantDir>
32-
<PyTargetDir Condition="'$(PyTargetDir)' == ''">$(PyWinDir)</PyTargetDir>
32+
<PyTargetDir Condition="'$(PyTargetDir)' == ''">$(PyBuildDir)</PyTargetDir>
3333

3434
<!-- All include directories needed for uPy -->
3535
<PyIncDirs>$(PyIncDirs);$(PyBaseDir);$(PyWinDir);$(PyBuildDir);$(PyWinDir)msvc;$(PyVariantDir)</PyIncDirs>

Diff for: tests/run-internalbench.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
# to the correct executable.
1414
if os.name == "nt":
1515
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3.exe")
16-
MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", "../ports/windows/micropython.exe")
16+
MICROPYTHON = os.getenv(
17+
"MICROPY_MICROPYTHON", "../ports/windows/build-standard/micropython.exe"
18+
)
1719
else:
1820
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3")
1921
MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", "../ports/unix/build-standard/micropython")

Diff for: tests/run-multitests.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727

2828
if os.name == "nt":
2929
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3.exe")
30-
MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", test_dir + "/../ports/windows/micropython.exe")
30+
MICROPYTHON = os.getenv(
31+
"MICROPY_MICROPYTHON", test_dir + "/../ports/windows/build-standard/micropython.exe"
32+
)
3133
else:
3234
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3")
3335
MICROPYTHON = os.getenv(

Diff for: tests/run-perfbench.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
# Paths for host executables
1919
if os.name == "nt":
2020
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3.exe")
21-
MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", "../ports/windows/micropython.exe")
21+
MICROPYTHON = os.getenv(
22+
"MICROPY_MICROPYTHON", "../ports/windows/build-standard/micropython.exe"
23+
)
2224
else:
2325
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3")
2426
MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", "../ports/unix/build-standard/micropython")

Diff for: tests/run-tests.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ def base_path(*p):
3030
# to the correct executable.
3131
if os.name == "nt":
3232
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python")
33-
MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", base_path("../ports/windows/micropython.exe"))
33+
MICROPYTHON = os.getenv(
34+
"MICROPY_MICROPYTHON", base_path("../ports/windows/build-standard/micropython.exe")
35+
)
3436
# mpy-cross is only needed if --via-mpy command-line arg is passed
35-
MPYCROSS = os.getenv("MICROPY_MPYCROSS", base_path("../mpy-cross/mpy-cross.exe"))
37+
MPYCROSS = os.getenv("MICROPY_MPYCROSS", base_path("../mpy-cross/build/mpy-cross.exe"))
3638
else:
3739
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3")
3840
MICROPYTHON = os.getenv(

Diff for: tools/gen-cpydiff.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
# to the correct executable.
3939
if os.name == "nt":
4040
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3.exe")
41-
MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", "../ports/windows/micropython.exe")
41+
MICROPYTHON = os.getenv(
42+
"MICROPY_MICROPYTHON", "../ports/windows/build-standard/micropython.exe"
43+
)
4244
else:
4345
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3")
4446
MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", "../ports/unix/build-standard/micropython")

0 commit comments

Comments
 (0)