X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cmake%2Fconfig.h.cmake;h=6221c19058d72ddc9720be2d197938591f333085;hb=1eba10ad373a0ada9d36f29d0024fc8c46911163;hp=1aee90f8ad75eb1d034ebd40e8e8777bd4b80a5e;hpb=4806504180cdea44ce612b8106f2a3e134d2db2f;p=platform%2Fupstream%2Fdbus.git diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake index 1aee90f..6221c19 100644 --- a/cmake/config.h.cmake +++ b/cmake/config.h.cmake @@ -3,6 +3,8 @@ #ifndef _DBUS_CONFIG_H #define _DBUS_CONFIG_H /****************************/ +/* indicate that we are building with cmake */ +#define DBUS_CMAKE 1 #cmakedefine HAVE_GNUC_VARARGS 1 @@ -11,33 +13,30 @@ #cmakedefine DBUS_BINDIR "@DBUS_BINDIR@" #cmakedefine DBUS_SYSTEM_CONFIG_FILE "@DBUS_SYSTEM_CONFIG_FILE@" #cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@" -#cmakedefine DAEMON_NAME "@DAEMON_NAME@" +#cmakedefine DBUS_DAEMON_NAME "@DBUS_DAEMON_NAME@" #cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@" #cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@" -//#cmakedefine DBUS_SESSION_BUS_DEFAULT_ADDRESS "@DBUS_SESSION_BUS_DEFAULT_ADDRESS@" +#cmakedefine DBUS_SESSION_BUS_DEFAULT_ADDRESS "@DBUS_SESSION_BUS_DEFAULT_ADDRESS@" #cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@" #cmakedefine PACKAGE "@PACKAGE@" /* Version number of package */ -#cmakedefine VERSION "@VERSION@" -#cmakedefine DBUS_MAJOR_VERSION ${VERSION_MAJOR} -#cmakedefine DBUS_MINOR_VERSION ${VERSION_MINOR} -#cmakedefine DBUS_MICRO_VERSION ${VERSION_RELEASE} -#cmakedefine DBUS_VERSION ((@VERSION_MAJOR@ << 16) | (@VERSION_MINOR@ << 8) | (@VERSION_RELEASE@)) -#cmakedefine DBUS_VERSION_STRING "@VERSION@" +#cmakedefine DBUS_MAJOR_VERSION @DBUS_MAJOR_VERSION@ +#cmakedefine DBUS_MINOR_VERSION @DBUS_MINOR_VERSION@ +#cmakedefine DBUS_MICRO_VERSION @DBUS_MICRO_VERSION@ +#cmakedefine DBUS_VERSION ((@DBUS_MAJOR_VERSION@ << 16) | (@DBUS_MINOR_VERSION@ << 8) | (@DBUS_MICRO_VERSION@)) +#cmakedefine DBUS_VERSION_STRING "@DBUS_VERSION_STRING@" +#cmakedefine DBUS_ENABLE_STATS + +#define VERSION DBUS_VERSION_STRING + +#define TEST_LISTEN "@TEST_LISTEN@" // test binaries +#define DBUS_TEST_EXEC "@DBUS_TEST_EXEC@" +#define DBUS_EXEEXT "@EXEEXT@" + /* Full path to test file test/test-exit in builddir */ #define TEST_BUS_BINARY "@TEST_BUS_BINARY@" -/* Full path to test file test/test-exit in builddir */ -#define TEST_EXIT_BINARY "@TEST_EXIT_BINARY@" -/* Full path to test file test/test-segfault in builddir */ -#define TEST_SEGFAULT_BINARY "@TEST_SEGFAULT_BINARY@" -/* Full path to test file test/test-service in builddir */ -#define TEST_SERVICE_BINARY "@TEST_SERVICE_BINARY@" -/* Full path to test file test/test-shell-service in builddir */ -#define TEST_SHELL_SERVICE_BINARY "@TEST_SHELL_SERVICE_BINARY@" -/* Full path to test file test/test-sleep-forever in builddir */ -#define TEST_SLEEP_FOREVER_BINARY "@TEST_SLEEP_FOREVER_BINARY@" /* Some dbus features */ #cmakedefine DBUS_BUILD_TESTS 1 @@ -77,6 +76,11 @@ #endif #cmakedefine DBUS_BUILD_X11 1 +/* For the moment, the cmake build system doesn't have an equivalent of + * the autoconf build system's --disable-x11-autolaunch */ +#ifdef DBUS_BUILD_X11 +# define DBUS_ENABLE_X11_AUTOLAUNCH 1 +#endif #define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; } @@ -113,21 +117,36 @@ /* Define to 1 if you have time.h */ #cmakedefine HAVE_TIME_H 1 +/* Define to 1 if you have ws2tcpip.h */ +#cmakedefine HAVE_WS2TCPIP_H + /* Define to 1 if you have wspiapi.h */ #cmakedefine HAVE_WSPIAPI_H 1 /* Define to 1 if you have unistd.h */ #cmakedefine HAVE_UNISTD_H 1 -/* Define to 1 if you have errno.h */ -#cmakedefine HAVE_ERRNO_H 1 - /* Define to 1 if you have stdio.h */ #cmakedefine HAVE_STDIO_H 1 /* Define to 1 if you have sys/syslimits.h */ #cmakedefine HAVE_SYS_SYSLIMITS_H 1 +/* Define to 1 if you have errno.h */ +#cmakedefine HAVE_ERRNO_H 1 + +/* Define to 1 if you have signal.h */ +#cmakedefine HAVE_SIGNAL_H 1 + +/* Define to 1 if you have locale.h */ +#cmakedefine HAVE_LOCALE_H 1 + +/* Define to 1 if you have inttypes.h */ +#cmakedefine HAVE_INTTYPES_H 1 + +/* Define to 1 if you have stdint.h */ +#cmakedefine HAVE_STDINT_H 1 + // symbols /* Define to 1 if you have backtrace */ #cmakedefine HAVE_BACKTRACE 1 @@ -153,12 +172,27 @@ /* Define to 1 if you have unsetenv */ #cmakedefine HAVE_UNSETENV 1 +/* Define to 1 if you have clearenv */ +#cmakedefine HAVE_CLEARENV 1 + /* Define to 1 if you have writev */ #cmakedefine HAVE_WRITEV 1 /* Define to 1 if you have socklen_t */ #cmakedefine HAVE_SOCKLEN_T 1 +/* Define to 1 if you have setlocale */ +#cmakedefine HAVE_SETLOCALE 1 + +/* Define to 1 if you have localeconv */ +#cmakedefine HAVE_LOCALECONV 1 + +/* Define to 1 if you have strtoll */ +#cmakedefine HAVE_STRTOLL 1 + +/* Define to 1 if you have strtoull */ +#cmakedefine HAVE_STRTOULL 1 + // structs /* Define to 1 if you have struct cmsgred */ #cmakedefine HAVE_CMSGCRED 1 @@ -186,9 +220,13 @@ # define gid_t int # else # define snprintf _snprintf -# define strtoll _strtoi64 -# define strtoull _strtoui64 typedef int mode_t; +# if !defined(_WIN32_WCE) +# define strtoll _strtoi64 +# define strtoull _strtoui64 +# define HAVE_STRTOLL 1 +# define HAVE_STRTOULL 1 +# endif # endif #endif // defined(_WIN32) || defined(_WIN64) @@ -207,4 +245,8 @@ #define _dbus_verbose_C_S _dbus_verbose #endif +# if defined(_MSC_VER) && !defined(inline) +#define inline __inline +#endif + #endif // _DBUS_CONFIG_H