Commit faaa84ac by Stephen McGruer Committed by Jamie Madill

Hide libpci pkg-config request behind use_libpci==1

This allows platforms that don't have libpci to configure the code without error. BUG=560948 Change-Id: I155f35108d9be193afed5304b443a6afdf33b077 Reviewed-on: https://chromium-review.googlesource.com/314300Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarStephen Mcgruer <smcgruer@google.com> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 183d7e24
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
'variables': 'variables':
{ {
'component%': 'static_library', 'component%': 'static_library',
'use_libpci%': 1,
'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.1', 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.1',
# build/gyp_angle sets this to 1. # build/gyp_angle sets this to 1.
'angle_standalone%': '0', 'angle_standalone%': '0',
......
...@@ -1529,7 +1529,9 @@ ...@@ -1529,7 +1529,9 @@
'conditions': 'conditions':
[ [
['OS=="linux"', # NOTE(smcgruer): Guarding with use_libpci allows gyp to run successfully
# on systems without libpci, but the test targets will not compile or link.
['OS=="linux" and use_libpci==1',
{ {
'ldflags': 'ldflags':
[ [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment