aboutsummaryrefslogtreecommitdiff
path: root/lpg/meson.build
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2025-01-08 10:54:40 +0100
committerPřemysl Eric Janouch <p@janouch.name>2025-01-11 09:57:59 +0100
commit7aa1e5dd3d80e2664eac7eb0a409829e9785a521 (patch)
treec986a85bce91de498c7470a87da209700dc081ff /lpg/meson.build
parent9319d14566e5d1bfec617c479b8543a9ee3ad4ea (diff)
downloadpdf-simple-sign-7aa1e5dd3d80e2664eac7eb0a409829e9785a521.tar.gz
pdf-simple-sign-7aa1e5dd3d80e2664eac7eb0a409829e9785a521.tar.xz
pdf-simple-sign-7aa1e5dd3d80e2664eac7eb0a409829e9785a521.zip
WIP: Add a Lua PDF generatorlpg-libqr
Because Lua compiled for C++ might be hard to find, provide a wrap. Only GitHub releases seem to contain onelua.c, which is a very handy file. WIP: Add documentation, actually get rid of the libqr copy.
Diffstat (limited to 'lpg/meson.build')
-rw-r--r--lpg/meson.build15
1 files changed, 15 insertions, 0 deletions
diff --git a/lpg/meson.build b/lpg/meson.build
new file mode 100644
index 0000000..b8d506c
--- /dev/null
+++ b/lpg/meson.build
@@ -0,0 +1,15 @@
+project('lpg', 'c', 'cpp', default_options : ['cpp_std=c++17'],
+ version : '1.1.1')
+
+conf = configuration_data()
+conf.set_quoted('PROJECT_NAME', meson.project_name())
+conf.set_quoted('PROJECT_VERSION', meson.project_version())
+configure_file(output : 'config.h', configuration : conf)
+
+luapp = dependency('lua++', allow_fallback : true)
+cairo = dependency('cairo')
+pangocairo = dependency('pangocairo')
+executable('lpg', 'lpg.cpp', 'libqr.c',
+ install : true,
+ dependencies : [luapp, cairo, pangocairo],
+ include_directories : include_directories('libqr'))