[cmake] Use MLN prefix instead of MBGL (#1054)

Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
Tadej Novak
2023-04-28 00:34:38 +02:00
committed by GitHub
parent e4501c789d
commit 95c7e3818d
43 changed files with 247 additions and 246 deletions

View File

@@ -34,13 +34,13 @@ It will take some time to build and install all components on which Maplibre dep
To configure build with EGL support (ANGLE libraries will be build), use the following command:
```cmd
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DMBGL_WITH_EGL=ON
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DMLN_WITH_EGL=ON
```
To configure build with OSMesa (software rendering), use the following command:
```
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DMBGL_WITH_OSMESA=ON
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DMLN_WITH_OSMESA=ON
```
**WARNING:** as OSMesa doesn't have static libraries, it's necessary to copy `libglapi.dll`, `libGLESv3.dll` and `osmesa.dll` from `platform\windows\vendor\mesa3d\<arch>` to executable/dll directory you want to use, otherwise it won't run.
@@ -64,11 +64,11 @@ cmake . -B build
The same can be done with alternative configure commands:
```cmd
cmake . -B build -DMBGL_WITH_EGL=ON
cmake . -B build -DMLN_WITH_EGL=ON
```
or
```cmd
cmake . -B build -DMBGL_WITH_OSMESA=ON
cmake . -B build -DMLN_WITH_OSMESA=ON
```
Once configure is done, open the file `build\Mapbox GL Native.sln`. Build the target `ALL_BUILD` to build all targets, or pick a specific target. Don't forget to pick a build configuration (`Release`, `RelWithDebInfo`, `MinSizeRel` or `Debug`), otherwise the project will be built with default configuration (`Debug`).