aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/grpc.gyp.template
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-09-21 16:39:37 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-09-21 16:39:37 -0700
commit38745ef38076acefe29218a48a7484efc79022e1 (patch)
tree806b9564e917af869fcbd38756b2621782a45f69 /templates/grpc.gyp.template
parentcf08dafa412b5f51e765a02a882119d214cff30a (diff)
Added check for OpenSSL version
Diffstat (limited to 'templates/grpc.gyp.template')
-rw-r--r--templates/grpc.gyp.template7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/grpc.gyp.template b/templates/grpc.gyp.template
index c7f72878e9..78f196e467 100644
--- a/templates/grpc.gyp.template
+++ b/templates/grpc.gyp.template
@@ -39,6 +39,7 @@
# Some of this file is built with the help of
# https://n8.io/converting-a-c-library-to-gyp/
{
+ # TODO: Finish windows support
'target_defaults': {
'default_configuration': 'Debug',
'configurations': {
@@ -64,14 +65,15 @@
'GenerateDebugInformation': 'true',
},
},
+ # Add fallback for Windows, and if pkg-config is not available
'defines': [
- # TODO: Properly check for ALPN support
- 'TSI_OPENSSL_ALPN_SUPPORT=0'
+ 'TSI_OPENSSL_ALPN_SUPPORT=<!(pkg-config --atleast-version=1.0.2 openssl >/dev/null 2>&1 && echo 1 || echo 0)'
],
'include_dirs': [
'.',
'include'
],
+ # TODO: Check for libraries with pkg-config
'libraries': [
'-lcrypto',
'-lssl',
@@ -82,6 +84,7 @@
},
'targets': [
% for lib in libs:
+ # TODO: Add C++ targets
% if lib.language == 'c':
{
'target_name': '${lib.name}',