#cmakedefine DBUS_USER "@DBUS_USER@"
#cmakedefine DBUS_TEST_USER "@DBUS_TEST_USER@"
#cmakedefine DBUS_TEST_EXEC "@DBUS_TEST_EXEC@"
-/* Where to put test sockets */
-#define DBUS_TEST_SOCKET_DIR "@TEST_SOCKET_DIR@"
// system type defines
#if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
# define DBUS_UNIX
#endif
+#ifdef DBUS_UNIX
+/* Where to put test sockets */
+#define DBUS_TEST_SOCKET_DIR "@TEST_SOCKET_DIR@"
+#endif
+
#if defined(_WIN32) || defined(_WIN64)
// mingw mode_t
# ifdef HAVE_STDIO_H
values += '/tmp'
default_socket_dir = values.strip().split('\n')[0]
-test_socket_dir = get_option('test_socket_dir')
-if test_socket_dir == ''
- test_socket_dir = default_socket_dir
+if platform_unix
+ test_socket_dir = get_option('test_socket_dir')
+
+ if test_socket_dir == ''
+ test_socket_dir = default_socket_dir
+ endif
+
+ config.set_quoted('DBUS_TEST_SOCKET_DIR', test_socket_dir)
+ test_listen = 'unix:tmpdir=' + test_socket_dir
+else
+ test_listen = 'tcp:host=localhost'
endif
-test_listen = platform_unix ? 'unix:tmpdir=' + test_socket_dir : 'tcp:host=localhost'
config.set_quoted('TEST_LISTEN', test_listen)
-config.set_quoted('DBUS_TEST_SOCKET_DIR', test_socket_dir)
data_config.set('TEST_LISTEN', test_listen)
session_socket_dir = get_option('session_socket_dir')
'System bus user': dbus_user,
'Session bus services dir':
get_option('prefix') / get_option('datadir') / 'dbus-1' / 'services',
- 'Tests socket dir': test_socket_dir,
}
+if platform_unix
+ summary_dict += {
+ 'Tests socket dir': test_socket_dir,
+ }
+endif
+
if host_os.contains('solaris')
summary_dict += {
'Console owner file': console_owner_file,