Skip to content

Instantly share code, notes, and snippets.

@roxlu
Created May 14, 2013 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roxlu/1cdb5098f7b062ae5ce8 to your computer and use it in GitHub Desktop.
Save roxlu/1cdb5098f7b062ae5ce8 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Compiling libuv
# -----------------
# - i686-apple-darwin11-llvm-g++-4.2
# - i686-apple-darwin11-llvm-gcc-4.2:
#
d=${PWD}
sd=${d}/../../sources/
cd ${sd}
cd libuv
bd=${d}/../build_shared/
git clone https://git.chromium.org/external/gyp.git build/gyp
python gyp_uv -Dlibrary=shared_library -Dcomponent=shared_library -Dtarget_arch=x64
make clean
make -C out BUILDTYPE=Release
cp -r include ${bd}
cp out/Release/libuv.dylib ${bd}/lib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment