mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-05 03:05:59 +01:00
version: add link versions for other utils (#8619)
--------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
This commit is contained in:
parent
10a9fec7fc
commit
92186898c0
5 changed files with 26 additions and 13 deletions
|
@ -104,8 +104,14 @@ find_package(OpenGL REQUIRED COMPONENTS ${GLES_VERSION})
|
||||||
pkg_check_modules(hyprctl_deps REQUIRED IMPORTED_TARGET hyprutils>=0.2.4)
|
pkg_check_modules(hyprctl_deps REQUIRED IMPORTED_TARGET hyprutils>=0.2.4)
|
||||||
|
|
||||||
pkg_check_modules(aquamarine_dep REQUIRED IMPORTED_TARGET aquamarine>=0.4.5)
|
pkg_check_modules(aquamarine_dep REQUIRED IMPORTED_TARGET aquamarine>=0.4.5)
|
||||||
|
pkg_check_modules(hyprlang_dep REQUIRED IMPORTED_TARGET hyprlang>=0.3.2)
|
||||||
|
pkg_check_modules(hyprcursor_dep REQUIRED IMPORTED_TARGET hyprcursor>=0.1.7)
|
||||||
|
pkg_check_modules(hyprutils_dep REQUIRED IMPORTED_TARGET hyprutils>=0.2.3)
|
||||||
|
|
||||||
add_compile_definitions(AQUAMARINE_VERSION="${aquamarine_dep_VERSION}")
|
add_compile_definitions(AQUAMARINE_VERSION="${aquamarine_dep_VERSION}")
|
||||||
|
add_compile_definitions(HYPRLANG_VERSION="${hyprlang_dep_VERSION}")
|
||||||
|
add_compile_definitions(HYPRUTILS_VERSION="${hyprutils_dep_VERSION}")
|
||||||
|
add_compile_definitions(HYPRCURSOR_VERSION="${hyprcursor_dep_VERSION}")
|
||||||
|
|
||||||
pkg_check_modules(
|
pkg_check_modules(
|
||||||
deps
|
deps
|
||||||
|
@ -123,10 +129,7 @@ pkg_check_modules(
|
||||||
libdrm
|
libdrm
|
||||||
libinput
|
libinput
|
||||||
gbm
|
gbm
|
||||||
gio-2.0
|
gio-2.0)
|
||||||
hyprlang>=0.3.2
|
|
||||||
hyprcursor>=0.1.7
|
|
||||||
hyprutils>=0.2.3)
|
|
||||||
|
|
||||||
find_package(hyprwayland-scanner 0.3.10 REQUIRED)
|
find_package(hyprwayland-scanner 0.3.10 REQUIRED)
|
||||||
|
|
||||||
|
@ -244,7 +247,7 @@ target_precompile_headers(Hyprland PRIVATE
|
||||||
|
|
||||||
message(STATUS "Setting link libraries")
|
message(STATUS "Setting link libraries")
|
||||||
|
|
||||||
target_link_libraries(Hyprland rt PkgConfig::aquamarine_dep PkgConfig::deps)
|
target_link_libraries(Hyprland rt PkgConfig::aquamarine_dep PkgConfig::hyprlang_dep PkgConfig::hyprutils_dep PkgConfig::hyprcursor_dep PkgConfig::deps)
|
||||||
if(udis_dep_FOUND)
|
if(udis_dep_FOUND)
|
||||||
target_link_libraries(Hyprland PkgConfig::udis_dep)
|
target_link_libraries(Hyprland PkgConfig::udis_dep)
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -9,11 +9,11 @@ file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
|
|
||||||
pkg_check_modules(deps REQUIRED IMPORTED_TARGET tomlplusplus hyprutils>=0.2.4)
|
pkg_check_modules(hyprpm_deps REQUIRED IMPORTED_TARGET tomlplusplus hyprutils>=0.2.4)
|
||||||
|
|
||||||
add_executable(hyprpm ${SRCFILES})
|
add_executable(hyprpm ${SRCFILES})
|
||||||
|
|
||||||
target_link_libraries(hyprpm PUBLIC PkgConfig::deps)
|
target_link_libraries(hyprpm PUBLIC PkgConfig::hyprpm_deps)
|
||||||
|
|
||||||
# binary
|
# binary
|
||||||
install(TARGETS hyprpm)
|
install(TARGETS hyprpm)
|
||||||
|
|
|
@ -32,7 +32,13 @@ if cpp_compiler.check_header('execinfo.h')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
aquamarine = dependency('aquamarine', version: '>=0.4.5')
|
aquamarine = dependency('aquamarine', version: '>=0.4.5')
|
||||||
|
hyprcursor = dependency('hyprcursor', version: '>=0.1.7')
|
||||||
|
hyprlang = dependency('hyprlang', version: '>= 0.3.2')
|
||||||
|
hyprutils = dependency('hyprutils', version: '>= 0.2.3')
|
||||||
add_project_arguments(['-DAQUAMARINE_VERSION="@0@"'.format(aquamarine.version())], language: 'cpp')
|
add_project_arguments(['-DAQUAMARINE_VERSION="@0@"'.format(aquamarine.version())], language: 'cpp')
|
||||||
|
add_project_arguments(['-DHYPRCURSOR_VERSION="@0@"'.format(hyprcursor.version())], language: 'cpp')
|
||||||
|
add_project_arguments(['-DHYPRLANG_VERSION="@0@"'.format(hyprlang.version())], language: 'cpp')
|
||||||
|
add_project_arguments(['-DHYPRUTILS_VERSION="@0@"'.format(hyprutils.version())], language: 'cpp')
|
||||||
|
|
||||||
xcb_dep = dependency('xcb', required: get_option('xwayland'))
|
xcb_dep = dependency('xcb', required: get_option('xwayland'))
|
||||||
xcb_composite_dep = dependency('xcb-composite', required: get_option('xwayland'))
|
xcb_composite_dep = dependency('xcb-composite', required: get_option('xwayland'))
|
||||||
|
|
|
@ -875,8 +875,9 @@ std::string versionRequest(eHyprCtlOutputFormat format, std::string request) {
|
||||||
std::string result = std::format("Hyprland {} built from branch {} at commit {} {} ({}).\n"
|
std::string result = std::format("Hyprland {} built from branch {} at commit {} {} ({}).\n"
|
||||||
"Date: {}\n"
|
"Date: {}\n"
|
||||||
"Tag: {}, commits: {}\n"
|
"Tag: {}, commits: {}\n"
|
||||||
"built against aquamarine {}\n\n\n",
|
"built against:\n aquamarine {}\n hyprlang {}\n hyprutils {}\n hyprcursor {}\n\n\n",
|
||||||
HYPRLAND_VERSION, GIT_BRANCH, GIT_COMMIT_HASH, GIT_DIRTY, commitMsg, GIT_COMMIT_DATE, GIT_TAG, GIT_COMMITS, AQUAMARINE_VERSION);
|
HYPRLAND_VERSION, GIT_BRANCH, GIT_COMMIT_HASH, GIT_DIRTY, commitMsg, GIT_COMMIT_DATE, GIT_TAG, GIT_COMMITS, AQUAMARINE_VERSION,
|
||||||
|
HYPRLANG_VERSION, HYPRUTILS_VERSION, HYPRCURSOR_VERSION);
|
||||||
|
|
||||||
#if (!defined(LEGACY_RENDERER) && !defined(ISDEBUG) && !defined(NO_XWAYLAND))
|
#if (!defined(LEGACY_RENDERER) && !defined(ISDEBUG) && !defined(NO_XWAYLAND))
|
||||||
result += "no flags were set\n";
|
result += "no flags were set\n";
|
||||||
|
@ -905,9 +906,12 @@ std::string versionRequest(eHyprCtlOutputFormat format, std::string request) {
|
||||||
"tag": "{}",
|
"tag": "{}",
|
||||||
"commits": "{}",
|
"commits": "{}",
|
||||||
"buildAquamarine": "{}",
|
"buildAquamarine": "{}",
|
||||||
|
"buildHyprlang": "{}",
|
||||||
|
"buildHyprutils": "{}",
|
||||||
|
"buildHyprcursor": "{}",
|
||||||
"flags": [)#",
|
"flags": [)#",
|
||||||
GIT_BRANCH, GIT_COMMIT_HASH, HYPRLAND_VERSION, (strcmp(GIT_DIRTY, "dirty") == 0 ? "true" : "false"), escapeJSONStrings(commitMsg), GIT_COMMIT_DATE, GIT_TAG,
|
GIT_BRANCH, GIT_COMMIT_HASH, HYPRLAND_VERSION, (strcmp(GIT_DIRTY, "dirty") == 0 ? "true" : "false"), escapeJSONStrings(commitMsg), GIT_COMMIT_DATE, GIT_TAG,
|
||||||
GIT_COMMITS, AQUAMARINE_VERSION);
|
GIT_COMMITS, AQUAMARINE_VERSION, HYPRLANG_VERSION, HYPRUTILS_VERSION, HYPRCURSOR_VERSION);
|
||||||
|
|
||||||
#ifdef LEGACY_RENDERER
|
#ifdef LEGACY_RENDERER
|
||||||
result += "\"legacyrenderer\",";
|
result += "\"legacyrenderer\",";
|
||||||
|
|
|
@ -9,14 +9,14 @@ executable(
|
||||||
dependencies: [
|
dependencies: [
|
||||||
server_protos,
|
server_protos,
|
||||||
aquamarine,
|
aquamarine,
|
||||||
|
hyprcursor,
|
||||||
|
hyprlang,
|
||||||
|
hyprutils,
|
||||||
dependency('gbm'),
|
dependency('gbm'),
|
||||||
dependency('xcursor'),
|
dependency('xcursor'),
|
||||||
dependency('wayland-server'),
|
dependency('wayland-server'),
|
||||||
dependency('wayland-client'),
|
dependency('wayland-client'),
|
||||||
dependency('cairo'),
|
dependency('cairo'),
|
||||||
dependency('hyprcursor', version: '>=0.1.7'),
|
|
||||||
dependency('hyprlang', version: '>= 0.3.2'),
|
|
||||||
dependency('hyprutils', version: '>= 0.2.3'),
|
|
||||||
dependency('libdrm'),
|
dependency('libdrm'),
|
||||||
dependency('egl'),
|
dependency('egl'),
|
||||||
dependency('xkbcommon'),
|
dependency('xkbcommon'),
|
||||||
|
|
Loading…
Reference in a new issue