[webkit-changes] [WebKit/WebKit] b41931: [CMake][GTK] Introduce CMake Presets
Vitaly Dyachkov
noreply at github.com
Thu Mar 9 04:06:41 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b41931e0f27eff8e8ec100518f53bf9bc2970ed8
https://github.com/WebKit/WebKit/commit/b41931e0f27eff8e8ec100518f53bf9bc2970ed8
Author: Vitaly Dyachkov <vitaly at igalia.com>
Date: 2023-03-09 (Thu, 09 Mar 2023)
Changed paths:
M .gitignore
A CMakePresets.json
Log Message:
-----------
[CMake][GTK] Introduce CMake Presets
https://bugs.webkit.org/show_bug.cgi?id=253304
Reviewed by Adrian Perez de Castro.
CMake Presets allow easily share common configure and build options.
They can be used with command line cmake and parsed by IDEs,
such as Visual Studio Code or JetBrains CLion,
to automatically configure the project and setup various integrations.
Instead of
```
mkdir WebKitBuild/Release
cd WebKitBuild/Release
cmake -DPORT=gtk -DDEVELOPER_MODE=ON -DCMAKE_BUILD_TYPE=Release ../..
cmake --build .
```
it's now possible to do just
```
cmake --preset=gtk-release
cmake --build --preset=gtk-release
```
* CMakePresets.json: Added.
Canonical link: https://commits.webkit.org/261422@main
More information about the webkit-changes
mailing list