Skip to content

Instantly share code, notes, and snippets.

@arvidfm
Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arvidfm/9662866 to your computer and use it in GitHub Desktop.
Save arvidfm/9662866 to your computer and use it in GitHub Desktop.
TEMPLATE = lib
TARGET = keepaliveplugin
TARGET = $$qtLibraryTarget($$TARGET)
QT += dbus qml
CONFIG += debug plugin
INCLUDEPATH += nemo-keepalive/lib
PROJECT = PROJECT_NAME_HERE
TARGET_PATH = /usr/share/harbour-$$PROJECT/harbour/$$PROJECT/keepalive
system(qdbusxml2cpp -p nemo-keepalive/lib/mceiface.h:nemo-keepalive/lib/mceiface.cpp nemo-keepalive/lib/mceiface.xml)
# workaround to allow custom import paths
system(sed -e s/org\.nemomobile\.keepalive/harbour.PROJECT_NAME_HERE.keepalive/ -e s/plugin\.moc/plugin-fixed.moc/ nemo-keepalive/plugin/plugin.cpp > nemo-keepalive/plugin/plugin-fixed.cpp)
SOURCES += \
libiphb/src/libiphb.c \
nemo-keepalive/lib/displayblanking.cpp \
nemo-keepalive/lib/displayblanking_p.cpp \
nemo-keepalive/lib/backgroundactivity.cpp \
nemo-keepalive/lib/backgroundactivity_p.cpp \
nemo-keepalive/lib/mceiface.cpp \
nemo-keepalive/lib/heartbeat.cpp \
nemo-keepalive/plugin/declarativebackgroundactivity.cpp \
nemo-keepalive/plugin/plugin-fixed.cpp
HEADERS += \
libiphb/src/libiphb.h \
libiphb/src/iphb_internal.h \
nemo-keepalive/lib/displayblanking.h \
nemo-keepalive/lib/displayblanking_p.h \
nemo-keepalive/lib/backgroundactivity.h \
nemo-keepalive/lib/backgroundactivity_p.h \
nemo-keepalive/lib/mceiface.h \
nemo-keepalive/lib/heartbeat.h \
nemo-keepalive/lib/common.h \
nemo-keepalive/plugin/declarativebackgroundactivity.h
target.path = $$TARGET_PATH
qmldir.path = $$TARGET_PATH
qmldir.files = qmldir
INSTALLS += target qmldir
module harbour.PROJECT_NAME_HERE.keepalive
plugin keepaliveplugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment