Only use pkg-config if grpc is installed

This commit is contained in:
murgatroid99 2015-07-06 16:44:35 -07:00
parent 36724b3004
commit 02e9f7335d

View File

@ -19,10 +19,10 @@
"conditions": [
['OS != "win"', {
'variables': {
'has_pkg_config': '<!(command -v pkg-config >/dev/null 2>&1 && echo true || echo false)'
'pkg_config_grpc': '<!(pkg-config --exists grpc >/dev/null 2>&1 && echo true || echo false)'
},
'conditions': [
['has_pkg_config == "true"', {
['pkg_config_grpc == "true"', {
'link_settings': {
'libraries': [
'<!@(pkg-config --libs-only-l --static grpc)'