Skip to content

Commit

Permalink
build: construct path to config.h manually
Browse files Browse the repository at this point in the history
meson reports:

  internal/meson.build:25: DEPRECATION: Project uses feature that was
  always broken, and is now deprecated since '1.3.0': str.format: Value
  other than strings, integers, bools, options, dictionaries and lists
  thereof.

Thus just hardcode the config file path by using current_build_dir. Note
this changes the path from a relative one to an absolute one.

Signed-off-by: Daniel Wagner <[email protected]>
  • Loading branch information
igaw committed Dec 19, 2023
1 parent 5224243 commit 2e76e27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ config_dep = declare_dependency(
include_directories : internal_incdir,
sources: config_h)

config_h_path = meson.current_build_dir() / 'config.h'

add_project_arguments(
[
'-include', '@0@'.format(config_h),
'-include', config_h_path,
],
language : 'c',
)

0 comments on commit 2e76e27

Please sign in to comment.