summaryrefslogtreecommitdiff
path: root/backend/xps
diff options
context:
space:
mode:
Diffstat (limited to 'backend/xps')
-rw-r--r--backend/xps/Makefile.am4
-rw-r--r--backend/xps/meson.build31
-rw-r--r--backend/xps/xps-document.c2
3 files changed, 35 insertions, 2 deletions
diff --git a/backend/xps/Makefile.am b/backend/xps/Makefile.am
index b0be0664..b2b2e5c7 100644
--- a/backend/xps/Makefile.am
+++ b/backend/xps/Makefile.am
@@ -22,7 +22,11 @@ libxpsdocument_la_LIBADD = \
backend_in_files = xpsdocument.atril-backend.desktop.in
backend_DATA = $(backend_in_files:.atril-backend.desktop.in=.atril-backend)
$(backend_DATA): $(backend_in_files)
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) cp -f $< $@
+endif
EXTRA_DIST = $(backend_in_files)
diff --git a/backend/xps/meson.build b/backend/xps/meson.build
new file mode 100644
index 00000000..3dfc45e0
--- /dev/null
+++ b/backend/xps/meson.build
@@ -0,0 +1,31 @@
+xps_sources = [
+ 'xps-document.c',
+ 'xps-document.h',
+]
+
+xps_deps = [
+ cairo,
+ glib,
+ gtk,
+ xps,
+]
+
+shared_module(
+ 'xpsdocument',
+ xps_sources,
+ link_with: [libdocument],
+ link_args: ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'],
+ include_directories: include_dirs,
+ dependencies: xps_deps,
+ install: true,
+ install_dir: backendsdir,
+)
+
+i18n.merge_file(
+ input: 'xpsdocument.atril-backend.desktop.in',
+ output: 'xpsdocument.atril-backend',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: backendsdir,
+)
diff --git a/backend/xps/xps-document.c b/backend/xps/xps-document.c
index 8db7d56c..e7e9ef2b 100644
--- a/backend/xps/xps-document.c
+++ b/backend/xps/xps-document.c
@@ -176,7 +176,6 @@ xps_document_get_info (EvDocument *document)
EV_DOCUMENT_INFO_N_PAGES |
EV_DOCUMENT_INFO_PAPER_SIZE;
-
if (gxps_document_get_n_pages (xps->doc) > 0) {
ev_document_get_page_size (document, 0,
&(info->paper_width),
@@ -483,7 +482,6 @@ xps_document_document_links_iface_init (EvDocumentLinksInterface *iface)
iface->find_link_page = xps_document_links_find_link_page;
}
-
/* EvDocumentPrint */
static void
xps_document_print_print_page (EvDocumentPrint *document,