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 Express 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
43 7b. for immediate build run
44 vcexpress dbus.sln /build
46 Win32 Visual Studio Professional IDE
47 1. install cmake and libexpat
49 3. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
53 cmake -G "Visual Studio 10" [<options, see below>] <dbus-src-root>/cmake
56 7b. for immediate build run
57 devenv dbus.sln /build
60 1. install cmake and libexpat
62 3. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
66 cmake -G "<for available targets, see cmake --help for a list>" [<options, see below>] <dbus-src-root>/cmake
70 For other compilers see cmake --help in the Generators section
75 When using the cmake build system the dbus-specific configuration flags that can be given
76 to the cmake program are these (use -D<key>=<value> on command line). The listed values
79 // Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
80 // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
81 CMAKE_BUILD_TYPE:STRING=Debug
83 // Include path for 3rdparty packages
84 CMAKE_INCLUDE_PATH:PATH=
86 // Library path for 3rdparty packages
87 CMAKE_LIBRARY_PATH:PATH=
89 // Install path prefix, prepended onto install directories.
90 CMAKE_INSTALL_PREFIX:PATH=C:/Program Files/dbus
93 // enable unit test code
94 DBUS_BUILD_TESTS:BOOL=ON
96 // The name of the dbus daemon executable
97 DBUS_DAEMON_NAME:STRING=dbus-daemon
99 // Disable assertion checking
100 DBUS_DISABLE_ASSERTS:BOOL=OFF
102 // Disable public API sanity checking
103 DBUS_DISABLE_CHECKS:BOOL=OFF
105 // enable -ansi -pedantic gcc flags
106 DBUS_ENABLE_ANSI:BOOL=OFF
108 // build DOXYGEN documentation (requires Doxygen)
109 DBUS_ENABLE_DOXYGEN_DOCS:BOOL=OFF
111 // enable bus daemon usage statistics
112 DBUS_ENABLE_STATS:BOOL=OFF
114 // support verbose debug mode
115 DBUS_ENABLE_VERBOSE_MODE:BOOL=ON
117 // build XML documentation (requires xmlto or meinproc4)
118 DBUS_ENABLE_XML_DOCS:BOOL=ON
120 // Some atomic integer implementation present
121 DBUS_HAVE_ATOMIC_INT:BOOL=OFF
123 // install required system libraries
124 DBUS_INSTALL_SYSTEM_LIBS:BOOL=OFF
126 // session bus default address
127 DBUS_SESSION_BUS_DEFAULT_ADDRESS:STRING=nonce-tcp:
129 // system bus default address
130 DBUS_SYSTEM_BUS_DEFAULT_ADDRESS:STRING=nonce-tcp:
132 // Use atomic integer implementation for 486
133 DBUS_USE_ATOMIC_INT_486:BOOL=OFF
135 // Use expat (== ON) or libxml2 (==OFF)
136 DBUS_USE_EXPAT:BOOL=ON
139 // enable win32 debug port for message output
140 DBUS_USE_OUTPUT_DEBUG_STRING:BOOL=OFF
143 // compile with coverage profiling instrumentation
144 DBUS_GCOV_ENABLED:BOOL=OFF
147 // build with dnotify support
148 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX:BOOL=ON
151 // enable console owner file
152 HAVE_CONSOLE_OWNER_FILE:BOOL=ON
154 // Directory to check for console ownership
155 DBUS_CONSOLE_OWNER_FILE:STRING=/dev/console
158 // Build with X11 auto launch support
159 DBUS_BUILD_X11:BOOL=ON
162 Note: The above mentioned options could be extracted after
163 configuring from the output of running "<maketool> help-options"
164 in the build directory. The related entries start with