From 28b2c08f60f54a78596746e204f4d0092587a09a Mon Sep 17 00:00:00 2001 From: rootavish Date: Sun, 18 May 2014 21:57:45 +0530 Subject: adding epub support : created Makefiles,modified configuration script kickoff commit to add ePub support , creating a subdirectory structure and modified makefiles and configure script to accomodate for ePub . As the sources are done , these will be further changed accordingly . --- backend/epub/Makefile.am | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 backend/epub/Makefile.am (limited to 'backend/epub/Makefile.am') diff --git a/backend/epub/Makefile.am b/backend/epub/Makefile.am new file mode 100644 index 00000000..6ecbdb2a --- /dev/null +++ b/backend/epub/Makefile.am @@ -0,0 +1,30 @@ +AM_CPPFLAGS = \ + -I$(top_srcdir) \ + -I$(top_srcdir)/libdocument \ + -DMATELOCALEDIR=\"$(datadir)/locale\" \ + -DATRIL_COMPILATION \ + $(BACKEND_CFLAGS) \ + $(WARN_CXXFLAGS) \ + $(DISABLE_DEPRECATED) + +backend_LTLIBRARIES = libepubdocument.la + +libepubdocument_la_SOURCES = + + +libepubdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) +libepubdocument_la_LIBADD = \ + $(top_builddir)/libdocument/libatrildocument.la \ + $(BACKEND_LIBS) + + +backend_in_files = epubdocument.atril-backend.in +backend_DATA = $(backend_in_files:.atril-backend.in=.atril-backend) + +EXTRA_DIST = $(backend_in_files) + +CLEANFILES = $(backend_DATA) + +@EV_INTLTOOL_ATRIL_BACKEND_RULE@ + +-include $(top_srcdir)/git.mk -- cgit v1.2.1 From 0a4d3f34a8aee74019759ace24f84672a98122b4 Mon Sep 17 00:00:00 2001 From: rootavish Date: Sat, 24 May 2014 05:38:31 +0530 Subject: XML parsing for ePub using libxml some functions were written which will be used to get keywords,attributes from files such as the ePub container.tried to keep the code generalised so as to facilitate reusability of code. --- backend/epub/Makefile.am | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'backend/epub/Makefile.am') diff --git a/backend/epub/Makefile.am b/backend/epub/Makefile.am index 6ecbdb2a..4371cde8 100644 --- a/backend/epub/Makefile.am +++ b/backend/epub/Makefile.am @@ -1,4 +1,4 @@ -AM_CPPFLAGS = \ +AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ -DMATELOCALEDIR=\"$(datadir)/locale\" \ @@ -9,8 +9,9 @@ AM_CPPFLAGS = \ backend_LTLIBRARIES = libepubdocument.la -libepubdocument_la_SOURCES = - +libepubdocument_la_SOURCES = \ + epub-document.c \ + epub-document.h libepubdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libepubdocument_la_LIBADD = \ -- cgit v1.2.1 From 070a26ed403e9a0c330ee7901c5b85394317ef77 Mon Sep 17 00:00:00 2001 From: rootavish Date: Fri, 30 May 2014 00:11:14 +0530 Subject: Added functions to extract epub archive,fixed header In this commit i added functionality to extract an epub archive to a temporary location.Again i tried to keep the design modular. This will be changed as changes come along. I also fixed the header to the standard atril backend header. Performed some code cleaning, naming functions as in the atril style of coding. --- backend/epub/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'backend/epub/Makefile.am') diff --git a/backend/epub/Makefile.am b/backend/epub/Makefile.am index 4371cde8..252fea2a 100644 --- a/backend/epub/Makefile.am +++ b/backend/epub/Makefile.am @@ -10,8 +10,12 @@ AM_CPPFLAGS = \ backend_LTLIBRARIES = libepubdocument.la libepubdocument_la_SOURCES = \ - epub-document.c \ - epub-document.h + epub-document.c \ + epub-document.h \ + ioapi.c \ + ioapi.h \ + unzip.c \ + unzip.h libepubdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libepubdocument_la_LIBADD = \ -- cgit v1.2.1 From 415b008bff9de46176ed39daa2ffece45cdd2506 Mon Sep 17 00:00:00 2001 From: rootavish Date: Fri, 30 May 2014 21:57:13 +0530 Subject: Created a Makefile for minizip, modified epub Makefile I created a Makefile for the minizip backend, since i am only using part of that library and modified the epub backend to work with the library. Also modified the configure script to suit our purpose. The epub backend can now be compiled using the make command in the epub directory, although it cannot still be compiled as a part of atril. --- backend/epub/Makefile.am | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'backend/epub/Makefile.am') diff --git a/backend/epub/Makefile.am b/backend/epub/Makefile.am index 252fea2a..a40f5ff1 100644 --- a/backend/epub/Makefile.am +++ b/backend/epub/Makefile.am @@ -1,25 +1,25 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ + -I$(srcdir)/minizip \ -DMATELOCALEDIR=\"$(datadir)/locale\" \ -DATRIL_COMPILATION \ $(BACKEND_CFLAGS) \ $(WARN_CXXFLAGS) \ + $(WEBKIT_CFLAGS) \ $(DISABLE_DEPRECATED) backend_LTLIBRARIES = libepubdocument.la libepubdocument_la_SOURCES = \ epub-document.c \ - epub-document.h \ - ioapi.c \ - ioapi.h \ - unzip.c \ - unzip.h + epub-document.h libepubdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libepubdocument_la_LIBADD = \ $(top_builddir)/libdocument/libatrildocument.la \ + minizip/libminizip.la \ + $(WEBKIT_LIBS) \ $(BACKEND_LIBS) -- cgit v1.2.1 From d57fa16e9e8c9091ebf826af94a0c3ad1a593596 Mon Sep 17 00:00:00 2001 From: rootavish Date: Thu, 19 Jun 2014 14:19:48 +0530 Subject: Epub backend builds as a part of Atril compilation Fixed a tabbing error in backend/Makefile.am due to which the epub backend was not a target when building recursilvely, i am not commiting the changes to epub-document.c as currently it will break the build, hope to fix it and get webkit and mathjax done by the weekend. Also fixed an error in configure.ac wherin the appearance of AM_LIBTOOL_PROG before AC_CXX_PROG caused a "link:unsupported hardcode properties error" on Linux Mint. --- backend/epub/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/epub/Makefile.am') diff --git a/backend/epub/Makefile.am b/backend/epub/Makefile.am index a40f5ff1..31dd455e 100644 --- a/backend/epub/Makefile.am +++ b/backend/epub/Makefile.am @@ -1,3 +1,5 @@ +SUBDIRS = minizip + AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ -- cgit v1.2.1 From 89bf352b3d2725b11328e7641cef5c3cc2a8ea39 Mon Sep 17 00:00:00 2001 From: rootavish Date: Tue, 12 Aug 2014 20:55:35 +0530 Subject: Fixed Makefile to include webkit outside epub I noticed I had forgotten to move the webkit check outside the epub plugin, did so now, accordingly modified the module names. --- backend/epub/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/epub/Makefile.am') diff --git a/backend/epub/Makefile.am b/backend/epub/Makefile.am index 31dd455e..dc34ad2b 100644 --- a/backend/epub/Makefile.am +++ b/backend/epub/Makefile.am @@ -8,7 +8,7 @@ AM_CPPFLAGS = \ -DATRIL_COMPILATION \ $(BACKEND_CFLAGS) \ $(WARN_CXXFLAGS) \ - $(WEBKIT_CFLAGS) \ + $(EPUB_CFLAGS) \ $(DISABLE_DEPRECATED) backend_LTLIBRARIES = libepubdocument.la @@ -21,7 +21,7 @@ libepubdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libepubdocument_la_LIBADD = \ $(top_builddir)/libdocument/libatrildocument.la \ minizip/libminizip.la \ - $(WEBKIT_LIBS) \ + $(EPUB_LIBS) \ $(BACKEND_LIBS) -- cgit v1.2.1 From 17377df48abdf10b6a064d6afdc1a4c95441ae20 Mon Sep 17 00:00:00 2001 From: rootavish Date: Tue, 19 Aug 2014 00:16:41 +0530 Subject: Mathjax Support The Mathjax files will be installed to $(backenddir)/epub/MathJax This was as small as the install got. --- backend/epub/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/epub/Makefile.am') diff --git a/backend/epub/Makefile.am b/backend/epub/Makefile.am index dc34ad2b..169f16c7 100644 --- a/backend/epub/Makefile.am +++ b/backend/epub/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = minizip +SUBDIRS = minizip MathJax AM_CPPFLAGS = \ -I$(top_srcdir) \ -- cgit v1.2.1