Fix hyprload instructions in readme

Also use cmake directly to build
This commit is contained in:
outfoxxed 2023-04-19 10:51:30 -07:00
parent 3f6df74a4a
commit 399da472a0
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
3 changed files with 8 additions and 17 deletions

View file

@ -42,13 +42,13 @@ You can use `hy3:makegroup` to create a new split.
### Nix
Under nix, use the provided devShell, then go to [Manual Installation](#manual)
### [Hyprload](https://github.com/Duckonaut/hyprload) (currently untested)
### [Hyprload](https://github.com/Duckonaut/hyprload)
Add an entry to your hyprload.toml like so:
```toml
plugins = [
# ...
"outfoxxed/hy3",
{ git = "https://github.com/outfoxxed/hy3", branch = "master", name = "hy3" },
# ...
]
```
@ -57,10 +57,8 @@ plugins = [
First export `HYPRLAND_HEADERS`, then run the following commands:
```sh
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
cmake -DCMAKE_BUILD_TYPE=Debug -B build
cmake --build build
```
> **Note**: Please use a debug build as debugging a backtrace from a release build is much more difficult if you need to report an error.

View file

@ -1,8 +1,4 @@
rm -rf build
mkdir -p build
cd build
cmake ..
bear -- make
mv compile_commands.json ..
cd ..
cmake -DCMAKE_BUILD_TYPE=Debug
bear -- cmake --build build
sed -i 's/-std=gnu++23/-std=gnu++2b/g' compile_commands.json

View file

@ -1,6 +1,3 @@
mkdir -p build
cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
mv compile_commands.json ..
cd ..
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build
mv build/compile_commands.json .
sed -i 's/-std=gnu++23/-std=gnu++2b/g' compile_commands.json