summaryrefslogtreecommitdiff
path: root/meson.build
blob: 277e822689aaa9b4875a89449df5e6bff5da9aa8 (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
32
33
project('animtool', 'c', default_options: ['warning_level=2', 'c_std=c23'])

add_project_arguments(['-D_XOPEN_SOURCE=800', '-D_POSIX_C_SOURCE=202405L'], language: 'c')

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,
)