Skip to content

Commit

Permalink
meson: add mpack as a core dependency
Browse files Browse the repository at this point in the history
Needed for upcoming fvwm <-> module comm changes.
  • Loading branch information
ThomasAdam committed Oct 31, 2024
1 parent c530f16 commit 12b98f0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Empty file added libs/mcomms.c
Empty file.
6 changes: 6 additions & 0 deletions libs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ string_sources = files(
'strlcpy.c',
)

if (get_option('mcomms'))
libfvwm3_sources += files(
'mcomms.c'
)
endif

# We don't build the string sources on macOS
# We probably could check for target_system, but nobody is cross-compiling _to_ macOS
if not (host_machine.system() == 'darwin')
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ all_found_deps = []

# Required dependencies, we can easily iterate over these.
summary_depvals = {}
all_req_deps = ['fontconfig', 'ice', 'libevent', 'x11', 'xft', 'xrandr', 'xt']
all_req_deps = ['fontconfig', 'ice', 'libevent', 'mpack', 'x11', 'xft', 'xrandr', 'xt']
foreach rd : all_req_deps
this_dep = dependency(rd, required: true)
summary_depvals += {rd: this_dep}
Expand Down
6 changes: 6 additions & 0 deletions meson.options
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ option(
value: false,
description: 'Enable generation of man pages',
)
option(
'mcomms',
type: 'boolean',
value: false,
description: 'Enable new module comms',
)
option('nls', type: 'feature', value: 'auto', description: 'Enable NLS')
option('png', type: 'feature', value: 'auto', description: 'Enable png support')
option(
Expand Down

0 comments on commit 12b98f0

Please sign in to comment.