Skip to content

Commit

Permalink
Merge pull request grpc#3944 from murgatroid99/node_mac_build
Browse files Browse the repository at this point in the history
Make the Node library build and run on Mac
  • Loading branch information
jtattermusch committed Oct 23, 2015
2 parents df5ac28 + 22c448b commit 850ffbc
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
26 changes: 25 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
],
'include_dirs': [
'.',
'include'
'include',
'<(node_root_dir)/deps/openssl/openssl/include'
],
'conditions': [
['OS != "win"', {
Expand All @@ -73,6 +74,15 @@
]
]
}],
["target_arch=='ia32'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/piii" ]
}],
["target_arch=='x64'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/k8" ]
}],
["target_arch=='arm'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/arm" ]
}]
]
},
'targets': [
Expand Down Expand Up @@ -124,6 +134,13 @@
'src/core/support/time_win32.c',
'src/core/support/tls_pthread.c',
],
"conditions": [
['OS == "mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9'
}
}]
],
},
{
'target_name': 'grpc',
Expand Down Expand Up @@ -282,6 +299,13 @@
'src/core/census/operation.c',
'src/core/census/tracing.c',
],
"conditions": [
['OS == "mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9'
}
}]
],
},
{
'include_dirs': [
Expand Down
19 changes: 18 additions & 1 deletion templates/binding.gyp.template
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
],
'include_dirs': [
'.',
'include'
'include',
'<(node_root_dir)/deps/openssl/openssl/include'
],
'conditions': [
['OS != "win"', {
Expand All @@ -75,6 +76,15 @@
]
]
}],
["target_arch=='ia32'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/piii" ]
}],
["target_arch=='x64'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/k8" ]
}],
["target_arch=='arm'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/arm" ]
}]
]
},
'targets': [
Expand All @@ -94,6 +104,13 @@
'${source}',
% endfor
],
"conditions": [
['OS == "mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9'
}
}]
],
},
% endif
% endfor
Expand Down

0 comments on commit 850ffbc

Please sign in to comment.