diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/comics/meson.build | 49 | ||||
-rw-r--r-- | backend/djvu/meson.build | 36 | ||||
-rw-r--r-- | backend/dvi/mdvi-lib/meson.build | 67 | ||||
-rw-r--r-- | backend/dvi/meson.build | 41 | ||||
-rw-r--r-- | backend/epub/meson.build | 35 | ||||
-rw-r--r-- | backend/epub/minizip/meson.build | 21 | ||||
-rw-r--r-- | backend/meson.build | 5 | ||||
-rw-r--r-- | backend/pdf/meson.build | 30 | ||||
-rw-r--r-- | backend/pixbuf/meson.build | 30 | ||||
-rw-r--r-- | backend/ps/meson.build | 31 | ||||
-rw-r--r-- | backend/tiff/meson.build | 34 | ||||
-rw-r--r-- | backend/xps/meson.build | 31 |
12 files changed, 410 insertions, 0 deletions
diff --git a/backend/comics/meson.build b/backend/comics/meson.build new file mode 100644 index 00000000..abc2fdc3 --- /dev/null +++ b/backend/comics/meson.build @@ -0,0 +1,49 @@ +backend_desktop_conf = configuration_data() +backend_desktop_conf.set('COMICS_MIME_TYPES', comic_mimetypes) + +backend_desktop = configure_file( + input: 'comicsdocument.atril-backend.in', + output: 'comicsdocument.atril-backend', + configuration: backend_desktop_conf, + install: true, + install_dir: backendsdir, +) + +comics_sources = files( + 'comics-document.c', + 'ev-archive.c', +) + +comics_deps = [ + cairo, + glib, + gtk, + libarchive_dep, +] + +shared_module( + 'comicsdocument', + comics_sources, + link_with: [libdocument], + link_args: ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'], + include_directories: include_dirs, + dependencies: comics_deps, + install: true, + install_dir: backendsdir +) + + + +test_name = 'test-ev-archive' + +test_sources = files( + 'ev-archive.c', + 'test-ev-archive.c', +) + +executable( + test_name, + test_sources, + include_directories: include_dirs, + dependencies: comics_deps, +) diff --git a/backend/djvu/meson.build b/backend/djvu/meson.build new file mode 100644 index 00000000..011503e3 --- /dev/null +++ b/backend/djvu/meson.build @@ -0,0 +1,36 @@ +djvu_sources = [ + 'djvu-document.c', + 'djvu-document.h', + 'djvu-document-private.h', + 'djvu-links.c', + 'djvu-links.h', + 'djvu-text-page.c', + 'djvu-text-page.h', +] + +djvu_deps = [ + cairo, + djvu, + glib, + gtk +] + +shared_module( + 'djvudocument', + djvu_sources, + link_with: [libdocument], + link_args: ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'], + include_directories: include_dirs, + dependencies: djvu_deps, + install: true, + install_dir: backendsdir, +) + +i18n.merge_file( + input: 'djvudocument.atril-backend.desktop.in', + output: 'djvudocument.atril-backend', + type: 'desktop', + po_dir: po_dir, + install: true, + install_dir: backendsdir, +) diff --git a/backend/dvi/mdvi-lib/meson.build b/backend/dvi/mdvi-lib/meson.build new file mode 100644 index 00000000..6b9848ba --- /dev/null +++ b/backend/dvi/mdvi-lib/meson.build @@ -0,0 +1,67 @@ +mdvi_sources = [ + 'afmparse.c', + 'afmparse.h', + 'bitmap.c', + 'bitmap.h', + 'color.c', + 'color.h', + 'common.c', + 'common.h', + 'defaults.h', + 'dviopcodes.h', + 'dviread.c', + 'files.c', + 'font.c', + 'fontmap.c', + 'fontmap.h', + 'fontsrch.c', + 'gf.c', + 'hash.c', + 'hash.h', + 'list.c', + 'mdvi.h', + 'pagesel.c', + 'paper.c', + 'paper.h', + 'pk.c', + 'private.h', + 'setup.c', + 'special.c', + 'sp-epsf.c', + 'sysdeps.h', + 't1.c', + 'tfm.c', + 'tfmfile.c', + 'tt.c', + 'util.c', + 'vf.c', +] + +mdvi_c_args = [ + '-DSIZEOF_INT=__SIZEOF_INT__', + '-DSIZEOF_LONG=__SIZEOF_LONG__', + '-DSIZEOF_SHORT=__SIZEOF_SHORT__', + '-DSIZEOF_VOID_P=__SIZEOF_POINTER__', +] + +mdvi_deps = [ + kpathsea, +] + +if t1_enabled + mdvi_c_args += '-DWITH_TYPE1_FONTS' + mdvi_deps += t1lib +endif + +libmdvi = static_library( + 'mdvi', + mdvi_sources, + c_args: mdvi_c_args, + include_directories: include_dirs, + dependencies: mdvi_deps, +) + +libmdvi_dep = declare_dependency( + include_directories: include_directories('.'), + link_with: libmdvi, +) diff --git a/backend/dvi/meson.build b/backend/dvi/meson.build new file mode 100644 index 00000000..8b4d0ed0 --- /dev/null +++ b/backend/dvi/meson.build @@ -0,0 +1,41 @@ +subdir('mdvi-lib') + +dvi_sources = [ + 'dvi-document.c', + 'dvi-document.h', + 'cairo-device.c', + 'cairo-device.h', + 'fonts.c', + 'fonts.h', +] + +dvi_deps = [ + cairo, + glib, + gtk, + libmdvi_dep, + math, + spectre, + mdvi_deps, +] + +shared_module( + 'dvidocument', + dvi_sources, + link_with: [libdocument], + link_whole: libmdvi, + c_args: mdvi_c_args, + include_directories: include_dirs, + dependencies: dvi_deps, + install: true, + install_dir: backendsdir, +) + +i18n.merge_file( + input: 'dvidocument.atril-backend.desktop.in', + output: 'dvidocument.atril-backend', + type: 'desktop', + po_dir: po_dir, + install: true, + install_dir: backendsdir, +) diff --git a/backend/epub/meson.build b/backend/epub/meson.build new file mode 100644 index 00000000..7249286b --- /dev/null +++ b/backend/epub/meson.build @@ -0,0 +1,35 @@ +subdir('minizip') + +epub_sources = [ + 'epub-document.c', + 'epub-document.h', +] + +epub_deps = [ + cairo, + glib, + gtk, + xml, + minizip_dep, +] + +shared_module( + 'epubdocument', + epub_sources, + link_with: [libdocument], + link_whole: minizip, + link_args: ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'], + include_directories: include_dirs, + dependencies: epub_deps, + install: true, + install_dir: backendsdir, +) + +i18n.merge_file( + input: 'epubdocument.atril-backend.desktop.in', + output: 'epubdocument.atril-backend', + type: 'desktop', + po_dir: po_dir, + install: true, + install_dir: backendsdir, +) diff --git a/backend/epub/minizip/meson.build b/backend/epub/minizip/meson.build new file mode 100644 index 00000000..838bac4e --- /dev/null +++ b/backend/epub/minizip/meson.build @@ -0,0 +1,21 @@ +minizip_sources = [ + 'unzip.c', + 'ioapi.c', + 'unzip.h', + 'ioapi.h', +] + +minizip_deps = [ + zlib +] + +minizip = static_library( + 'minizip', + minizip_sources, + dependencies: minizip_deps, +) + +minizip_dep = declare_dependency( + include_directories: include_directories('.'), + link_with: minizip, +) diff --git a/backend/meson.build b/backend/meson.build new file mode 100644 index 00000000..ca9108db --- /dev/null +++ b/backend/meson.build @@ -0,0 +1,5 @@ +backendsdir = join_paths(prefix, libdir, meson.project_name(), binary_major_version, 'backends') + +foreach sub : backend_subdirs + subdir(sub) +endforeach diff --git a/backend/pdf/meson.build b/backend/pdf/meson.build new file mode 100644 index 00000000..2a81d71a --- /dev/null +++ b/backend/pdf/meson.build @@ -0,0 +1,30 @@ +pdf_sources = [ + 'ev-poppler.cc', + 'ev-poppler.h' +] + +pdf_deps = [ + gtk, + xml, + poppler, +] + +shared_module( + 'pdfdocument', + pdf_sources, + link_with: [libdocument], + link_args: ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'], + include_directories: include_dirs, + dependencies: pdf_deps, + install: true, + install_dir: backendsdir, +) + +i18n.merge_file( + input: 'pdfdocument.atril-backend.desktop.in', + output: 'pdfdocument.atril-backend', + type: 'desktop', + po_dir: po_dir, + install: true, + install_dir: backendsdir, +) diff --git a/backend/pixbuf/meson.build b/backend/pixbuf/meson.build new file mode 100644 index 00000000..68afb36f --- /dev/null +++ b/backend/pixbuf/meson.build @@ -0,0 +1,30 @@ +pixbuf_sources = [ + 'pixbuf-document.c', + 'pixbuf-document.h' +] + +pixbuf_deps = [ + cairo, + glib, + gtk, +] + +shared_module( + 'pixbufdocument', + pixbuf_sources, + link_with: [libdocument], + link_args: ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'], + include_directories: include_dirs, + dependencies: pixbuf_deps, + install: true, + install_dir: backendsdir, +) + +i18n.merge_file( + input: 'pixbuf.atril-backend.desktop.in', + output: 'pixbuf.atril-backend', + type: 'desktop', + po_dir: po_dir, + install: true, + install_dir: backendsdir, +) diff --git a/backend/ps/meson.build b/backend/ps/meson.build new file mode 100644 index 00000000..ba8ea301 --- /dev/null +++ b/backend/ps/meson.build @@ -0,0 +1,31 @@ +ps_sources = [ + 'ev-spectre.c', + 'ev-spectre.h' +] + +ps_deps = [ + cairo, + glib, + gtk, + spectre, +] + +shared_module( + 'psdocument', + ps_sources, + link_with: [libdocument], + link_args: ['-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now'], + include_directories: include_dirs, + dependencies: ps_deps, + install: true, + install_dir: backendsdir, +) + +i18n.merge_file( + input: 'psdocument.atril-backend.desktop.in', + output: 'psdocument.atril-backend', + type: 'desktop', + po_dir: po_dir, + install: true, + install_dir: backendsdir, +) 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/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, +) |