From fccdf15a7c322be7d22b83b0433595fe2f8867b8 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 18 Jun 2016 23:36:17 +0100 Subject: [PATCH] Added build shell scripts for unit testing and GUI building Please do not rely on these script - they will be removed and replaced with proper Makefiles at a later date. --- source/tests/build-gui.sh | 7 +++++++ source/tests/build.sh | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 source/tests/build-gui.sh create mode 100755 source/tests/build.sh diff --git a/source/tests/build-gui.sh b/source/tests/build-gui.sh new file mode 100755 index 0000000..297fb89 --- /dev/null +++ b/source/tests/build-gui.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +g++ `wx-config --libs --cxxflags` -ggdb --std=c++11 \ +xestiacalendar_testxccalendarday.cpp \ +../widgets/XCCalendarDay.cpp \ +../widgets/XCCalendarDayEntry.cpp \ +-DXESTIACAL_UNITTEST -o xestiacalendar_testgui_xccalendarday diff --git a/source/tests/build.sh b/source/tests/build.sh new file mode 100755 index 0000000..d3534be --- /dev/null +++ b/source/tests/build.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +g++ `xml2-config --cflags --libs` -ggdb --std=c++11 -lcurl -lgtest -pthread \ +xestiacalendar_test.cpp xestiacalendar_testcommon.cpp xestiacalendar_populate.cpp \ +../objects/calendarevent/CalendarEvent.cpp \ +../objects/calendarevent/CalendarEvent-Save.cpp \ +../objects/calendartask/CalendarTask.cpp \ +../objects/calendartask/CalendarTask-Save.cpp \ +../objects/calendarjournal/CalendarJournal.cpp \ +../objects/calendarjournal/CalendarJournal-Save.cpp \ +../objects/calendarfreebusy/CalendarFreeBusy.cpp \ +../objects/calendarfreebusy/CalendarFreeBusy-Save.cpp \ +../objects/calendartimezone/CalendarTimezone.cpp \ +../objects/calendartimezone/CalendarTimezone-Save.cpp \ +../objects/calendarobject/CalendarObject.cpp \ +../objects/calendarobject/CalendarObject-Save.cpp \ +../common/file.cpp \ +../common/text.cpp \ +../common/uuid.cpp \ +../objects/CalDAV/CalDAV.cpp \ +../objects/CalDAV/CalDAV-XMLProcessing.cpp \ +-DXESTIACAL_UNITTEST -o xestiacalendar_test -- 2.39.2