Skip to content

Commit

Permalink
Move plugin source to a subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvogt committed Jul 14, 2016
1 parent d788f0c commit 39a6b87
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 29 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions src/plugin/plugin.pro
@@ -0,0 +1,29 @@
TARGET = nemofilemanager
PLUGIN_IMPORT_PATH = Nemo/FileManager

TEMPLATE = lib
CONFIG += qt plugin hide_symbols c++11
QT += qml

CONFIG += link_pkgconfig
PKGCONFIG += contactcache-qt5

# Drop any library linkage we dont actually need (such as contactcache-qt5)
QMAKE_LFLAGS *= -Wl,--as-needed

target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
INSTALLS += target

qmldir.files += $$_PRO_FILE_PWD_/qmldir
qmldir.path += $$target.path
INSTALLS += qmldir

SOURCES += plugin.cpp filemodel.cpp fileengine.cpp \
fileworker.cpp statfileinfo.cpp

HEADERS += filemodel.h fileengine.h fileworker.h \
statfileinfo.h

INCLUDEPATH += $$PWD

OTHER_FILES += ../../example/*/*.qml
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 2 additions & 29 deletions src/src.pro
@@ -1,29 +1,2 @@
TARGET = nemofilemanager
PLUGIN_IMPORT_PATH = Nemo/FileManager

TEMPLATE = lib
CONFIG += qt plugin hide_symbols c++11
QT += qml

CONFIG += link_pkgconfig
PKGCONFIG += contactcache-qt5

# Drop any library linkage we don't actually need (such as contactcache-qt5)
QMAKE_LFLAGS *= -Wl,--as-needed

target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
INSTALLS += target

qmldir.files += $$_PRO_FILE_PWD_/qmldir
qmldir.path += $$target.path
INSTALLS += qmldir

SOURCES += plugin.cpp filemodel.cpp fileengine.cpp \
fileworker.cpp statfileinfo.cpp

HEADERS += filemodel.h fileengine.h fileworker.h \
statfileinfo.h

INCLUDEPATH += $$PWD

OTHER_FILES += ../example/*/*.qml
TEMPLATE = subdirs
SUBDIRS = plugin

0 comments on commit 39a6b87

Please sign in to comment.