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 23 SOURCES += main.cpp \ 24 ../wpa_ctrl.c 25 26 FORMS = wpagui.ui \ 27 eventhistory.ui \ 28 scanresults.ui \ 29 userdatarequest.ui \ 30 networkconfig.ui 31 32 33 unix { 34 UI_DIR = .ui 35 MOC_DIR = .moc 36 OBJECTS_DIR = .obj 37 } 38 39 qtver = $$[QT_VERSION] 40 isEmpty( qtver ) { 41 message(Compiling for Qt 3.x) 42 DEFINES += Q3ListViewItem=QListViewItem 43 } else { 44 message(Compiling for Qt $$qtver) 45 QT += qt3support 46 CONFIG += uic3 47 } 48