mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-20 17:35:39 +02:00
module/network: drop libnl dependency, use raw netlink sockets instead
This commit is contained in:
parent
0ea4e5a2d8
commit
b3f3f91dc2
2 changed files with 309 additions and 225 deletions
|
@ -22,7 +22,6 @@ pkg_check_modules(XCB_XKB REQUIRED xcb-xkb) # Module/xkb
|
|||
pkg_check_modules(JSON REQUIRED json-c) # Module/i3
|
||||
pkg_check_modules(UDEV REQUIRED libudev) # Module/battery
|
||||
pkg_check_modules(MPD REQUIRED libmpdclient) # Module/mpd
|
||||
pkg_check_modules(NL REQUIRED libnl-3.0 libnl-route-3.0) # Module/network
|
||||
|
||||
add_executable(f00bar
|
||||
bar.c bar.h
|
||||
|
@ -70,7 +69,6 @@ target_compile_options(f00bar PRIVATE
|
|||
${JSON_CFLAGS_OTHER}
|
||||
${UDEV_CFLAGS_OTHER}
|
||||
${MPD_CFLAGS_OTHER}
|
||||
${NL_CFLAGS_OTHER}
|
||||
)
|
||||
|
||||
target_include_directories(f00bar PRIVATE
|
||||
|
@ -81,7 +79,6 @@ target_include_directories(f00bar PRIVATE
|
|||
${JSON_INCLUDE_DIRS}
|
||||
${UDEV_INCLUDE_DIRS}
|
||||
${MPD_INCLUDE_DIRS}
|
||||
${NL_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
target_link_libraries(f00bar
|
||||
|
@ -93,5 +90,4 @@ target_link_libraries(f00bar
|
|||
${JSON_LIBRARIES}
|
||||
${UDEV_LIBRARIES}
|
||||
${MPD_LIBRARIES}
|
||||
${NL_LIBRARIES}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue