Commit 2003d22e authored by chriadam's avatar chriadam

[nemo-qml-plugin-calendar] Add import/export tool. Contributes to MER#1120

This commit adds a tool to import ics data into the local device
calendar, and export events from the local device as an ics file.

Contributes to MER#1120
parent 39f20bec
TEMPLATE = subdirs
SUBDIRS = src tests lightweight
SUBDIRS = src tests lightweight tools
tests.depends = src
tools.depends = src
OTHER_FILES += rpm/* qmldir
OTHER_FILES += rpm/*
......@@ -26,5 +26,7 @@ HEADERS += \
calendareventsmodel.h \
../common/eventdata.h
OTHER_FILES += qmldir
MOC_DIR = $$PWD/.moc
OBJECTS_DIR = $$PWD/.obj
......@@ -35,6 +35,16 @@ BuildRequires: pkgconfig(Qt5DBus)
%description lightweight
%{summary}.
%package tools
Summary: Calendar import/export tool
License: BSD
Group: Applications/System
BuildRequires: pkgconfig(libmkcal-qt5)
BuildRequires: pkgconfig(libkcalcoren-qt5)
%description tools
%{summary}.
%prep
%setup -q -n %{name}-%{version}
......@@ -63,3 +73,7 @@ rm -rf %{buildroot}
%{_datadir}/dbus-1/services/org.nemomobile.calendardataservice.service
%{_libdir}/qt5/qml/org/nemomobile/calendar/lightweight/libnemocalendarwidget.so
%{_libdir}/qt5/qml/org/nemomobile/calendar/lightweight/qmldir
%files tools
%defattr(-,root,root,-)
%{_bindir}/icalconverter
......@@ -54,5 +54,7 @@ HEADERS += \
$$SRCDIR/calendarimportmodel.h \
$$SRCDIR/calendarimportevent.h
OTHER_FILES += qmldir
MOC_DIR = $$PWD/.moc
OBJECTS_DIR = $$PWD/.obj
TEMPLATE=app
TARGET=icalconverter
QT-=gui
CONFIG += link_pkgconfig
PKGCONFIG += libkcalcoren-qt5 libmkcal-qt5
QMAKE_CXXFLAGS += -fPIE -fvisibility=hidden -fvisibility-inlines-hidden
SOURCES+=main.cpp
target.path = $$INSTALL_ROOT/usr/bin/
INSTALLS+=target
This diff is collapsed.
TEMPLATE=subdirs
SUBDIRS+=icalconverter
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment