blob: 93500737b0bd468388a0d2d28e83601b6bd25f2c [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001This directory contains configuration files for the cmake build system
2
3Requirements
4------------
5- cmake version >= 2.4.4 see http://www.cmake.org
6- installed libxml2 or libexpat
7
8Building
9--------
10
11unix
121. install cmake and libxml or libexpat
132. get dbus sources
143. mkdir dbus-build
154. cd dbus-build
165. cmake <dbus-src-root>/cmake or cmake -DDBUS_USE_EXPAT=on <dbus-src-root>/cmake in case libexpat should de used
175. make
186. make install
19
20win32-mingw
211. install cmake and libxml or libexpat in <ProgramDir>\gnuwin32
222. get dbus sources
233. mkdir dbus-build
244. cd dbus-build
255. cmake -G "MinGW Makefiles" <dbus-src-root>/cmake
266. make
277. make install
28
29win32-msvc
301. install cmake and libxml or libexpat in <ProgramDir>\gnuwin32
312. get dbus sources
323. mkdir dbus-build
334. cd dbus-build
345. cmake -G <msvc available target, see cmake --help for a list" <dbus-src-root>/cmake
356. make
367. make install
37
38
39Some build options (use -D<key>=<value> on command line)
40------------------
41 key description default value
42 --- ----------- -------------
43DBUS_USE_EXPAT "Use expat (== ON) or libxml2 (==OFF) OFF
44DBUS_DISABLE_ASSERTS "Disable assertion checking" OFF
45DBUS_BUILD_TESTS "enable unit test code" ON
46DBUS_ENABLE_ANSI "enable -ansi -pedantic gcc flags" OFF
47DBUS_ENABLE_GCOV "compile with coverage profiling
48 instrumentation (gcc only)" OFF
49DBUS_ENABLE_VERBOSE_MODE "support verbose debug mode" ON
50DBUS_DISABLE_CHECKS "Disable public API sanity checking" OFF
51DBUS_INSTALL_SYSTEM_LIBS "install required system libraries
52 (mingw: libxml2, libiconv, mingw10)" OFF
53CMAKE_BUILD_TYPE "build type (== debug) or (== release) release
54