1 TEMPLATE = app 2 LANGUAGE = C++ 3 4 CONFIG += qt warn_on release 5 6 DEFINES += CONFIG_CTRL_IFACE 7 8 win32 { 9 LIBS += -lws2_32 -static 10 DEFINES += CONFIG_NATIVE_WINDOWS CONFIG_CTRL_IFACE_NAMED_PIPE 11 } else:win32-g++ { 12 # cross compilation to win32 13 LIBS += -lws2_32 -static 14 DEFINES += CONFIG_NATIVE_WINDOWS CONFIG_CTRL_IFACE_NAMED_PIPE 15 } else { 16 DEFINES += CONFIG_CTRL_IFACE_UNIX 17 } 18 19 INCLUDEPATH += . .. ../../hostapd 20 21 HEADERS += wpamsg.h \ 22 wpagui.h \ 23 eventhistory.h \ 24 scanresults.h \ 25 userdatarequest.h \ 26 networkconfig.h 27 28 SOURCES += main.cpp \ 29 wpagui.cpp \ 30 eventhistory.cpp \ 31 scanresults.cpp \ 32 userdatarequest.cpp \ 33 networkconfig.cpp \ 34 ../wpa_ctrl.c 35 36 FORMS = wpagui.ui \ 37 eventhistory.ui \ 38 scanresults.ui \ 39 userdatarequest.ui \ 40 networkconfig.ui 41 42 43 unix { 44 UI_DIR = .ui 45 MOC_DIR = .moc 46 OBJECTS_DIR = .obj 47 } 48 49 # TODO: remove need for Qt3 support code 50 QT += qt3support 51