aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/grpc.gyp.template
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-09-21 14:39:09 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-09-21 14:39:09 -0700
commitca9db40656bc4a0b4ee27d57fa04a6b114fbc84a (patch)
tree92b811a4dbbf5efc88e8ab051b092493b0a8df4d /templates/grpc.gyp.template
parent2d6d3300d9b1f77e59d43bd88f489ff865ccdd67 (diff)
Removed C++ build from gyp file, fixed some minor issues
Diffstat (limited to 'templates/grpc.gyp.template')
-rw-r--r--templates/grpc.gyp.template18
1 files changed, 13 insertions, 5 deletions
diff --git a/templates/grpc.gyp.template b/templates/grpc.gyp.template
index 0ce0344c83..c7f72878e9 100644
--- a/templates/grpc.gyp.template
+++ b/templates/grpc.gyp.template
@@ -1,7 +1,7 @@
%YAML 1.2
--- |
# GRPC gyp file
- # This currently builds C and C++ code.
+ # This currently builds C code.
# This file has been automatically generated from a template file.
# Please look at the templates directory instead.
# This file can be regenerated from the template by running
@@ -64,7 +64,12 @@
'GenerateDebugInformation': 'true',
},
},
+ 'defines': [
+ # TODO: Properly check for ALPN support
+ 'TSI_OPENSSL_ALPN_SUPPORT=0'
+ ],
'include_dirs': [
+ '.',
'include'
],
'libraries': [
@@ -72,12 +77,12 @@
'-lssl',
'-ldl',
'-lpthread',
- '-lz',
- '-lprotobuf'
+ '-lz'
]
},
'targets': [
% for lib in libs:
+ % if lib.language == 'c':
{
'target_name': '${lib.name}',
'product_prefix': 'lib',
@@ -89,12 +94,14 @@
],
'sources': [
% for source in lib.src:
- '${source}'
+ '${source}',
% endfor
- ]
+ ],
},
+ % endif
% endfor
% for tgt in targets:
+ % if tgt.language == 'c':
{
'target_name': '${tgt.name}',
'type': 'executable',
@@ -109,6 +116,7 @@
% endfor
]
},
+ % endif
% endfor
]
}