summaryrefslogtreecommitdiff
path: root/indra/cmake/DBusGlib.cmake
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-09-23 01:53:11 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-09-23 01:53:11 +0000
commitafe61eb994377e25d60d0a0893510a693149c6be (patch)
tree80c6e33cd664e5c8b1c5f55c3b7b49c081dd590a /indra/cmake/DBusGlib.cmake
parent2945882258ad1befe8e8094c0a1a655e4ddbcd30 (diff)
QAR-849 merge maint-viewer-10-merge 96838-97237 -> release
Diffstat (limited to 'indra/cmake/DBusGlib.cmake')
-rw-r--r--indra/cmake/DBusGlib.cmake29
1 files changed, 29 insertions, 0 deletions
diff --git a/indra/cmake/DBusGlib.cmake b/indra/cmake/DBusGlib.cmake
new file mode 100644
index 0000000000..cfc4ccd404
--- /dev/null
+++ b/indra/cmake/DBusGlib.cmake
@@ -0,0 +1,29 @@
+# -*- cmake -*-
+include(Prebuilt)
+
+if (STANDALONE)
+ include(FindPkgConfig)
+
+ pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1)
+
+elseif (LINUX)
+ use_prebuilt_binary(dbusglib)
+ set(DBUSGLIB_FOUND ON FORCE BOOL)
+ set(DBUSGLIB_INCLUDE_DIRS
+ ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0
+ )
+ # We don't need to explicitly link against dbus-glib itself, because
+ # the viewer probes for the system's copy at runtime.
+ set(DBUSGLIB_LIBRARIES
+ gobject-2.0
+ glib-2.0
+ )
+endif (STANDALONE)
+
+if (DBUSGLIB_FOUND)
+ set(DBUSGLIB ON CACHE BOOL "Build with dbus-glib message bus support.")
+endif (DBUSGLIB_FOUND)
+
+if (DBUSGLIB)
+ add_definitions(-DLL_DBUS_ENABLED=1)
+endif (DBUSGLIB)