summaryrefslogtreecommitdiff
path: root/backend/tiff
diff options
context:
space:
mode:
Diffstat (limited to 'backend/tiff')
-rw-r--r--backend/tiff/Makefile.am4
-rw-r--r--backend/tiff/meson.build34
-rw-r--r--backend/tiff/tiff-document.c1
-rw-r--r--backend/tiff/tiff2ps.c2
4 files changed, 38 insertions, 3 deletions
diff --git a/backend/tiff/Makefile.am b/backend/tiff/Makefile.am
index 1be66eca..5ceaa69c 100644
--- a/backend/tiff/Makefile.am
+++ b/backend/tiff/Makefile.am
@@ -24,7 +24,11 @@ libtiffdocument_la_LIBADD = \
backend_in_files = tiffdocument.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/tiff/meson.build b/backend/tiff/meson.build
new file mode 100644
index 00000000..04f8f462
--- /dev/null
+++ b/backend/tiff/meson.build
@@ -0,0 +1,34 @@
+tiff_sources = [
+ 'tiff-document.c',
+ 'tiff-document.h',
+ 'tiff2ps.c',
+ 'tiff2ps.h',
+]
+
+tiff_deps = [
+ cairo,
+ glib,
+ gtk,
+ math,
+ tiff,
+]
+
+shared_module(
+ 'tiffdocument',
+ tiff_sources,
+ link_with: [libdocument],
+ link_args: ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'],
+ include_directories: include_dirs,
+ dependencies: tiff_deps,
+ install: true,
+ install_dir: backendsdir,
+)
+
+i18n.merge_file(
+ input: 'tiffdocument.atril-backend.desktop.in',
+ output: 'tiffdocument.atril-backend',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: backendsdir,
+)
diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c
index 2129de20..c47be57f 100644
--- a/backend/tiff/tiff-document.c
+++ b/backend/tiff/tiff-document.c
@@ -361,7 +361,6 @@ tiff_document_render_pixbuf (EvDocument *document,
if (width <= 0 || height <= 0)
return NULL;
-
if (width >= INT_MAX / 4)
/* overflow */
return NULL;
diff --git a/backend/tiff/tiff2ps.c b/backend/tiff/tiff2ps.c
index bcbbf885..41f2fb9a 100644
--- a/backend/tiff/tiff2ps.c
+++ b/backend/tiff/tiff2ps.c
@@ -449,7 +449,6 @@ PlaceImage(TIFF2PSContext *ctx, double pagewidth, double pageheight,
return splitpage;
}
-
void
tiff2ps_process_page(TIFF2PSContext* ctx, TIFF* tif, double pw, double ph,
double lm, double bm, gboolean cnt)
@@ -592,7 +591,6 @@ tiff2ps_process_page(TIFF2PSContext* ctx, TIFF* tif, double pw, double ph,
}
}
-
static char DuplexPreamble[] = "\
%%BeginFeature: *Duplex True\n\
systemdict begin\n\