mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-23 14:55:57 +01:00
Add readme and proper building
This commit is contained in:
parent
c85ae51531
commit
a498822916
4 changed files with 39 additions and 4 deletions
|
@ -26,6 +26,7 @@ add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-m
|
||||||
|
|
||||||
message(STATUS "Checking deps...")
|
message(STATUS "Checking deps...")
|
||||||
add_subdirectory(subprojects/sdbus-cpp)
|
add_subdirectory(subprojects/sdbus-cpp)
|
||||||
|
add_subdirectory(hyprland-share-picker)
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
|
|
21
Makefile
Normal file
21
Makefile
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
PREFIX = /usr/local
|
||||||
|
LIBEXEC = /usr/lib
|
||||||
|
SHARE = /usr/share
|
||||||
|
|
||||||
|
all:
|
||||||
|
$(MAKE) release
|
||||||
|
|
||||||
|
release:
|
||||||
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./ -B./build -G Ninja
|
||||||
|
cmake --build ./build --config Release --target all -j$(nproc)
|
||||||
|
|
||||||
|
debug:
|
||||||
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -H./ -B./build -G Ninja
|
||||||
|
cmake --build ./build --config Debug --target all -j$(nproc)
|
||||||
|
|
||||||
|
install:
|
||||||
|
$(MAKE) release
|
||||||
|
cp ./build/hyprland-share-picker/hyprland-share-picker ${PREFIX}/bin
|
||||||
|
cp ./build/xdg-desktop-portal-hyprland ${LIBEXEC}/
|
||||||
|
cp ./hyprland.portal ${SHARE}/xdg-desktop-portal/portals/
|
||||||
|
cp ./org.freedesktop.impl.portal.desktop.hyprland.service ${SHARE}/dbus-1/services/
|
17
README.md
17
README.md
|
@ -1,7 +1,16 @@
|
||||||
# v2 rewrite
|
# xdg-desktop-portal-hyprland
|
||||||
|
An [XDG Desktop Portal](https://github.com/flatpak/xdg-desktop-portal) backend for Hyprland.
|
||||||
|
|
||||||
shit is being worked on.
|
## Building
|
||||||
|
```sh
|
||||||
|
make all
|
||||||
|
```
|
||||||
|
|
||||||
going C++
|
## Installing
|
||||||
|
```sh
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running, FAQs, etc.
|
||||||
|
See [the Hyprland wiki](https://wiki.hyprland.org/Useful-Utilities/Hyprland-desktop-portal/)
|
||||||
|
|
||||||
idk I will write this some day
|
|
4
org.freedesktop.impl.portal.desktop.hyprland.service
Normal file
4
org.freedesktop.impl.portal.desktop.hyprland.service
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[D-BUS Service]
|
||||||
|
Name=org.freedesktop.impl.portal.desktop.hyprland
|
||||||
|
Exec=/usr/lib/xdg-desktop-portal-hyprland
|
||||||
|
SystemdService=xdg-desktop-portal-hyprland.service
|
Loading…
Reference in a new issue