aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/DBusGlib.cmake
blob: b78a0b1e795819a6c33143cb49a00b65a3029f7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- cmake -*-
include(Prebuilt)

if (STANDALONE)
  include(FindPkgConfig)

  pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1)

elseif (LINUX)
  use_prebuilt_binary(glib)		# dbusglib needs glib
  use_prebuilt_binary(dbusglib)
  set(DBUSGLIB_FOUND ON FORCE BOOL)
  set(DBUSGLIB_INCLUDE_DIRS
      ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0
      )

  set(DBUSGLIB_LIBRARIES
      dbus-glib-1
      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)