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