Skip to content

Commit

Permalink
build: share release version between autoconf and meson
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneric committed Apr 21, 2024
1 parent 5de7be3 commit bfebfa6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AM_CFLAGS = -std=gnu99 -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter \
-Wpointer-arith -Wredundant-decls -Wno-missing-field-initializers\
-D_GNU_SOURCE

EXTRA_DIST = libass.pc.in Changelog MAINTAINERS ltnasm.sh
EXTRA_DIST = libass.pc.in Changelog MAINTAINERS RELEASEVERSION ltnasm.sh

# Meson build setup
EXTRA_DIST += gen_defs.py meson_options.txt meson.build \
Expand Down
1 change: 1 addition & 0 deletions RELEASEVERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.17.1
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT(libass, 0.17.1)
AC_INIT(libass, m4_normalize(m4_include([RELEASEVERSION])))
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_MACRO_DIR([m4])
LT_INIT
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project(
'warning_level=2',
'default_library=static',
],
version: '0.17.1',
version: files('RELEASEVERSION'),
)

conf = configuration_data()
Expand Down

0 comments on commit bfebfa6

Please sign in to comment.