1 This file describes how to compile dbus using the cmake build system
5 - cmake version >= 2.4.4 see http://www.cmake.org
6 - installed libexpat see http://sourceforge.net/projects/expat/
7 unsupported RelWithDebInfo builds could be fetched
8 from http://sourceforge.net/projects/kde-windows/files/expat/
14 1. install mingw-w64 from http://sourceforge.net/projects/mingw-w64/
15 2. install cmake and libexpat
17 4. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
21 cmake -G "MinGW Makefiles" [<options, see below>] <dbus-src-root>/cmake
26 1. install MSVC 2010 Express Version from http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express
27 2. install cmake and libexpat
29 4. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
33 cmake -G "NMake Makefiles" [<options, see below>] <dbus-src-root>/cmake
37 Win32 Visual Studio 2010 Express IDE
38 1. install MSVC 2010 Express Version from http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express
39 2. install cmake and libexpat
41 4. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
45 cmake -G "Visual Studio 10" [<options, see below>] <dbus-src-root>/cmake
48 8b. for immediate build run
49 vcexpress dbus.sln /build
51 Win32 Visual Studio 2010 Professional IDE
52 1. install MSVC 2010 Professional Version
53 2. install cmake and libexpat
55 4. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
59 cmake -G "Visual Studio 10" [<options, see below>] <dbus-src-root>/cmake
62 8b. for immediate build run
63 devenv dbus.sln /build
66 1. install cmake and libexpat
68 3. unpack dbus sources into a sub directory (referred as <dbus-src-root> later)
72 cmake -G "<for available targets, see cmake --help for a list>" [<options, see below>] <dbus-src-root>/cmake
76 For other compilers see cmake --help in the Generators section
81 When using the cmake build system the dbus-specific configuration flags that can be given
82 to the cmake program are these (use -D<key>=<value> on command line). The listed values
83 are the defaults (in a typical build - some are platform-specific).
85 // Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
86 // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
87 CMAKE_BUILD_TYPE:STRING=Debug
89 // Include path for 3rdparty packages
90 CMAKE_INCLUDE_PATH:PATH=
92 // Library path for 3rdparty packages
93 CMAKE_LIBRARY_PATH:PATH=
95 // Install path prefix, prepended onto install directories.
96 CMAKE_INSTALL_PREFIX:PATH=C:/Program Files/dbus
99 // enable unit test code
100 DBUS_BUILD_TESTS:BOOL=ON
102 // The name of the dbus daemon executable
103 DBUS_DAEMON_NAME:STRING=dbus-daemon
105 // Disable assertion checking
106 DBUS_DISABLE_ASSERTS:BOOL=OFF
108 // Disable public API sanity checking
109 DBUS_DISABLE_CHECKS:BOOL=OFF
111 // enable -ansi -pedantic gcc flags
112 DBUS_ENABLE_ANSI:BOOL=OFF
114 // build DOXYGEN documentation (requires Doxygen)
115 DBUS_ENABLE_DOXYGEN_DOCS:BOOL=OFF
117 // enable bus daemon usage statistics
118 DBUS_ENABLE_STATS:BOOL=OFF
120 // support verbose debug mode
121 DBUS_ENABLE_VERBOSE_MODE:BOOL=ON
123 // build XML documentation (requires xmlto or meinproc4)
124 DBUS_ENABLE_XML_DOCS:BOOL=ON
126 // Some atomic integer implementation present
127 DBUS_HAVE_ATOMIC_INT:BOOL=OFF
129 // install required system libraries
130 DBUS_INSTALL_SYSTEM_LIBS:BOOL=OFF
132 // session bus default listening address
133 DBUS_SESSION_BUS_LISTEN_ADDRESS:STRING=autolaunch:
135 // session bus fallback address for clients
136 DBUS_SESSION_BUS_CONNECT_ADDRESS:STRING=autolaunch:
138 // system bus default address (only useful on Unix)
139 DBUS_SYSTEM_BUS_DEFAULT_ADDRESS:STRING=unix:path=/var/run/dbus/system_bus_socket
141 // Use atomic integer implementation for 486
142 DBUS_USE_ATOMIC_INT_486:BOOL=OFF
144 // Use expat (== ON) or libxml2 (==OFF)
145 DBUS_USE_EXPAT:BOOL=ON
148 // enable win32 debug port for message output
149 DBUS_USE_OUTPUT_DEBUG_STRING:BOOL=OFF
152 // compile with coverage profiling instrumentation
153 DBUS_GCOV_ENABLED:BOOL=OFF
156 // build with dnotify support
157 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX:BOOL=ON
160 // enable console owner file
161 HAVE_CONSOLE_OWNER_FILE:BOOL=ON
163 // Directory to check for console ownership
164 DBUS_CONSOLE_OWNER_FILE:STRING=/dev/console
167 // Build with X11 auto launch support
168 DBUS_BUILD_X11:BOOL=ON
171 Note: The above mentioned options could be extracted after
172 configuring from the output of running "<maketool> help-options"
173 in the build directory. The related entries start with