mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 13:27:33 +02:00
@@ -2,6 +2,7 @@ Version 118:
|
|||||||
|
|
||||||
* file_win32 opens for read-only in shared mode
|
* file_win32 opens for read-only in shared mode
|
||||||
* Remove unused strands in server examples
|
* Remove unused strands in server examples
|
||||||
|
* Update build instructions
|
||||||
|
|
||||||
HTTP:
|
HTTP:
|
||||||
|
|
||||||
|
31
README.md
31
README.md
@@ -88,22 +88,31 @@ library to link with. If you use coroutines you'll also need to link
|
|||||||
with the Boost.Coroutine library. Please visit the Boost documentation
|
with the Boost.Coroutine library. Please visit the Boost documentation
|
||||||
for instructions on how to do this for your particular build system.
|
for instructions on how to do this for your particular build system.
|
||||||
|
|
||||||
For the examples and tests, Beast provides build scripts for Boost.Build
|
To build the documentation, examples, tests, and benchmarks it is
|
||||||
(bjam) and CMake (Windows). It is possible to generate Microsoft Visual
|
necessary to first obtain the boost "superproject" along with all
|
||||||
Studio project files using CMake by executing these commands from
|
of the boost libraries. Instructions for doing so may be found on
|
||||||
the root of the repository:
|
the [Boost Wiki](https://github.com/boostorg/boost/wiki/Getting-Started).
|
||||||
|
These commamnds will build the programs and documentation that come
|
||||||
|
with Beast (omit the cxxflags parameter when building using MSVC):
|
||||||
|
|
||||||
```
|
```
|
||||||
|
cd boost # The directory containing the boost superproject and libraries
|
||||||
|
b2 libs/beast/test cxxflags="-std=c++11" # bjam must be in your $PATH
|
||||||
|
b2 libs/beast/example cxxflags="-std=c++11"
|
||||||
|
b2 libs/beast/doc
|
||||||
|
```
|
||||||
|
|
||||||
|
On Windows platforms only, CMake may be used to generate a Visual Studio
|
||||||
|
solution and a set of Visual Studio project files using these commands:
|
||||||
|
|
||||||
|
```
|
||||||
|
cd boost # The directory containing the boost superproject and libraries
|
||||||
|
cd libs/beast
|
||||||
mkdir bin
|
mkdir bin
|
||||||
cd bin
|
cd bin
|
||||||
cmake .. # for 32-bit Windows builds
|
cmake .. # for 32-bit Windows builds, or
|
||||||
|
cmake -G"Visual Studio 14 2015 Win64" .. # for 64-bit Windows builds (VS2015), or
|
||||||
cd ..
|
|
||||||
mkdir bin64
|
|
||||||
cd bin64
|
|
||||||
cmake -G"Visual Studio 14 2015 Win64" .. # for 64-bit Windows builds (VS2015)
|
|
||||||
cmake -G"Visual Studio 15 2017 Win64" .. # for 64-bit Windows builds (VS2017)
|
cmake -G"Visual Studio 15 2017 Win64" .. # for 64-bit Windows builds (VS2017)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The files in the repository are laid out thusly:
|
The files in the repository are laid out thusly:
|
||||||
|
Reference in New Issue
Block a user