mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-23 19:09:50 +01:00
CMake, Meson: add option controlling hyprpm building
This commit is contained in:
parent
d01756c1f4
commit
fdfcfc824e
3 changed files with 12 additions and 2 deletions
|
@ -366,7 +366,13 @@ protocolwayland()
|
||||||
|
|
||||||
# tools
|
# tools
|
||||||
add_subdirectory(hyprctl)
|
add_subdirectory(hyprctl)
|
||||||
add_subdirectory(hyprpm)
|
|
||||||
|
if(NO_HYPRPM)
|
||||||
|
message(STATUS "hyprpm is disabled")
|
||||||
|
else()
|
||||||
|
add_subdirectory(hyprpm)
|
||||||
|
message(STATUS "hyprpm is enabled (NO_HYPRPM not defined)")
|
||||||
|
endif()
|
||||||
|
|
||||||
# binary and symlink
|
# binary and symlink
|
||||||
install(TARGETS Hyprland)
|
install(TARGETS Hyprland)
|
||||||
|
|
|
@ -101,11 +101,14 @@ endif
|
||||||
subdir('protocols')
|
subdir('protocols')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
subdir('hyprctl')
|
subdir('hyprctl')
|
||||||
subdir('hyprpm/src')
|
|
||||||
subdir('assets')
|
subdir('assets')
|
||||||
subdir('example')
|
subdir('example')
|
||||||
subdir('docs')
|
subdir('docs')
|
||||||
|
|
||||||
|
if get_option('hyprpm').enabled()
|
||||||
|
subdir('hyprpm/src')
|
||||||
|
endif
|
||||||
|
|
||||||
# Generate hyprland.pc
|
# Generate hyprland.pc
|
||||||
pkg_install_dir = join_paths(get_option('datadir'), 'pkgconfig')
|
pkg_install_dir = join_paths(get_option('datadir'), 'pkgconfig')
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,5 @@ option('xwayland', type: 'feature', value: 'auto', description: 'Enable support
|
||||||
option('systemd', type: 'feature', value: 'auto', description: 'Enable systemd integration')
|
option('systemd', type: 'feature', value: 'auto', description: 'Enable systemd integration')
|
||||||
option('uwsm', type: 'feature', value: 'enabled', description: 'Enable uwsm integration (only if systemd is enabled)')
|
option('uwsm', type: 'feature', value: 'enabled', description: 'Enable uwsm integration (only if systemd is enabled)')
|
||||||
option('legacy_renderer', type: 'feature', value: 'disabled', description: 'Enable legacy renderer')
|
option('legacy_renderer', type: 'feature', value: 'disabled', description: 'Enable legacy renderer')
|
||||||
|
option('hyprpm', type: 'feature', value: 'enabled', description: 'Enable hyprpm')
|
||||||
option('tracy_enable', type: 'boolean', value: false , description: 'Enable profiling')
|
option('tracy_enable', type: 'boolean', value: false , description: 'Enable profiling')
|
||||||
|
|
Loading…
Reference in a new issue