1 This file describes how to compile dbus using the cmake build system
5 - cmake version >= 2.4.4 see http://www.cmake.org
12 1. install cmake and libexpat
14 3. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
18 cmake -G "MinGW Makefiles" [<options, see below>] <dbus-src-root>/cmake
23 1. install cmake and libexpat
25 3. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
29 cmake -G "NMake Makefiles" [<options, see below>] <dbus-src-root>/cmake
33 Win32 Visual Studio IDE
34 1. install cmake and libexpat
36 3. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
40 cmake -G "Visual Studio 10" [<options, see below>] <dbus-src-root>/cmake
45 1. install cmake and libexpat
47 3. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
51 cmake -G "<for available targets, see cmake --help for a list>" [<options, see below>] <dbus-src-root>/cmake
55 For other compilers see cmake --help in the Generators section
60 When using the cmake build system the dbus-specific configuration flags that can be given
61 to the cmake program are these (use -D<key>=<value> on command line). The listed values
64 // Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
65 // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
66 CMAKE_BUILD_TYPE:STRING=Debug
68 // Include path for 3rdparty packages
69 CMAKE_INCLUDE_PATH:PATH=
71 // Library path for 3rdparty packages
72 CMAKE_LIBRARY_PATH:PATH=
74 // Install path prefix, prepended onto install directories.
75 CMAKE_INSTALL_PREFIX:PATH=C:/Program Files/dbus
78 // enable unit test code
79 DBUS_BUILD_TESTS:BOOL=ON
81 // The name of the dbus daemon executable
82 DBUS_DAEMON_NAME:STRING=dbus-daemon
84 // Disable assertion checking
85 DBUS_DISABLE_ASSERTS:BOOL=OFF
87 // Disable public API sanity checking
88 DBUS_DISABLE_CHECKS:BOOL=OFF
90 // enable -ansi -pedantic gcc flags
91 DBUS_ENABLE_ANSI:BOOL=OFF
93 // build DOXYGEN documentation (requires Doxygen)
94 DBUS_ENABLE_DOXYGEN_DOCS:BOOL=OFF
96 // enable bus daemon usage statistics
97 DBUS_ENABLE_STATS:BOOL=OFF
99 // support verbose debug mode
100 DBUS_ENABLE_VERBOSE_MODE:BOOL=ON
102 // build XML documentation (requires xmlto or meinproc4)
103 DBUS_ENABLE_XML_DOCS:BOOL=ON
105 // Some atomic integer implementation present
106 DBUS_HAVE_ATOMIC_INT:BOOL=OFF
108 // install required system libraries
109 DBUS_INSTALL_SYSTEM_LIBS:BOOL=OFF
111 // session bus default address
112 DBUS_SESSION_BUS_DEFAULT_ADDRESS:STRING=nonce-tcp:
114 // system bus default address
115 DBUS_SYSTEM_BUS_DEFAULT_ADDRESS:STRING=nonce-tcp:
117 // Use atomic integer implementation for 486
118 DBUS_USE_ATOMIC_INT_486:BOOL=OFF
120 // Use expat (== ON) or libxml2 (==OFF)
121 DBUS_USE_EXPAT:BOOL=ON
124 // enable win32 debug port for message output
125 DBUS_USE_OUTPUT_DEBUG_STRING:BOOL=OFF
128 // compile with coverage profiling instrumentation
129 DBUS_GCOV_ENABLED:BOOL=OFF
132 // build with dnotify support
133 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX:BOOL=ON
136 // enable console owner file
137 HAVE_CONSOLE_OWNER_FILE:BOOL=ON
139 // Directory to check for console ownership
140 DBUS_CONSOLE_OWNER_FILE:STRING=/dev/console
143 // Build with X11 auto launch support
144 DBUS_BUILD_X11:BOOL=ON
147 Note: The above mentioned options could be extracted after
148 configuring from the output of running "<maketool> help-options"
149 in the build directory. The related entries start with