| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- TEMPLATE = lib
- TARGET = NetInterfaces
- QT += sql qml
- CONFIG += qt plugin c++11
- CONFIG(debug, debug|release) {
- QMAKE_CXXFLAGS -= -Os
- QMAKE_CFLAGS -= -Os
- QMAKE_CXXFLAGS += -D_DEBUG
- QMAKE_CFLAGS += -D_DEBUG
- QMAKE_LIBS += -lgfanetd
- }
- CONFIG(release, debug|release) {
- QMAKE_LIBS += -lgfanet
- }
- #TARGET = $$qtLibraryTarget($$TARGET)
- #message($$TARGET)
- uri = gfa.plugins.qml.net
- # Input
- SOURCES += \
- netinterfaces.cpp \
- netinterfaces_plugin.cpp
- HEADERS += \
- netinterfaces.h \
- netinterfaces_plugin.h
- DISTFILES = qmldir
- DISTFILES += gfa.plugins.qml.net.qmltypes
- !equals(_PRO_FILE_PWD_, $$OUT_PWD)
- {
- copy_qmldir.target = $$OUT_PWD/qmldir
- copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
- copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
- QMAKE_EXTRA_TARGETS += copy_qmldir
- PRE_TARGETDEPS += $$copy_qmldir.target
- }
- qmldir.files = qmldir
- unix {
- installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
- qmldir.path = $$installPath
- target.path = $$installPath
- INSTALLS += target qmldir
- message($${installPath})
- }
|