Skip to content

Commit

Permalink
added pc-path meson option
Browse files Browse the repository at this point in the history
  • Loading branch information
clitic committed Nov 28, 2022
1 parent 6088706 commit ffd2ec2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ system = host_machine.system()

pkg_config_defines = []

pc_path = get_option('pc-path')

if pc_path == 'auto'
pkg_config_defines += '-DPKG_CONFIG_PC_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"'
elif pc_path != 'auto'
pkg_config_defines += '-DPKG_CONFIG_PC_PATH="@pc_path@"'
endif

system_include_path = get_option('system-include-path')

if system_include_path == 'auto' and system == 'windows'
Expand Down
6 changes: 6 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
option(
'pc-path',
type: 'string',
value: 'auto',
)

option(
'system-include-path',
type: 'string',
Expand Down

0 comments on commit ffd2ec2

Please sign in to comment.