mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
9904b53d67
"Add interface" command in File menu can now be used to add a new network interface to running wpa_supplicant (using INTERFACE_ADD control interface command). In addition, the network interface is added into Windows registry (with skip_on_error) for future use. This functionality is currently enabled only for Windows builds. The user is also prompted about the possibility of adding an interface if no interfaces are enabled. This makes it easier to get started without having to touch registry manually.
63 lines
1.3 KiB
Prolog
63 lines
1.3 KiB
Prolog
TEMPLATE = app
|
|
LANGUAGE = C++
|
|
|
|
CONFIG += qt warn_on release
|
|
|
|
DEFINES += CONFIG_CTRL_IFACE
|
|
|
|
win32 {
|
|
LIBS += -lws2_32 -static
|
|
DEFINES += CONFIG_NATIVE_WINDOWS CONFIG_CTRL_IFACE_NAMED_PIPE
|
|
SOURCES += ../../src/utils/os_win32.c
|
|
} else:win32-g++ {
|
|
# cross compilation to win32
|
|
LIBS += -lws2_32 -static -mwindows
|
|
DEFINES += CONFIG_NATIVE_WINDOWS CONFIG_CTRL_IFACE_NAMED_PIPE
|
|
SOURCES += ../../src/utils/os_win32.c
|
|
RESOURCES += icons_png.qrc
|
|
} else:win32-x-g++ {
|
|
# cross compilation to win32
|
|
LIBS += -lws2_32 -static -mwindows
|
|
DEFINES += CONFIG_NATIVE_WINDOWS CONFIG_CTRL_IFACE_NAMED_PIPE
|
|
DEFINES += _X86_
|
|
SOURCES += ../../src/utils/os_win32.c
|
|
RESOURCES += icons_png.qrc
|
|
} else {
|
|
DEFINES += CONFIG_CTRL_IFACE_UNIX
|
|
SOURCES += ../../src/utils/os_unix.c
|
|
}
|
|
|
|
INCLUDEPATH += . .. ../../src/utils ../../src/common
|
|
|
|
HEADERS += wpamsg.h \
|
|
wpagui.h \
|
|
eventhistory.h \
|
|
scanresults.h \
|
|
userdatarequest.h \
|
|
networkconfig.h \
|
|
addinterface.h
|
|
|
|
SOURCES += main.cpp \
|
|
wpagui.cpp \
|
|
eventhistory.cpp \
|
|
scanresults.cpp \
|
|
userdatarequest.cpp \
|
|
networkconfig.cpp \
|
|
addinterface.cpp \
|
|
../../src/common/wpa_ctrl.c
|
|
|
|
RESOURCES += icons.qrc
|
|
|
|
FORMS = wpagui.ui \
|
|
eventhistory.ui \
|
|
scanresults.ui \
|
|
userdatarequest.ui \
|
|
networkconfig.ui
|
|
|
|
|
|
unix {
|
|
UI_DIR = .ui
|
|
MOC_DIR = .moc
|
|
OBJECTS_DIR = .obj
|
|
}
|