Home | History | Annotate | Download | only in wpa_gui
      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   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 
     22 INCLUDEPATH	+= . .. ../../src ../../src/utils
     23 
     24 HEADERS	+= wpamsg.h
     25 
     26 SOURCES	+= main.cpp \
     27 	../../src/common/wpa_ctrl.c
     28 
     29 FORMS	= wpagui.ui \
     30 	eventhistory.ui \
     31 	scanresults.ui \
     32 	userdatarequest.ui \
     33 	networkconfig.ui
     34 
     35 
     36 unix {
     37   UI_DIR = .ui
     38   MOC_DIR = .moc
     39   OBJECTS_DIR = .obj
     40 }
     41 
     42 qtver = $$[QT_VERSION]
     43 isEmpty( 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