mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-25 22:15:59 +01:00
fixup for new cmake pipeline
This commit is contained in:
parent
2b306b38f7
commit
5af6aa7028
6 changed files with 10 additions and 28 deletions
|
@ -35,19 +35,6 @@ With that, you can build in debug, go to the debugging tab and hit
|
||||||
|
|
||||||
attach and profile in your preferred way.
|
attach and profile in your preferred way.
|
||||||
|
|
||||||
{{< hint >}}
|
|
||||||
For all ways, make sure to `sudo make clear` to clear any root-owned files.
|
|
||||||
Also, before the first build (or after some updates, possibly)
|
|
||||||
`sudo make config`. (If you get any `missing header file "...-protocol.h"`, you
|
|
||||||
need to `make config`.)
|
|
||||||
{{< /hint >}}
|
|
||||||
|
|
||||||
{{< hint type=warning >}}
|
|
||||||
`make config` will overwrite wlroots headers in `/usr/`,
|
|
||||||
meaning you'll be unable to build any other wlroots compositor
|
|
||||||
without a wlroots reinstall.
|
|
||||||
{{< /hint >}}
|
|
||||||
|
|
||||||
### Meson
|
### Meson
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
|
|
@ -72,7 +72,8 @@ sudo ninja -C build install
|
||||||
|
|
||||||
hyprland:
|
hyprland:
|
||||||
```
|
```
|
||||||
sudo make configdebug && make debug
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DWITH_ASAN:STRING=True -S . -B ./build -G Ninja
|
||||||
|
cmake --build ./build --config Debug --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
||||||
```
|
```
|
||||||
|
|
||||||
Exit Hyprland to a TTY, cd to the cloned hyprland, and launch it:
|
Exit Hyprland to a TTY, cd to the cloned hyprland, and launch it:
|
||||||
|
|
|
@ -96,8 +96,7 @@ updates after pressing a key) will cause rapid changes in brightness.
|
||||||
Open a terminal where you cloned the repo.
|
Open a terminal where you cloned the repo.
|
||||||
```bash
|
```bash
|
||||||
git pull
|
git pull
|
||||||
sudo make clear
|
make all && sudo make install
|
||||||
sudo make install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are using the AUR (hyprland-git) package, you
|
If you are using the AUR (hyprland-git) package, you
|
||||||
|
|
|
@ -198,7 +198,7 @@ supports C++23 you have to pass `-stdlib=libstdc++` or switch to GCC.
|
||||||
```Plain
|
```Plain
|
||||||
git clone --recursive https://github.com/hyprwm/Hyprland
|
git clone --recursive https://github.com/hyprwm/Hyprland
|
||||||
cd Hyprland
|
cd Hyprland
|
||||||
sudo make install
|
make all && sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
_CMake is always recommended as it's the intended way Hyprland should be installed._
|
_CMake is always recommended as it's the intended way Hyprland should be installed._
|
||||||
|
@ -226,7 +226,7 @@ cd into the hyprland repo.
|
||||||
for legacy renderer:
|
for legacy renderer:
|
||||||
|
|
||||||
```plain
|
```plain
|
||||||
sudo make clear && sudo make config && make protocols && make legacyrenderer && sudo cp ./build/Hyprland /usr/bin && sudo cp ./example/hyprland.desktop /usr/share/wayland-sessions
|
make legacyrenderer && sudo cp ./build/Hyprland /usr/bin && sudo cp ./example/hyprland.desktop /usr/share/wayland-sessions
|
||||||
```
|
```
|
||||||
|
|
||||||
_please note the legacy renderer may not support some graphical features._
|
_please note the legacy renderer may not support some graphical features._
|
||||||
|
@ -234,7 +234,7 @@ _please note the legacy renderer may not support some graphical features._
|
||||||
`debug` `legacyrenderer` `legacyrendererdebug`)
|
`debug` `legacyrenderer` `legacyrendererdebug`)
|
||||||
|
|
||||||
```plain
|
```plain
|
||||||
sudo make clear && sudo make config && make protocols && make [PRESET] && sudo cp ./build/Hyprland /usr/bin && sudo cp ./example/hyprland.desktop /usr/share/wayland-sessions
|
make [PRESET] && sudo cp ./build/Hyprland /usr/bin && sudo cp ./example/hyprland.desktop /usr/share/wayland-sessions
|
||||||
```
|
```
|
||||||
|
|
||||||
## Custom Build flags
|
## Custom Build flags
|
||||||
|
@ -252,12 +252,6 @@ How to?
|
||||||
|
|
||||||
Go to the root repo.
|
Go to the root repo.
|
||||||
|
|
||||||
Clean before everything and config the root:
|
|
||||||
|
|
||||||
```plain
|
|
||||||
make clear && sudo make config && make protocols
|
|
||||||
```
|
|
||||||
|
|
||||||
Then, configure CMake:
|
Then, configure CMake:
|
||||||
|
|
||||||
```plain
|
```plain
|
||||||
|
|
|
@ -29,7 +29,7 @@ is required.
|
||||||
***→ If you don't have the Hyprland source cloned***
|
***→ If you don't have the Hyprland source cloned***
|
||||||
|
|
||||||
Clone the Hyprland source code to a subdirectory, in our example `MyPlugin/Hyprland`.
|
Clone the Hyprland source code to a subdirectory, in our example `MyPlugin/Hyprland`.
|
||||||
Run `cd Hyprland && sudo make pluginenv && cd ..`.
|
Run `cd Hyprland && make all && sudo make installheaders && cd ..`.
|
||||||
|
|
||||||
Now that you have the Hyprland sources set up, copy the contents of `example/examplePlugin/` to your working directory.
|
Now that you have the Hyprland sources set up, copy the contents of `example/examplePlugin/` to your working directory.
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ in the exit method. Hyprland will do that for you.
|
||||||
### Setting up a development environment
|
### Setting up a development environment
|
||||||
In order to make your life easier, it's a good idea to work on a nested debug Hyprland session.
|
In order to make your life easier, it's a good idea to work on a nested debug Hyprland session.
|
||||||
|
|
||||||
Enter your Hyprland directory and run `sudo make config && make protocols && make debug`
|
Enter your Hyprland directory and run `make debug`
|
||||||
|
|
||||||
Make a copy of your config in `~/.config/hypr` called `hyprlandd.conf`.
|
Make a copy of your config in `~/.config/hypr` called `hyprlandd.conf`.
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,8 @@ git checkout tags/v0.24.1
|
||||||
|
|
||||||
Prepare Hyprland sources:
|
Prepare Hyprland sources:
|
||||||
```sh
|
```sh
|
||||||
sudo make pluginenv
|
make all
|
||||||
|
sudo make installheaders
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< hint type=note >}}
|
{{< hint type=note >}}
|
||||||
|
|
Loading…
Reference in a new issue