Skip to content

Commit

Permalink
meson: add support
Browse files Browse the repository at this point in the history
  • Loading branch information
7Ji committed Apr 16, 2024
1 parent e67a70b commit c1ada55
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
project('ampart', 'c',
version : run_command('bash', 'scripts/build-only-version.sh').stdout().strip())
incdir = include_directories('include')
zlibdep = dependency('zlib')

executable('ampart',
'src/cli.c', 'src/dtb.c', 'src/dts.c', 'src/ept.c', 'src/gzip.c', 'src/io.c', 'src/main.c', 'src/parg.c', 'src/size.c', 'src/stringblock.c', 'src/util.c', 'src/version.c',
dependencies : zlibdep,
include_directories: incdir,
c_args: '-DVERSION="@0@"'.format(meson.project_version()))

0 comments on commit c1ada55

Please sign in to comment.