Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support OS X

* Fixes 32/64-bit mismatch
* Adds necessary libraries/frameworks
* `npm test` now works
  • Loading branch information...
commit 7f14543e28489a6e2f3791adfb461c141234f4a6 1 parent 89999ba
@markandrus markandrus authored
Showing with 12 additions and 0 deletions.
  1. +4 −0 bin/build.js
  2. +8 −0 binding.gyp
View
4 bin/build.js
@@ -22,6 +22,10 @@
process.env.PATH = TOOLS_DEPOT_TOOLS_DIR + ':' + process.env.PATH;
process.env.GYP_GENERATORS = NINJA;
+ if (process.platform === 'darwin')
+ process.env.GYP_DEFINES = process.env.GYP_DEFINES ||
+ ('host_arch=' + process.arch + ' target_arch=' + process.arch);
+
var argz = process.argv.slice(2);
argz.include = function(obj) {
return (this.indexOf(obj) !== -1);
View
8 binding.gyp
@@ -191,6 +191,14 @@
'../<(libwebrtc_out)/../libvpx_intrinsics_mmx.a',
'../<(libwebrtc_out)/../libvpx_intrinsics_sse2.a',
'../<(libwebrtc_out)/../libvpx_intrinsics_ssse3.a',
+ '../<(libwebrtc_out)/../libusrsctplib.a',
+ '../<(libwebrtc_out)/../libcommon_audio_sse2.a',
+ '../<(libwebrtc_out)/../libcrssl.a',
+ '../<(libwebrtc_out)/../libnss_static.a',
+ '../<(libwebrtc_out)/../libcrnspr.a',
+ '../<(libwebrtc_out)/../libcrnss.a',
+ '-framework AppKit',
+ '-framework QTKit',
'-lssl'
]
}],
Please sign in to comment.
Something went wrong with that request. Please try again.