diff options
author | David Dorfman <d3dave@users.noreply.github.com> | 2017-12-21 20:23:21 +0200 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-12-21 10:23:21 -0800 |
commit | 10bf008c73948d4592e567cdbce330dff724b1c2 (patch) | |
tree | 07e4edd0bca7196d0cfc96613b82e8404212ddc5 | |
parent | f4b7df08b27a2fe000424524957cf9cf10041193 (diff) | |
download | binaryen-10bf008c73948d4592e567cdbce330dff724b1c2.tar.gz binaryen-10bf008c73948d4592e567cdbce330dff724b1c2.tar.bz2 binaryen-10bf008c73948d4592e567cdbce330dff724b1c2.zip |
README: Add instructions for build with Visual C++ (#1337)
-rw-r--r-- | README.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -84,6 +84,28 @@ Note that you can also use `ninja` as your generator: `cmake -G Ninja . && ninja If you also want to compile C/C++ to WebAssembly (and not just asm.js to WebAssembly), you'll need Emscripten. You'll need the `incoming` branch there (which you can get via [the SDK](http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html)), for more details see [the wiki](https://github.com/kripken/emscripten/wiki/WebAssembly). +### Visual C++ + +1. Using the Microsoft Visual Studio Installer, install the "Visual C++ tools for CMake" component. + +1. Generate the projects: + + ``` + mkdir build + cd build + "%VISUAL_STUDIO_ROOT%\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" .. + ``` + + Substitute VISUAL_STUDIO_ROOT with the path to your Visual Studio installation. In case you are using the Visual Studio Build Tools, the path will be "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools". + +1. From the Developer Command Prompt, build the desired projects: + + ``` + msbuild binaryen.vcxproj + ``` + + CMake generates a project named "ALL_BUILD.vcxproj" for conveniently building all the projects. + ## Running ### wasm-opt |