6 # drop bundled libs, from gentoo
9 echo "Removing bundled library $1 ..."
11 out=$(find $1 -mindepth 1 ! -iname '*.gyp' -print -delete)
12 if [ -z "$out" ]; then
13 echo >&2 "No files matched when removing bundled library $1"
18 rm -v third_party/expat/files/lib/expat.h
19 remove_bundled_lib "third_party/bzip2"
20 remove_bundled_lib "third_party/icu"
21 remove_bundled_lib "third_party/libevent"
22 remove_bundled_lib "third_party/libjpeg"
23 remove_bundled_lib "third_party/libpng"
24 # third_party/libvpx/libvpx.h should be kept
25 #remove_bundled_lib "third_party/libvpx"
26 remove_bundled_lib "third_party/libxml"
27 remove_bundled_lib "third_party/libxslt"
28 remove_bundled_lib "third_party/zlib"
29 # third_party/yasm/source/patched-yasm/modules/arch/x86/gen_x86_insn.py', needed by `out/Release/obj/gen/third_party/yasm/x86insns.c'. Stop.
30 #remove_bundled_lib "third_party/yasm"
34 find v8 -type f \! -iname '*.gyp*' -delete
36 # The implementation files include v8 headers with full path,
37 # like #include "v8/include/v8.h". Make sure the system headers
40 ln -s /usr/include v8/include
43 if [ "$nacl" = 1 ]; then
44 # NOTE: here is always x86_64
45 rm -rf native_client/toolchain/linux_x86_newlib
46 ln -s /usr/x86_64-nacl-newlib native_client/toolchain/linux_x86_newlib