Stephen Hines | 30d9fee | 2014-05-30 15:25:12 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copy binaries |
| 4 | for b in bin/*; do |
| 5 | file=`basename $b` |
| 6 | # Don't copy symlinks like clang++ |
| 7 | if test -h $b; then |
| 8 | echo Skipping $file |
| 9 | else |
| 10 | echo Copying $file |
| 11 | cp -a `find ${ANDROID_HOST_OUT}/bin -name $file` $b |
| 12 | strip $b |
| 13 | fi |
| 14 | done |
| 15 | |
| 16 | # Copy libraries |
| 17 | echo Copying libc++.dylib |
| 18 | cp -a ${ANDROID_HOST_OUT}/lib/libc++.dylib lib/ |
| 19 | |
| 20 | # Copy header files |
| 21 | rm -rf lib/clang/*/include/* |
| 22 | for i in `find ${ANDROID_BUILD_TOP}/external/clang/lib/Headers -mindepth 1 ! -name \*.mk -a ! -name Makefile -a ! -name CMakeLists.txt`; do |
| 23 | echo Copying `basename $i` |
| 24 | cp -a $i lib/clang/*/include/ |
| 25 | done |
| 26 | |
Stephen Hines | e64c3ec | 2014-08-26 14:01:45 -0700 | [diff] [blame] | 27 | # Copy over stdatomic.h from bionic |
| 28 | echo Copying stdatomic.h |
| 29 | cp -a ${ANDROID_BUILD_TOP}/bionic/libc/include/stdatomic.h lib/clang/*/include/ |
| 30 | |
Stephen Hines | 30d9fee | 2014-05-30 15:25:12 -0700 | [diff] [blame] | 31 | echo Copying arm_neon.h |
| 32 | cp -a `find ${ANDROID_PRODUCT_OUT} -name arm_neon.h` lib/clang/*/include |
| 33 | |