From ffd2ec2f533ea4e0abb9ef2983c9e0bd2e62477f Mon Sep 17 00:00:00 2001 From: clitic Date: Mon, 28 Nov 2022 12:08:54 +0530 Subject: [PATCH] added pc-path meson option --- meson.build | 8 ++++++++ meson_options.txt | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/meson.build b/meson.build index d02debf..35784d2 100644 --- a/meson.build +++ b/meson.build @@ -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' diff --git a/meson_options.txt b/meson_options.txt index f835903..a2cb9f8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,3 +1,9 @@ +option( + 'pc-path', + type: 'string', + value: 'auto', +) + option( 'system-include-path', type: 'string',