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 ### Nix
Under nix, use the provided devShell, then go to [Manual Installation](#manual) 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: Add an entry to your hyprload.toml like so:
```toml ```toml
plugins = [ 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: First export `HYPRLAND_HEADERS`, then run the following commands:
```sh ```sh
mkdir build cmake -DCMAKE_BUILD_TYPE=Debug -B build
cd build cmake --build build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
``` ```
> **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. > **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 rm -rf build
mkdir -p build cmake -DCMAKE_BUILD_TYPE=Debug
cd build bear -- cmake --build build
cmake ..
bear -- make
mv compile_commands.json ..
cd ..
sed -i 's/-std=gnu++23/-std=gnu++2b/g' compile_commands.json sed -i 's/-std=gnu++23/-std=gnu++2b/g' compile_commands.json

View file

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