summaryrefslogtreecommitdiff
path: root/meson.build
blob: db0abc7c596d833a22c8e7118616d38a6b34b4e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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,
)