summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2026-04-12 20:57:06 +0200
committerLizzy Fleckenstein <lizzy@vlhl.dev>2026-04-12 20:59:39 +0200
commite5af28536bfb0f4c9131df56d2009ba5196f5e3a (patch)
tree3ab928f961a1ccd8440b070d7b57f79146457e8c /meson.build
downloadanimtool-e5af28536bfb0f4c9131df56d2009ba5196f5e3a.tar.xz
init
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build31
1 files changed, 31 insertions, 0 deletions
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..db0abc7
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,31 @@
+project('animtool', 'c', default_options: ['warning_level=2', 'c_std=c23'])
+
+cc = meson.get_compiler('c')
+
+opengl = dependency('opengl')
+egl = dependency('egl')
+m = cc.find_library('m', required: false)
+
+sources = [
+ 'src/main.c',
+ 'src/source.c',
+ 'src/lex.c',
+ 'src/parse.c',
+ 'src/scene.c',
+ 'src/expr.c',
+ 'src/resource.c',
+ 'src/render.c',
+ 'src/print.c',
+ 'src/fmt/nut.c',
+ 'src/draw/opengl.c',
+ 'src/util/str.c',
+ 'src/util/file.c',
+]
+
+exe = executable(
+ 'animtool',
+ [sources],
+ include_directories: 'src',
+ dependencies: [opengl, egl, m],
+ install: true,
+)