Skip to content

Commit

Permalink
Add helper variable
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Gilbert <[email protected]>
  • Loading branch information
bgilbert committed Nov 8, 2023
1 parent dcb1619 commit 4494ffc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meson/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ project(
],
)

system = host_machine.system()

add_global_arguments(
'-I' + meson.current_source_dir() / 'include',
language: ['c', 'cpp']
)

if host_machine.system() == 'darwin'
if system == 'darwin'
cc = meson.get_compiler('c')
# [dependency name, library name, version] or
# [dependency name, library name, header with version, version define]
Expand Down Expand Up @@ -65,7 +67,7 @@ else
subproject('sqlite3')
endif

if host_machine.system() != 'linux'
if system != 'linux'
subproject('proxy-libintl')
endif

Expand Down

0 comments on commit 4494ffc

Please sign in to comment.