mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Only use pkg-config if grpc is installed
This commit is contained in:
parent
36724b3004
commit
02e9f7335d
@ -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)'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user