Skip to content

Commit

Permalink
Merge branch 'stable' into branch 'main'
Browse files Browse the repository at this point in the history
  • Loading branch information
nedko committed Mar 29, 2024
2 parents ec51eed + 44b47cf commit 977de72
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
8 changes: 7 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
= Version 1.2 on 20XX-XX-XX =
= Version 1.2 on 2023-03-29 =

Changes since 1.1:

* Apply downstream patches from FreeBSD
* meson: Fix project license field (MIT->GPL-2.0-only)
* meson: Fix version.h when building from tarball
* meson: disable siginfo build
* meson: Fix after README->README.adoc rename in 1.1

= Version 1.1 on 2023-11-26 =

Expand Down
3 changes: 3 additions & 0 deletions daemon/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ daemon_sources = [
'../string_constants.c',
]

# define SIGINFO_ENABLED and build
# 'siginfo.c',

ladishd = executable('ladishd', daemon_sources,
dependencies : deps,
include_directories : inc,
Expand Down
30 changes: 21 additions & 9 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
project('ladish', 'c', 'cpp',
version : '0.3',
license : 'MIT')
version : '1.2',
license : 'GPL-2.0-only')

data_dir = get_option('prefix') / 'share' / 'ladish'
locale_dir = get_option('prefix') / 'share' / 'locale'
dbus_name_base = 'org.ladish'
dbus_base_path = '/org/ladish'

git_version = run_command(['git', 'rev-parse', '--short', 'HEAD']).stdout().strip()

configure_file(output : 'version.h',
configuration : {
'GIT_VERSION' : '"@0@"'.format(git_version)
}
)
fs = import('fs')
if fs.is_dir('.git')
# This block handles building from git source tree
# version.h is generated during build
git_version = run_command(['git', 'rev-parse', '--short', 'HEAD']).stdout().strip()

configure_file(output : 'version.h',
configuration : {
'GIT_VERSION' : '"@0@"'.format(git_version)
}
)
else
# Tarballs already have version.h,
# Just copy the file in this case
configure_file(output : 'version.h',
input : 'version.h',
copy: true
)
endif

configure_file(output : 'config.h',
configuration : {
Expand Down

0 comments on commit 977de72

Please sign in to comment.