summaryrefslogtreecommitdiff
path: root/backend/dvi
diff options
context:
space:
mode:
Diffstat (limited to 'backend/dvi')
-rw-r--r--backend/dvi/mdvi-lib/meson.build67
-rw-r--r--backend/dvi/meson.build41
2 files changed, 108 insertions, 0 deletions
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,
+)