Skip to content

Commit

Permalink
Merge pull request #87 from microsoft/nl80211msgparse
Browse files Browse the repository at this point in the history
Implement nl80211 message parsing.
  • Loading branch information
abeltrano authored Jan 1, 2024
2 parents 073506e + e8f1b38 commit e11f328
Show file tree
Hide file tree
Showing 7 changed files with 571 additions and 33 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GN
endif()
endif()
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# TODO
# Nothing special needed for MSVC at the moment.
endif()

if (CMAKE_BUILD_TYPE MATCHES "(Release|RelWithDebInfo|MinSizeRel)")
add_compile_definitions(_FORTIFY_SOURCE=2)
endif()
# Add conditional compile definitions based on build type.
add_compile_definitions("$<$<CONFIG:Debug>:DEBUG>")
add_compile_definitions("$<$<CONFIG:Release,RelWithDebInfo,MinSizeRel>:_FORTIFY_SOURCE=2>")

# Common source directories
set(NETREMOTE_DIR_SRC ${CMAKE_CURRENT_LIST_DIR}/src)
Expand Down
2 changes: 2 additions & 0 deletions src/linux/libnl-helpers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set(LIBNL_HELPERS_PUBLIC_INCLUDE_PREFIX ${LIBNL_HELPERS_PUBLIC_INCLUDE}/${LIBNL_

target_sources(libnl-helpers
PRIVATE
Netlink80211.cxx
NetlinkSocket.cxx
NetlinkMessage.cxx
PUBLIC
Expand All @@ -15,6 +16,7 @@ target_sources(libnl-helpers
FILES
${LIBNL_HELPERS_PUBLIC_INCLUDE_PREFIX}/NetlinkMessage.hxx
${LIBNL_HELPERS_PUBLIC_INCLUDE_PREFIX}/NetlinkSocket.hxx
${LIBNL_HELPERS_PUBLIC_INCLUDE_PREFIX}/nl80211/Netlink80211.hxx
)

target_link_libraries(libnl-helpers
Expand Down
Loading

0 comments on commit e11f328

Please sign in to comment.