removed STD archeus, moved console and ssh into linux folder. also added libdbus

This commit is contained in:
herbglitch 2025-02-08 02:15:23 -07:00
parent 119d1b2c64
commit 8fe402e04e
27 changed files with 622 additions and 145 deletions

View file

@ -0,0 +1,27 @@
set(ARCHEUS_LIBDBUS_DBUS_SOURCES
packages/linux/dbus/libdbus/dbus.c
packages/linux/dbus/libdbus/helpers.c
)
function(libdbus_check_and_init_needed _ARCHEUS_SOURCES _ARCHEUS_INCLUDE_DIRECTORIES _ARCHEUS_LINK_LIBRARIES ARCHEUS_DBUS_BACKEND)
#add matching files for the selected backends
if(${ARCHEUS_DBUS_BACKEND} STREQUAL "LIBDBUS")
find_package(PkgConfig REQUIRED)
pkg_check_modules(DBUS REQUIRED dbus-1)
list(APPEND ${_ARCHEUS_SOURCES} ${ARCHEUS_LIBDBUS_DBUS_SOURCES})
#add to include directories
list(APPEND ${_ARCHEUS_INCLUDE_DIRECTORIES}
PUBLIC ${DBUS_INCLUDE_DIRS}
)
list(APPEND ${_ARCHEUS_LINK_LIBRARIES}
PUBLIC ${DBUS_LIBRARIES}
)
endif()
set(${_ARCHEUS_SOURCES} ${${_ARCHEUS_SOURCES}} PARENT_SCOPE)
set(${_ARCHEUS_INCLUDE_DIRECTORIES} ${${_ARCHEUS_INCLUDE_DIRECTORIES}} PARENT_SCOPE)
set(${_ARCHEUS_LINK_LIBRARIES} ${${_ARCHEUS_LINK_LIBRARIES}} PARENT_SCOPE)
endfunction()