chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / xi / xiphos / 0001-Add-dbus-glib-dependency-to-main.patch
blob71cb57ccef18838da7c83c21a12a0a1dc8835d7b
1 From 0e9e686c902935c0f00afdf9d0d45f9635995988 Mon Sep 17 00:00:00 2001
2 From: Jan Tojnar <jtojnar@gmail.com>
3 Date: Sat, 15 Jan 2022 05:00:37 +0100
4 Subject: [PATCH] Add dbus-glib dependency to main
6 It is required through the ipc header and the build will fail without it on Nix:
8 In file included from /build/source/src/main/search_sidebar.cc:48:
9 /build/source/src/gui/ipc.h:26:10: fatal error: dbus/dbus-glib.h: No such file or directory
10 26 | #include <dbus/dbus-glib.h>
11 | ^~~~~~~~~~~~~~~~~~
12 compilation terminated.
13 ---
14 src/main/CMakeLists.txt | 11 +++++++++++
15 1 file changed, 11 insertions(+)
17 diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt
18 index 49b86371..bb8e4bb6 100644
19 --- a/src/main/CMakeLists.txt
20 +++ b/src/main/CMakeLists.txt
21 @@ -74,3 +74,14 @@ target_link_libraries(main
22 PkgConfig::Sword
23 PkgConfig::Biblesync
26 +IF (DBUS)
27 + target_include_directories (main
28 + PRIVATE ${CMAKE_CURRENT_BINARY_DIR}
29 + PkgConfig::DBus
30 + )
31 + target_link_libraries(main
32 + PRIVATE
33 + PkgConfig::DBus
34 + )
35 +ENDIF (DBUS)
36 --
37 2.34.1