Commit 3bf97922 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Move cmake related build system to top level


Signed-off-by: Ralf Habacker's avatarRalf Habacker <ralf.habacker@freenet.de>
parent 8747c9b5
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
# we do not need to have WIN32 defined
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
......@@ -22,11 +23,11 @@ endif()
# detect version
include(MacrosAutotools)
autoinit(../configure.ac)
autoinit(configure.ac)
autoversion(dbus)
if(EXISTS ${CMAKE_SOURCE_DIR}/../config.h.in)
autoheaderchecks(${CMAKE_SOURCE_DIR}/../config.h.in ${CMAKE_SOURCE_DIR}/ConfigureChecks.cmake ${CMAKE_SOURCE_DIR}/config.h.cmake)
if(EXISTS ${CMAKE_SOURCE_DIR}/config.h.in)
autoheaderchecks(${CMAKE_SOURCE_DIR}/config.h.in ${CMAKE_SOURCE_DIR}/cmake/ConfigureChecks.cmake ${CMAKE_SOURCE_DIR}/cmake/config.h.cmake)
else()
message(STATUS "Generate config.h.in with autogen.sh to enable cmake header difference check.")
endif()
......@@ -147,7 +148,7 @@ endif()
add_definitions(-D_GNU_SOURCE)
# do config checks
INCLUDE(ConfigureChecks.cmake)
INCLUDE(ConfigureChecks)
# @TODO: how to remove last dir from ${CMAKE_SOURCE_DIR} ?
SET(DBUS_SOURCE_DIR ${CMAKE_SOURCE_DIR}/..)
......@@ -288,7 +289,7 @@ endif()
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
# for including config.h and for includes like <dir/foo.h>
include_directories( ${CMAKE_SOURCE_DIR}/.. ${CMAKE_BINARY_DIR} ${CMAKE_INCLUDE_PATH} )
include_directories(. ${CMAKE_BINARY_DIR} ${CMAKE_INCLUDE_PATH})
# linker search directories
link_directories(${DBUS_LIB_DIR} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} )
......@@ -511,10 +512,10 @@ set(DBUS_INTERNAL_LIBRARIES dbus-internal)
set (DBUS_INTERNAL_ADD_LIBRARY_OPTIONS STATIC)
set (DBUS_INTERNAL_CLIENT_DEFINITIONS "-DDBUS_COMPILATION")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
configure_file(cmake/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
if (WIN32)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dbus-env.bat.cmake ${CMAKE_BINARY_DIR}/bin/dbus-env.bat )
configure_file(cmake/dbus-env.bat.cmake ${CMAKE_BINARY_DIR}/bin/dbus-env.bat )
install(FILES ${CMAKE_BINARY_DIR}/bin/dbus-env.bat DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
......@@ -523,11 +524,11 @@ endif()
#
set(INSTALL_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/DBus1)
if(WIN32)
configure_file(DBus1Config.cmake.in "${CMAKE_BINARY_DIR}/DBus1Config.cmake" @ONLY)
configure_file(cmake/DBus1Config.cmake.in "${CMAKE_BINARY_DIR}/DBus1Config.cmake" @ONLY)
else()
configure_file(DBus1Config.pkgconfig.in "${CMAKE_BINARY_DIR}/DBus1Config.cmake" @ONLY)
configure_file(cmake/DBus1Config.pkgconfig.in "${CMAKE_BINARY_DIR}/DBus1Config.cmake" @ONLY)
endif()
configure_file(DBus1ConfigVersion.cmake.in "${CMAKE_BINARY_DIR}/DBus1ConfigVersion.cmake" @ONLY)
configure_file(cmake/DBus1ConfigVersion.cmake.in "${CMAKE_BINARY_DIR}/DBus1ConfigVersion.cmake" @ONLY)
install(FILES
"${CMAKE_BINARY_DIR}/DBus1Config.cmake"
"${CMAKE_BINARY_DIR}/DBus1ConfigVersion.cmake"
......@@ -657,7 +658,7 @@ endforeach()
MESSAGE(" ")
INCLUDE(modules/CPackInstallConfig.cmake)
INCLUDE(CPackInstallConfig)
add_custom_target(help-options
cmake -LH
......@@ -689,7 +690,7 @@ if(UNIX)
set(datadir "\${prefix}/${CMAKE_INSTALL_DATADIR}")
set(datarootdir "\${prefix}/${CMAKE_INSTALL_DATADIR}")
set(dbus_daemondir "\${prefix}/${CMAKE_INSTALL_BINDIR}")
configure_file(../dbus-1.pc.in ${CMAKE_BINARY_DIR}/dbus-1.pc @ONLY)
configure_file(dbus-1.pc.in ${CMAKE_BINARY_DIR}/dbus-1.pc @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/dbus-1.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endif()
endif()
......@@ -20,21 +20,14 @@ EXTRA_DIST = \
README.wince \
README.cygwin \
README.launchd \
cmake/CMakeLists.txt \
cmake/ConfigureChecks.cmake \
cmake/DBus1Config.cmake.in \
cmake/DBus1Config.pkgconfig.in \
cmake/DBus1ConfigVersion.cmake.in \
cmake/bus \
cmake/bus-test.bat.cmake \
cmake/config.h.cmake \
cmake/dbus \
cmake/dbus-env.bat.cmake \
cmake/doc \
cmake/i686-w64-mingw32.cmake \
cmake/modules \
cmake/test \
cmake/tools \
CMakeLists.txt \
bus/CMakeLists.txt \
dbus/CMakeLists.txt \
doc/CMakeLists.txt \
test/CMakeLists.txt \
test/name-test/CMakeLists.txt \
tools/CMakeLists.txt \
cmake \
$(NULL)
all-local: Doxyfile
......
......@@ -21,7 +21,7 @@ Win32 MinGW-w64|32
5. mkdir dbus-build
6. cd dbus-build
7. run
cmake -G "MinGW Makefiles" [<options, see below>] <dbus-src-root>/cmake
cmake -G "MinGW Makefiles" [<options, see below>] <dbus-src-root>
mingw32-make
mingw32-make install
......@@ -33,7 +33,7 @@ Win32 Microsoft nmake
5. mkdir dbus-build
6. cd dbus-build
7. run
cmake -G "NMake Makefiles" [<options, see below>] <dbus-src-root>/cmake
cmake -G "NMake Makefiles" [<options, see below>] <dbus-src-root>
nmake
nmake install
......@@ -45,7 +45,7 @@ Win32 Visual Studio 2010 Express IDE
5. mkdir dbus-build
6. cd dbus-build
7. run
cmake -G "Visual Studio 10" [<options, see below>] <dbus-src-root>/cmake
cmake -G "Visual Studio 10" [<options, see below>] <dbus-src-root>
8a. open IDE with
vcexpress dbus.sln
8b. for immediate build run
......@@ -59,7 +59,7 @@ Win32 Visual Studio 2010 Professional IDE
5. mkdir dbus-build
6. cd dbus-build
7. run
cmake -G "Visual Studio 10" [<options, see below>] <dbus-src-root>/cmake
cmake -G "Visual Studio 10" [<options, see below>] <dbus-src-root>
8a. open IDE with
devenv dbus.sln
8b. for immediate build run
......@@ -72,7 +72,7 @@ Linux
4. mkdir dbus-build
5. cd dbus-build
6. run
cmake -G "<for available targets, see cmake --help for a list>" [<options, see below>] <dbus-src-root>/cmake
cmake -G "<for available targets, see cmake --help for a list>" [<options, see below>] <dbus-src-root>
make
make install
......
add_definitions(-DDBUS_COMPILATION)
SET(EFENCE "")
SET(BUS_DIR ../../bus)
# config files for installation
CONFIGURE_FILE( "${BUS_DIR}/session.conf.in" "${CMAKE_CURRENT_BINARY_DIR}/session.conf" IMMEDIATE @ONLY)
CONFIGURE_FILE( "${BUS_DIR}/legacy-config/session.conf.in" "${CMAKE_CURRENT_BINARY_DIR}/legacy-config/session.conf" IMMEDIATE @ONLY)
CONFIGURE_FILE( "session.conf.in" "${CMAKE_CURRENT_BINARY_DIR}/session.conf" IMMEDIATE @ONLY)
CONFIGURE_FILE( "legacy-config/session.conf.in" "${CMAKE_CURRENT_BINARY_DIR}/legacy-config/session.conf" IMMEDIATE @ONLY)
FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/session.d)
if(NOT WIN32)
CONFIGURE_FILE( "${BUS_DIR}/system.conf.in" "${CMAKE_CURRENT_BINARY_DIR}/system.conf" IMMEDIATE @ONLY)
CONFIGURE_FILE( "${BUS_DIR}/legacy-config/system.conf.in" "${CMAKE_CURRENT_BINARY_DIR}/legacy-config/system.conf" IMMEDIATE @ONLY)
CONFIGURE_FILE( "system.conf.in" "${CMAKE_CURRENT_BINARY_DIR}/system.conf" IMMEDIATE @ONLY)
CONFIGURE_FILE( "legacy-config/system.conf.in" "${CMAKE_CURRENT_BINARY_DIR}/legacy-config/system.conf" IMMEDIATE @ONLY)
FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/system.d)
endif()
# copy services for local daemon start to local service dir data/dbus-1/services
SET (SERVICE_FILES test/data/valid-service-files)
FILE(GLOB FILES "${CMAKE_SOURCE_DIR}/../${SERVICE_FILES}/*.service.in" )
FILE(GLOB FILES "${SERVICE_FILES}/*.service.in" )
FOREACH(FILE ${FILES})
GET_FILENAME_COMPONENT(FILENAME ${FILE} NAME_WE)
SET (TARGET ${CMAKE_BINARY_DIR}/data/dbus-1/services/${FILENAME}.service)
......@@ -28,59 +27,59 @@ ENDFOREACH(FILE)
if (DBUS_BUS_ENABLE_INOTIFY)
set (DIR_WATCH_SOURCE ${BUS_DIR}/dir-watch-inotify.c)
set (DIR_WATCH_SOURCE dir-watch-inotify.c)
elseif (DBUS_BUS_ENABLE_KQUEUE)
set (DIR_WATCH_SOURCE ${BUS_DIR}/dir-watch-kqueue.c)
set (DIR_WATCH_SOURCE dir-watch-kqueue.c)
else (DBUS_BUS_ENABLE_INOTIFY)
set (DIR_WATCH_SOURCE ${BUS_DIR}/dir-watch-default.c)
set (DIR_WATCH_SOURCE dir-watch-default.c)
endif (DBUS_BUS_ENABLE_INOTIFY)
set (BUS_SOURCES
${BUS_DIR}/activation.c
${BUS_DIR}/activation.h
${BUS_DIR}/apparmor.c
${BUS_DIR}/apparmor.h
${BUS_DIR}/audit.c
${BUS_DIR}/audit.h
${BUS_DIR}/bus.c
${BUS_DIR}/bus.h
${BUS_DIR}/config-loader-expat.c
${BUS_DIR}/config-parser.c
${BUS_DIR}/config-parser.h
${BUS_DIR}/config-parser-common.c
${BUS_DIR}/config-parser-common.h
# ${BUS_DIR}/config-parser-trivial.c
${BUS_DIR}/connection.c
${BUS_DIR}/connection.h
${BUS_DIR}/containers.c
${BUS_DIR}/containers.h
${BUS_DIR}/desktop-file.c
${BUS_DIR}/desktop-file.h
${BUS_DIR}/dir-watch.h
${BUS_DIR}/dispatch.c
${BUS_DIR}/dispatch.h
${BUS_DIR}/driver.c
${BUS_DIR}/driver.h
${BUS_DIR}/expirelist.c
${BUS_DIR}/expirelist.h
${BUS_DIR}/policy.c
${BUS_DIR}/policy.h
${BUS_DIR}/selinux.h
${BUS_DIR}/selinux.c
${BUS_DIR}/services.c
${BUS_DIR}/services.h
${BUS_DIR}/signals.c
${BUS_DIR}/signals.h
${BUS_DIR}/test.c
${BUS_DIR}/test.h
${BUS_DIR}/utils.c
${BUS_DIR}/utils.h
activation.c
activation.h
apparmor.c
apparmor.h
audit.c
audit.h
bus.c
bus.h
config-loader-expat.c
config-parser.c
config-parser.h
config-parser-common.c
config-parser-common.h
# config-parser-trivial.c
connection.c
connection.h
containers.c
containers.h
desktop-file.c
desktop-file.h
dir-watch.h
dispatch.c
dispatch.h
driver.c
driver.h
expirelist.c
expirelist.h
policy.c
policy.h
selinux.h
selinux.c
services.c
services.h
signals.c
signals.h
test.c
test.h
utils.c
utils.h
${DIR_WATCH_SOURCE}
)
if(DBUS_ENABLE_STATS)
list(APPEND BUS_SOURCES
${BUS_DIR}/stats.c
${BUS_DIR}/stats.h
stats.c
stats.h
)
endif(DBUS_ENABLE_STATS)
......@@ -94,14 +93,14 @@ if(WIN32)
set(DBUS_VER_INTERNAL_NAME "dbus-daemon")
set(DBUS_VER_ORIGINAL_NAME "${DBUS_VER_INTERNAL_NAME}${CMAKE_EXECUTABLE_SUFFIX}")
set(DBUS_VER_FILE_TYPE "VFT_APP")
configure_file(${CMAKE_SOURCE_DIR}/../dbus/versioninfo.rc.in ${CMAKE_CURRENT_BINARY_DIR}/versioninfo-${DBUS_VER_INTERNAL_NAME}.rc)
configure_file(../dbus/versioninfo.rc.in ${CMAKE_CURRENT_BINARY_DIR}/versioninfo-${DBUS_VER_INTERNAL_NAME}.rc)
list(APPEND BUS_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/versioninfo-${DBUS_VER_INTERNAL_NAME}.rc)
endif()
add_library(dbus-daemon-internal STATIC ${BUS_SOURCES})
target_link_libraries(dbus-daemon-internal ${DBUS_INTERNAL_LIBRARIES} ${EXPAT_LIBRARIES})
add_executable(dbus-daemon ${BUS_DIR}/main.c)
add_executable(dbus-daemon main.c)
target_link_libraries(dbus-daemon dbus-daemon-internal)
set_target_properties(dbus-daemon PROPERTIES OUTPUT_NAME ${DBUS_DAEMON_NAME})
set_target_properties(dbus-daemon PROPERTIES COMPILE_FLAGS ${DBUS_INTERNAL_CLIENT_DEFINITIONS})
......@@ -122,16 +121,16 @@ endif()
if (DBUS_SERVICE)
set (dbus_service_SOURCES
${BUS_DIR}/bus-service-win.c
bus-service-win.c
# TODO: add additional files
# ${BUS_DIR}/service-main.c
# service-main.c
# ${BUS_SOURCES}
)
set(DBUS_VER_INTERNAL_NAME "dbus-service")
set(DBUS_VER_ORIGINAL_NAME "${DBUS_VER_INTERNAL_NAME}${CMAKE_EXECUTABLE_SUFFIX}")
set(DBUS_VER_FILE_TYPE "VFT_APP")
configure_file(${CMAKE_SOURCE_DIR}/../dbus/versioninfo.rc.in ${CMAKE_CURRENT_BINARY_DIR}/versioninfo-${DBUS_VER_INTERNAL_NAME}.rc)
configure_file(../dbus/versioninfo.rc.in ${CMAKE_CURRENT_BINARY_DIR}/versioninfo-${DBUS_VER_INTERNAL_NAME}.rc)
list(APPEND dbus_service_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/versioninfo-${DBUS_VER_INTERNAL_NAME}.rc)
add_executable(dbus-service ${dbus_service_SOURCES} )
target_link_libraries(dbus-service ${DBUS_INTERNAL_LIBRARIES} ${EXPAT_LIBRARIES})
......@@ -140,18 +139,18 @@ if (DBUS_SERVICE)
endif (DBUS_SERVICE)
set(LAUNCH_HELPER_SOURCES
${BUS_DIR}/config-loader-expat.c
${BUS_DIR}/config-parser-common.c
${BUS_DIR}/config-parser-trivial.c
${BUS_DIR}/desktop-file.c
${BUS_DIR}/utils.c
config-loader-expat.c
config-parser-common.c
config-parser-trivial.c
desktop-file.c
utils.c
)
if(NOT WIN32)
add_library(launch-helper-internal STATIC ${LAUNCH_HELPER_SOURCES})
target_link_libraries(launch-helper-internal ${DBUS_INTERNAL_LIBRARIES} ${EXPAT_LIBRARIES})
add_executable(dbus-daemon-launch-helper ${BUS_DIR}/activation-helper.c ${BUS_DIR}/activation-helper-bin.c )
add_executable(dbus-daemon-launch-helper activation-helper.c activation-helper-bin.c )
target_link_libraries(dbus-daemon-launch-helper launch-helper-internal)
endif(NOT WIN32)
......
......@@ -9,8 +9,8 @@ endif (DBUS_INSTALL_SYSTEM_LIBS)
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "D-BUS For Windows")
SET(CPACK_PACKAGE_VENDOR "D-BUS Windows Team")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/../README")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/../COPYING")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
# duplicated from VERSION
SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
......
......@@ -175,7 +175,7 @@ macro(add_uac_manifest _sources)
# 24 is the resource type, RT_MANIFEST
# constants are used because of a bug in windres
# see https://stackoverflow.com/questions/33000158/embed-manifest-file-to-require-administrator-execution-level-with-mingw32
get_filename_component(UAC_FILE ${CMAKE_SOURCE_DIR}/../tools/Win32.Manifest REALPATH)
get_filename_component(UAC_FILE ${CMAKE_SOURCE_DIR}/tools/Win32.Manifest REALPATH)
set(outfile ${CMAKE_BINARY_DIR}/disable-uac.rc)
if(NOT EXISTS outfile)
file(WRITE ${outfile} "1 24 \"${UAC_FILE}\"\n")
......
if (DBUS_ENABLE_EMBEDDED_TESTS)
set (NAME_TEST_DIR ../../../test/name-test)
add_definitions(${DBUS_INTERNAL_CLIENT_DEFINITIONS})
add_helper_executable(test-autolaunch ${NAME_TEST_DIR}/test-autolaunch.c dbus-testutils)
add_helper_executable(test-privserver-client ${NAME_TEST_DIR}/test-privserver-client.c dbus-testutils)
add_session_test_executable(test-ids ${NAME_TEST_DIR}/test-ids.c ${DBUS_INTERNAL_LIBRARIES})
add_session_test_executable(test-pending-call-dispatch ${NAME_TEST_DIR}/test-pending-call-dispatch.c ${DBUS_INTERNAL_LIBRARIES})
add_session_test_executable(test-pending-call-timeout ${NAME_TEST_DIR}/test-pending-call-timeout.c ${DBUS_INTERNAL_LIBRARIES})
add_session_test_executable(test-shutdown ${NAME_TEST_DIR}/test-shutdown.c dbus-testutils)
add_session_test_executable(test-thread-init ${NAME_TEST_DIR}/test-threads-init.c ${DBUS_INTERNAL_LIBRARIES})
endif (DBUS_ENABLE_EMBEDDED_TESTS)
SET(DBUS_DIR ../../dbus)
configure_file(${DBUS_DIR}/dbus-arch-deps.h.in ${CMAKE_CURRENT_BINARY_DIR}/dbus-arch-deps.h )
configure_file(dbus-arch-deps.h.in ${CMAKE_CURRENT_BINARY_DIR}/dbus-arch-deps.h )
add_definitions(-DDBUS_COMPILATION)
set (dbusinclude_HEADERS
${DBUS_DIR}/dbus.h
${DBUS_DIR}/dbus-address.h
${DBUS_DIR}/dbus-bus.h
${DBUS_DIR}/dbus-connection.h
${DBUS_DIR}/dbus-errors.h
${DBUS_DIR}/dbus-macros.h
${DBUS_DIR}/dbus-memory.h
${DBUS_DIR}/dbus-message.h
${DBUS_DIR}/dbus-misc.h
${DBUS_DIR}/dbus-pending-call.h
${DBUS_DIR}/dbus-protocol.h
${DBUS_DIR}/dbus-server.h
${DBUS_DIR}/dbus-shared.h
${DBUS_DIR}/dbus-signature.h
${DBUS_DIR}/dbus-syntax.h
${DBUS_DIR}/dbus-threads.h
${DBUS_DIR}/dbus-types.h
dbus.h
dbus-address.h
dbus-bus.h
dbus-connection.h
dbus-errors.h
dbus-macros.h
dbus-memory.h
dbus-message.h
dbus-misc.h
dbus-pending-call.h
dbus-protocol.h
dbus-server.h
dbus-shared.h
dbus-signature.h
dbus-syntax.h
dbus-threads.h
dbus-types.h
)
set (dbusinclude_ARCH_HEADERS
${CMAKE_CURRENT_BINARY_DIR}/dbus-arch-deps.h
......@@ -30,83 +28,83 @@ set (dbusinclude_ARCH_HEADERS
### source code that goes in the installed client library
### and is specific to library functionality
set (DBUS_LIB_SOURCES
${DBUS_DIR}/dbus-address.c
${DBUS_DIR}/dbus-auth.c
${DBUS_DIR}/dbus-bus.c
${DBUS_DIR}/dbus-connection.c
${DBUS_DIR}/dbus-credentials.c
${DBUS_DIR}/dbus-errors.c
${DBUS_DIR}/dbus-keyring.c
${DBUS_DIR}/dbus-marshal-header.c
${DBUS_DIR}/dbus-marshal-byteswap.c
${DBUS_DIR}/dbus-marshal-recursive.c
${DBUS_DIR}/dbus-marshal-validate.c
${DBUS_DIR}/dbus-message.c
${DBUS_DIR}/dbus-misc.c
${DBUS_DIR}/dbus-nonce.c
${DBUS_DIR}/dbus-object-tree.c
${DBUS_DIR}/dbus-pending-call.c
${DBUS_DIR}/dbus-resources.c
${DBUS_DIR}/dbus-server.c
${DBUS_DIR}/dbus-server-socket.c
${DBUS_DIR}/dbus-server-debug-pipe.c
${DBUS_DIR}/dbus-sha.c
${DBUS_DIR}/dbus-signature.c
${DBUS_DIR}/dbus-syntax.c
${DBUS_DIR}/dbus-timeout.c
${DBUS_DIR}/dbus-threads.c
${DBUS_DIR}/dbus-transport.c
${DBUS_DIR}/dbus-transport-socket.c
${DBUS_DIR}/dbus-watch.c
dbus-address.c
dbus-auth.c
dbus-bus.c
dbus-connection.c
dbus-credentials.c
dbus-errors.c
dbus-keyring.c
dbus-marshal-header.c
dbus-marshal-byteswap.c
dbus-marshal-recursive.c
dbus-marshal-validate.c
dbus-message.c
dbus-misc.c
dbus-nonce.c
dbus-object-tree.c
dbus-pending-call.c
dbus-resources.c
dbus-server.c
dbus-server-socket.c
dbus-server-debug-pipe.c
dbus-sha.c
dbus-signature.c
dbus-syntax.c
dbus-timeout.c
dbus-threads.c
dbus-transport.c
dbus-transport-socket.c
dbus-watch.c
)
if(UNIX)
set (DBUS_LIB_SOURCES ${DBUS_LIB_SOURCES}
${DBUS_DIR}/dbus-transport-unix.c
${DBUS_DIR}/dbus-server-unix.c
dbus-transport-unix.c
dbus-server-unix.c
)
else(UNIX)
set (DBUS_LIB_SOURCES ${DBUS_LIB_SOURCES}
${DBUS_DIR}/dbus-transport-win.c
${DBUS_DIR}/dbus-server-win.c
dbus-transport-win.c
dbus-server-win.c
)
endif(UNIX)
set (DBUS_LIB_HEADERS
${DBUS_DIR}/dbus-auth.h
${DBUS_DIR}/dbus-connection-internal.h
${DBUS_DIR}/dbus-credentials.h
${DBUS_DIR}/dbus-keyring.h
${DBUS_DIR}/dbus-marshal-header.h
${DBUS_DIR}/dbus-marshal-byteswap.h
${DBUS_DIR}/dbus-marshal-recursive.h
${DBUS_DIR}/dbus-marshal-validate.h
${DBUS_DIR}/dbus-message-internal.h
${DBUS_DIR}/dbus-message-private.h
${DBUS_DIR}/dbus-misc.h
${DBUS_DIR}/dbus-object-tree.h
${DBUS_DIR}/dbus-protocol.h
${DBUS_DIR}/dbus-resources.h
${DBUS_DIR}/dbus-server-debug-pipe.h
${DBUS_DIR}/dbus-server-protected.h
${DBUS_DIR}/dbus-server-unix.h
${DBUS_DIR}/dbus-sha.h
${DBUS_DIR}/dbus-timeout.h
${DBUS_DIR}/dbus-threads.h
${DBUS_DIR}/dbus-threads-internal.h
${DBUS_DIR}/dbus-transport.h
${DBUS_DIR}/dbus-transport-protected.h
${DBUS_DIR}/dbus-watch.h
dbus-auth.h
dbus-connection-internal.h
dbus-credentials.h
dbus-keyring.h
dbus-marshal-header.h
dbus-marshal-byteswap.h
dbus-marshal-recursive.h
dbus-marshal-validate.h
dbus-message-internal.h
dbus-message-private.h
dbus-misc.h
dbus-object-tree.h
dbus-protocol.h
dbus-resources.h
dbus-server-debug-pipe.h
dbus-server-protected.h
dbus-server-unix.h
dbus-sha.h
dbus-timeout.h
dbus-threads.h
dbus-threads-internal.h
dbus-transport.h
dbus-transport-protected.h
dbus-watch.h
${CMAKE_BINARY_DIR}/config.h
)
if(UNIX)
set (DBUS_LIB_HEADERS ${DBUS_LIB_HEADERS}
${DBUS_DIR}/dbus-transport-unix.h
dbus-transport-unix.h
)
else(UNIX)
set (DBUS_LIB_HEADERS ${DBUS_LIB_HEADERS}
${DBUS_DIR}/dbus-transport-win.h
dbus-transport-win.h
)
endif(UNIX)
......@@ -116,33 +114,33 @@ endif(UNIX)
### daemon or test programs (all symbols in here should
### be underscore-prefixed)
set (DBUS_SHARED_SOURCES
${DBUS_DIR}/dbus-dataslot.c
${DBUS_DIR}/dbus-file.c
${DBUS_DIR}/dbus-hash.c
${DBUS_DIR}/dbus-internals.c
${DBUS_DIR}/dbus-list.c
${DBUS_DIR}/dbus-marshal-basic.c
${DBUS_DIR}/dbus-memory.c
${DBUS_DIR}/dbus-mempool.c
${DBUS_DIR}/dbus-string.c
${DBUS_DIR}/dbus-sysdeps.c
${DBUS_DIR}/dbus-pipe.c
${DBUS_DIR}/dbus-test-tap.c
dbus-dataslot.c
dbus-file.c
dbus-hash.c
dbus-internals.c
dbus-list.c
dbus-marshal-basic.c
dbus-memory.c
dbus-mempool.c
dbus-string.c
dbus-sysdeps.c
dbus-pipe.c
dbus-test-tap.c
)
set (DBUS_SHARED_HEADERS
${DBUS_DIR}/dbus-dataslot.h
${DBUS_DIR}/dbus-file.h
${DBUS_DIR}/dbus-hash.h
${DBUS_DIR}/dbus-internals.h
${DBUS_DIR}/dbus-list.h
${DBUS_DIR}/dbus-marshal-basic.h
${DBUS_DIR}/dbus-mempool.h
${DBUS_DIR}/dbus-string.h
${DBUS_DIR}/dbus-string-private.h
${DBUS_DIR}/dbus-pipe.h
${DBUS_DIR}/dbus-sysdeps.h
${DBUS_DIR}/dbus-test-tap.h
dbus-dataslot.h
dbus-file.h
dbus-hash.h
dbus-internals.h
dbus-list.h
dbus-marshal-basic.h
dbus-mempool.h