summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-04-05 09:41:15 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-04-07 12:59:31 +0530
commitf136f5aad811b8d0c73c12086f00d523f7beb1e3 (patch)
treee4c0956799c7b4469a6d6d77591ce02b0e592654
parent9c9f2a619a9456077ecb79513d32eb0100a58c78 (diff)
downloadmeson-nirbheek/update-old-vs-docs.tar.gz
docs: Update Using-with-Visual Studionirbheek/update-old-vs-docs
Very out of date instructions. We install `meson.exe` now and you don't need to have `py` in PATH or use `/path/to/meson.py`.
-rw-r--r--docs/markdown/Using-with-Visual-Studio.md21
1 files changed, 11 insertions, 10 deletions
diff --git a/docs/markdown/Using-with-Visual-Studio.md b/docs/markdown/Using-with-Visual-Studio.md
index 38325a3a8..c66cf3c6f 100644
--- a/docs/markdown/Using-with-Visual-Studio.md
+++ b/docs/markdown/Using-with-Visual-Studio.md
@@ -6,19 +6,20 @@ short-description: How to use meson in Visual Studio
In order to generate Visual Studio projects, Meson needs to know the settings
of your installed version of Visual Studio. The only way to get this
-information is to run Meson under the Visual Studio Command Prompt. The steps
-to set it up are as follows:
+information is to run Meson under the Visual Studio Command Prompt.
-1. Click on start menu and select "Visual Studio 2015 Command Prompt"
-1. cd into your source directory
-1. mkdir builddir
-1. py -3 path/to/meson.py builddir --backend vs2015
+You can always find the Visual Studio Command Prompt by searching from the
+Start Menu. However, the name is different for each Visual Studio version. With
+Visual Studio 2019, look for "x64 Native Tools Command Prompt for VS 2019".
+The next steps are [the same as always](https://mesonbuild.com/Running-Meson.html#configuring-the-build-directory):
-If you wish to use the Ninja backend instead of vs2015, pass `--backend
-ninja`. At the time of writing the Ninja backend is more mature than the VS
-backend so you might want to use it for serious work.
+1. `cd` into your source directory
+1. `meson setup builddir`, which will create and setup the build directory
+1. `meson compile -C builddir`, to compile your code. You can also use `ninja -C builddir` here if you are using the default Ninja backend.
-This assumes the py launcher is in your `PATH`, which is highly recommended.
+If you wish to generate Visual Studio project files, pass `--backend vs`.
+At the time of writing the Ninja backend is more mature than the VS backend so
+you might want to use it for serious work.
# Using Clang-CL with Visual Studio