diff options
Diffstat (limited to 'printing/BUILD.gn')
-rw-r--r-- | printing/BUILD.gn | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/printing/BUILD.gn b/printing/BUILD.gn index d8255be..45dfcc8 100644 --- a/printing/BUILD.gn +++ b/printing/BUILD.gn @@ -3,6 +3,7 @@ # found in the LICENSE file. import("//build/config/features.gni") +import("//build/config/sysroot.gni") import("//build/config/ui.gni") import("//testing/test.gni") if (is_mac) { @@ -128,7 +129,10 @@ component("printing") { if (is_linux) { cups_version = exec_script("cups_config_helper.py", - [ "--api-version" ], + [ + "--api-version", + sysroot, + ], "trim string") if (cups_version == "1.6" || cups_version == "1.7") { @@ -247,7 +251,12 @@ if (use_cups) { libs = [ "cups" ] lib_dirs = [ "$mac_sdk_path/usr/lib" ] } else { - libs = exec_script("cups_config_helper.py", [ "--libs-for-gn" ], "value") + libs = exec_script("cups_config_helper.py", + [ + "--libs-for-gn", + sysroot, + ], + "value") } } } |