Skip to content

Commit

Permalink
Merge pull request #317 from mortend/vs2019
Browse files Browse the repository at this point in the history
More Visual Studio 2019
  • Loading branch information
mortend authored Apr 18, 2020
2 parents 016f0fd + 41c4fd2 commit 559e08e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/build-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Uno is built using the command-line on Linux, macOS or Windows – or [from insi
Our cross-platform build scripts are written in `bash`, and `make` is a convenient way to invoke the different build tasks.
Bash is included in [Git for Windows](https://git-scm.com/downloads).

On Windows, we need [vswhere] to locate your Visual Studio 2017 installation. Please make sure we can find `vswhere` in
On Windows, we need [vswhere] to locate your Visual Studio installation. Please make sure we can find `vswhere` in
`%PATH%` or at `%PROGRAMFILES(x86)%\Microsoft Visual Studio\Installer`.

[vswhere]: https://github.com/Microsoft/vswhere
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ iOS.DeveloperTeam: ABCD012345
To support building native apps, we need [CMake](https://cmake.org/) and C++ compilers.

- **macOS:** Xcode with command line tools
- **Windows:** Visual Studio 2017
- **Windows:** Visual Studio 2019

## Node.js

Expand Down
1 change: 0 additions & 1 deletion lib/UnoCore/Targets/Native/Native.uxl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<Set Condition="!WIN32 && !LIBRARY" Product="@(BinaryDirectory)/@(Project.Name)" />
<Set Condition="!WIN32 && LIBRARY" Product="@(BinaryDirectory)/lib@(Project.Name).@(MAC:Defined:Test('dylib', 'so'))" />
<Set Condition="WIN32" Product="@(BinaryDirectory)/@(Project.Name).@(LIBRARY:Defined:Test('dll', 'exe'))" />
<Set Condition="WIN32" CMake.Generator="Visual Studio 16 2019" />

<Set Commands.Build="@(WIN32:Defined:Test('build.bat', 'bash build.sh'))" />
<Set Commands.Run="@(WIN32:Defined:Test('run.bat', 'bash run.sh'))" />
Expand Down
2 changes: 1 addition & 1 deletion lib/UnoCore/Targets/Native/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if not %ERRORLEVEL% == 0 (

pushd "%~dp0"

cmake -G"@(CMake.Generator)" .
cmake -G"Visual Studio 16 2019" .
if not %ERRORLEVEL% == 0 (popd && exit /b %ERRORLEVEL%)

cmake --build . -- /p:Configuration=@(Native.Configuration) /m
Expand Down
6 changes: 3 additions & 3 deletions lib/UnoCore/Targets/Native/run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ if "%1" == "debug" (

pushd "%~dp0"

cmake -G"@(CMake.Generator)" .
cmake -G"Visual Studio 16 2019" .
if not %ERRORLEVEL% == 0 (popd && exit /b %ERRORLEVEL%)

echo Opening Visual Studio 2017
@(Uno) open -a"Visual Studio 2017" -t"@(Project.Name) - Microsoft Visual Studio" "@(Project.Name).sln"
echo Opening Visual Studio 2019
@(Uno) open -a"Visual Studio 2019" -t"@(Project.Name) - Microsoft Visual Studio" "@(Project.Name).sln"
popd && exit /b %ERRORLEVEL%
)

Expand Down

0 comments on commit 559e08e

Please sign in to comment.