Skip to content
Snippets Groups Projects
Commit 18f8acf6 authored by David G. Quintas's avatar David G. Quintas Committed by GitHub
Browse files

Merge pull request #10004 from dgquintas/1.1.x_to_master_again

1.1.x to master again
parents 2280306e 78fd7db2
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,11 @@ ...@@ -43,7 +43,11 @@
# out. It can be re-enabled for one build by setting the npm config # out. It can be re-enabled for one build by setting the npm config
# variable grpc_uv to true, and it can be re-enabled permanently by # variable grpc_uv to true, and it can be re-enabled permanently by
# setting it to true here. # setting it to true here.
'grpc_uv%': 'false' 'grpc_uv%': 'false',
# Some Node installations use the system installation of OpenSSL, and on
# some systems, the system OpenSSL still does not have ALPN support. This
# will let users recompile gRPC to work without ALPN.
'grpc_alpn%': 'true'
}, },
'target_defaults': { 'target_defaults': {
'include_dirs': [ 'include_dirs': [
...@@ -73,10 +77,16 @@ ...@@ -73,10 +77,16 @@
'OPENSSL_NO_ASM' 'OPENSSL_NO_ASM'
] ]
}, { }, {
# As of the beginning of 2017, we only support versions of Node with 'conditions': [
# embedded versions of OpenSSL that support ALPN ['grpc_alpn=="true"', {
'defines': [ 'defines': [
'TSI_OPENSSL_ALPN_SUPPORT=1' 'TSI_OPENSSL_ALPN_SUPPORT=1'
],
}, {
'defines': [
'TSI_OPENSSL_ALPN_SUPPORT=0'
],
}]
], ],
'include_dirs': [ 'include_dirs': [
'<(node_root_dir)/deps/openssl/openssl/include', '<(node_root_dir)/deps/openssl/openssl/include',
......
...@@ -9,12 +9,7 @@ ...@@ -9,12 +9,7 @@
"Google.Protobuf": "3.2.0" "Google.Protobuf": "3.2.0"
}, },
"frameworks": { "frameworks": {
"net45": { "net45": {},
"frameworkAssemblies": {
"System.Runtime": "",
"System.IO": ""
}
},
"netcoreapp1.0": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
......
...@@ -25,12 +25,7 @@ ...@@ -25,12 +25,7 @@
"Google.Protobuf": "3.2.0" "Google.Protobuf": "3.2.0"
}, },
"frameworks": { "frameworks": {
"net45": { "net45": {},
"frameworkAssemblies": {
"System.Runtime": "",
"System.IO": ""
}
},
"netstandard1.5": { "netstandard1.5": {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.6.0" "NETStandard.Library": "1.6.0"
......
...@@ -62,10 +62,7 @@ ...@@ -62,10 +62,7 @@
}, },
"frameworks": { "frameworks": {
"net45": { "net45": {
"frameworkAssemblies": { "frameworkAssemblies": {}
"System.Runtime": "",
"System.IO": ""
}
}, },
"netcoreapp1.0": { "netcoreapp1.0": {
"imports": [ "imports": [
......
...@@ -25,12 +25,7 @@ ...@@ -25,12 +25,7 @@
"Google.Protobuf": "3.2.0" "Google.Protobuf": "3.2.0"
}, },
"frameworks": { "frameworks": {
"net45": { "net45": {},
"frameworkAssemblies": {
"System.Runtime": "",
"System.IO": ""
}
},
"netstandard1.5": { "netstandard1.5": {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.6.0" "NETStandard.Library": "1.6.0"
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
require 'etc'
require 'mkmf' require 'mkmf'
LIBDIR = RbConfig::CONFIG['libdir'] LIBDIR = RbConfig::CONFIG['libdir']
...@@ -80,7 +81,9 @@ ENV['BUILDDIR'] = output_dir ...@@ -80,7 +81,9 @@ ENV['BUILDDIR'] = output_dir
unless windows unless windows
puts 'Building internal gRPC into ' + grpc_lib_dir puts 'Building internal gRPC into ' + grpc_lib_dir
system("make -j -C #{grpc_root} #{grpc_lib_dir}/libgrpc.a CONFIG=#{grpc_config}") nproc = 4
nproc = Etc.nprocessors * 2 if Etc.respond_to? :nprocessors
system("make -j#{nproc} -C #{grpc_root} #{grpc_lib_dir}/libgrpc.a CONFIG=#{grpc_config}")
exit 1 unless $? == 0 exit 1 unless $? == 0
end end
......
...@@ -45,7 +45,11 @@ ...@@ -45,7 +45,11 @@
# out. It can be re-enabled for one build by setting the npm config # out. It can be re-enabled for one build by setting the npm config
# variable grpc_uv to true, and it can be re-enabled permanently by # variable grpc_uv to true, and it can be re-enabled permanently by
# setting it to true here. # setting it to true here.
'grpc_uv%': 'false' 'grpc_uv%': 'false',
# Some Node installations use the system installation of OpenSSL, and on
# some systems, the system OpenSSL still does not have ALPN support. This
# will let users recompile gRPC to work without ALPN.
'grpc_alpn%': 'true'
}, },
'target_defaults': { 'target_defaults': {
'include_dirs': [ 'include_dirs': [
...@@ -75,10 +79,16 @@ ...@@ -75,10 +79,16 @@
'OPENSSL_NO_ASM' 'OPENSSL_NO_ASM'
] ]
}, { }, {
# As of the beginning of 2017, we only support versions of Node with 'conditions': [
# embedded versions of OpenSSL that support ALPN ['grpc_alpn=="true"', {
'defines': [ 'defines': [
'TSI_OPENSSL_ALPN_SUPPORT=1' 'TSI_OPENSSL_ALPN_SUPPORT=1'
],
}, {
'defines': [
'TSI_OPENSSL_ALPN_SUPPORT=0'
],
}]
], ],
'include_dirs': [ 'include_dirs': [
'<(node_root_dir)/deps/openssl/openssl/include', '<(node_root_dir)/deps/openssl/openssl/include',
......
...@@ -9,12 +9,7 @@ ...@@ -9,12 +9,7 @@
"Google.Protobuf": "3.2.0" "Google.Protobuf": "3.2.0"
}, },
"frameworks": { "frameworks": {
"net45": { "net45": {},
"frameworkAssemblies": {
"System.Runtime": "",
"System.IO": ""
}
},
"netcoreapp1.0": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
......
...@@ -27,12 +27,7 @@ ...@@ -27,12 +27,7 @@
"Google.Protobuf": "3.2.0" "Google.Protobuf": "3.2.0"
}, },
"frameworks": { "frameworks": {
"net45": { "net45": {},
"frameworkAssemblies": {
"System.Runtime": "",
"System.IO": ""
}
},
"netstandard1.5": { "netstandard1.5": {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.6.0" "NETStandard.Library": "1.6.0"
......
...@@ -17,10 +17,7 @@ ...@@ -17,10 +17,7 @@
}, },
"frameworks": { "frameworks": {
"net45": { "net45": {
"frameworkAssemblies": { "frameworkAssemblies": {}
"System.Runtime": "",
"System.IO": ""
}
}, },
"netcoreapp1.0": { "netcoreapp1.0": {
"imports": [ "imports": [
......
...@@ -27,12 +27,7 @@ ...@@ -27,12 +27,7 @@
"Google.Protobuf": "3.2.0" "Google.Protobuf": "3.2.0"
}, },
"frameworks": { "frameworks": {
"net45": { "net45": {},
"frameworkAssemblies": {
"System.Runtime": "",
"System.IO": ""
}
},
"netstandard1.5": { "netstandard1.5": {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.6.0" "NETStandard.Library": "1.6.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment