-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from microsoft/hostap
Integrate hostap into project
- Loading branch information
Showing
11 changed files
with
137 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
if (BUILD_HOSTAP_EXTERNAL) | ||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../external/hostap) | ||
else() | ||
find_library(LIBWPA_CLIENT | ||
NAMES libwpa_client.so | ||
REQUIRED) | ||
endif() | ||
|
||
if(LIBWPA_CLIENT) | ||
set(LIBWPA_CLIENT_TARGET ${LIBWPA_CLIENT}) | ||
MESSAGE(STATUS "Found wpa client: ${LIBWPA_CLIENT}") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_CTRL_IFACE=y | ||
CONFIG_BUILD_WPA_CLIENT_SO=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
find_program(MAKE_EXE | ||
NAMES gmake nmake make | ||
REQUIRED | ||
) | ||
|
||
set(HOSTAP_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}) | ||
|
||
set(HOSTAP_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/hostap-prefix/src/hostap/wpa_supplicant CACHE INTERNAL "Path of external project code") | ||
set(HOSTAP_LOCAL_INCLUDE_DIR ${HOSTAP_INSTALL_DIR}/usr/local/include CACHE INTERNAL "Path of external project includes") | ||
set(HOSTAP_LOCAL_LIB_DIR ${HOSTAP_INSTALL_DIR}/usr/local/lib CACHE INTERNAL "Path of external project built libraries") | ||
set(HOSTAP_LOCAL_SBIN_DIR ${HOSTAP_INSTALL_DIR}/usr/local/sbin CACHE INTERNAL "Path of external project built system binaries") | ||
|
||
ExternalProject_Add(hostap | ||
GIT_REPOSITORY "http://w1.fi/hostap.git" | ||
GIT_TAG "hostap_2_10" | ||
CONFIGURE_COMMAND cp -n ${CMAKE_CURRENT_SOURCE_DIR}/.config ${HOSTAP_PREFIX}/.config | ||
BINARY_DIR ${HOSTAP_PREFIX} | ||
BUILD_COMMAND QUIET=1 ${MAKE_EXE} libwpa_client.so | ||
INSTALL_DIR ${HOSTAP_INSTALL_DIR} | ||
INSTALL_COMMAND QUIET=1 DESTDIR=${HOSTAP_INSTALL_DIR} ${MAKE_EXE} install | ||
) | ||
|
||
set(LIBWPA_CLIENT | ||
${HOSTAP_LOCAL_LIB_DIR}/libwpa_client.so | ||
CACHE FILEPATH | ||
"wpa client shared object" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(hostap-controller) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
add_library(hostap-controller SHARED "") | ||
|
||
if (BUILD_HOSTAP_EXTERNAL) | ||
add_dependencies(hostap-controller hostap) | ||
|
||
target_include_directories(hostap-controller | ||
PRIVATE | ||
${HOSTAP_LOCAL_INCLUDE_DIR} | ||
) | ||
endif() | ||
|
||
target_sources(hostap-controller | ||
PRIVATE | ||
Placeholder.cxx | ||
) | ||
|
||
|
||
target_link_libraries(hostap-controller | ||
INTERFACE | ||
${LIBWPA_CLIENT_TARGET} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
#include <cstddef> | ||
|
||
#include <wpa_ctrl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,10 @@ | |
}, | ||
"protobuf", | ||
"catch2", | ||
"magic-enum" | ||
"magic-enum", | ||
{ | ||
"name": "wil", | ||
"platform": "windows" | ||
} | ||
] | ||
} |
Empty file.