netinterfaces.pro 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. TEMPLATE = lib
  2. TARGET = NetInterfaces
  3. QT += sql qml
  4. CONFIG += qt plugin c++11
  5. CONFIG(debug, debug|release) {
  6. QMAKE_CXXFLAGS -= -Os
  7. QMAKE_CFLAGS -= -Os
  8. QMAKE_CXXFLAGS += -D_DEBUG
  9. QMAKE_CFLAGS += -D_DEBUG
  10. QMAKE_LIBS += -lgfanetd
  11. }
  12. CONFIG(release, debug|release) {
  13. QMAKE_LIBS += -lgfanet
  14. }
  15. #TARGET = $$qtLibraryTarget($$TARGET)
  16. #message($$TARGET)
  17. uri = gfa.plugins.qml.net
  18. # Input
  19. SOURCES += \
  20. netinterfaces.cpp \
  21. netinterfaces_plugin.cpp
  22. HEADERS += \
  23. netinterfaces.h \
  24. netinterfaces_plugin.h
  25. DISTFILES = qmldir
  26. DISTFILES += gfa.plugins.qml.net.qmltypes
  27. !equals(_PRO_FILE_PWD_, $$OUT_PWD)
  28. {
  29. copy_qmldir.target = $$OUT_PWD/qmldir
  30. copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
  31. copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
  32. QMAKE_EXTRA_TARGETS += copy_qmldir
  33. PRE_TARGETDEPS += $$copy_qmldir.target
  34. }
  35. qmldir.files = qmldir
  36. unix {
  37. installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
  38. qmldir.path = $$installPath
  39. target.path = $$installPath
  40. INSTALLS += target qmldir
  41. message($${installPath})
  42. }