X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=README.cmake;h=4932e66b617bf80e6050b49c950ce41873b6d7a2;hb=16ed767007722d7450e6f5a4e23fff0166f466dc;hp=ea3b1070ec74595ee7848791574d74c43d8f7364;hpb=836b84a05a3a8e2f9941cdcd01e3c334d2dff15c;p=platform%2Fupstream%2Fdbus.git diff --git a/README.cmake b/README.cmake index ea3b107..4932e66 100644 --- a/README.cmake +++ b/README.cmake @@ -3,65 +3,86 @@ This file describes how to compile dbus using the cmake build system Requirements ------------ - cmake version >= 2.4.4 see http://www.cmake.org -- installed libexpat +- installed libexpat see http://sourceforge.net/projects/expat/ + unsupported RelWithDebInfo builds could be fetched + from http://sourceforge.net/projects/kde-windows/files/expat/ Building -------- -Win32 MinGW -1. install cmake and libexpat -2. get dbus sources -3. unpack dbus sources into a sub directory (referred as later) -4. mkdir dbus-build -5. cd dbus-build -6. run - cmake -G "MinGW Makefiles" [] /cmake +Win32 MinGW-w64|32 +1. install mingw-w64 from http://sourceforge.net/projects/mingw-w64/ +2. install cmake and libexpat +3. get dbus sources +4. unpack dbus sources into a sub directory (referred as later) +5. mkdir dbus-build +6. cd dbus-build +7. run + cmake -G "MinGW Makefiles" [] /cmake mingw32-make mingw32-make install - -Win32 Microsoft nmake -1. install cmake and libexpat -2. get dbus sources -3. unpack dbus sources into a sub directory (referred as later) -4. mkdir dbus-build -5. cd dbus-build -6. run - cmake -G "NMake Makefiles" [] /cmake + +Win32 Microsoft nmake +1. install MSVC 2010 Express Version from http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express +2. install cmake and libexpat +3. get dbus sources +4. unpack dbus sources into a sub directory (referred as later) +5. mkdir dbus-build +6. cd dbus-build +7. run + cmake -G "NMake Makefiles" [] /cmake nmake nmake install - -Win32 Visual Studio IDE -1. install cmake and libexpat -2. get dbus sources -3. unpack dbus sources into a sub directory (referred as later) -4. mkdir dbus-build -5. cd dbus-build -6. run - cmake -G "Visual Studio 10" [] /cmake - start - nmake install + +Win32 Visual Studio 2010 Express IDE +1. install MSVC 2010 Express Version from http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express +2. install cmake and libexpat +3. get dbus sources +4. unpack dbus sources into a sub directory (referred as later) +5. mkdir dbus-build +6. cd dbus-build +7. run + cmake -G "Visual Studio 10" [] /cmake +8a. open IDE with + vcexpress dbus.sln +8b. for immediate build run + vcexpress dbus.sln /build + +Win32 Visual Studio 2010 Professional IDE +1. install MSVC 2010 Professional Version +2. install cmake and libexpat +3. get dbus sources +4. unpack dbus sources into a sub directory (referred as later) +5. mkdir dbus-build +6. cd dbus-build +7. run + cmake -G "Visual Studio 10" [] /cmake +8a. open IDE with + devenv dbus.sln +8b. for immediate build run + devenv dbus.sln /build Linux -1. install cmake and libexpat +1. install cmake and libexpat 2. get dbus sources 3. unpack dbus sources into a sub directory (referred as later) 4. mkdir dbus-build 5. cd dbus-build 6. run - cmake -G "" [] /cmake + cmake -G "" [] /cmake make make install For other compilers see cmake --help in the Generators section - + Configuration flags ------------------- - + When using the cmake build system the dbus-specific configuration flags that can be given to the cmake program are these (use -D= on command line). The listed values -are the defaults. +are the defaults (in a typical build - some are platform-specific). -// Choose the type of build, options are: None(CMAKE_CXX_FLAGS or +// Choose the type of build, options are: None(CMAKE_CXX_FLAGS or // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. CMAKE_BUILD_TYPE:STRING=Debug @@ -82,7 +103,7 @@ DBUS_BUILD_TESTS:BOOL=ON DBUS_DAEMON_NAME:STRING=dbus-daemon // Disable assertion checking -DBUS_DISABLE_ASSERTS:BOOL=OFF +DBUS_DISABLE_ASSERT:BOOL=OFF // Disable public API sanity checking DBUS_DISABLE_CHECKS:BOOL=OFF @@ -108,18 +129,18 @@ DBUS_HAVE_ATOMIC_INT:BOOL=OFF // install required system libraries DBUS_INSTALL_SYSTEM_LIBS:BOOL=OFF -// session bus default address -DBUS_SESSION_BUS_DEFAULT_ADDRESS:STRING=nonce-tcp: +// session bus default listening address +DBUS_SESSION_BUS_LISTEN_ADDRESS:STRING=autolaunch: + +// session bus fallback address for clients +DBUS_SESSION_BUS_CONNECT_ADDRESS:STRING=autolaunch: -// system bus default address -DBUS_SYSTEM_BUS_DEFAULT_ADDRESS:STRING=nonce-tcp: +// system bus default address (only useful on Unix) +DBUS_SYSTEM_BUS_DEFAULT_ADDRESS:STRING=unix:path=/var/run/dbus/system_bus_socket // Use atomic integer implementation for 486 DBUS_USE_ATOMIC_INT_486:BOOL=OFF -// Use expat (== ON) or libxml2 (==OFF) -DBUS_USE_EXPAT:BOOL=ON - win32 only: // enable win32 debug port for message output DBUS_USE_OUTPUT_DEBUG_STRING:BOOL=OFF @@ -128,10 +149,6 @@ gcc only: // compile with coverage profiling instrumentation DBUS_GCOV_ENABLED:BOOL=OFF -linux only: -// build with dnotify support -DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX:BOOL=ON - solaris only: // enable console owner file HAVE_CONSOLE_OWNER_FILE:BOOL=ON