wpa_gui.pro 1.2 KB

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