1#!/bin/sh 2 3# Usually, manually running build_clcore.sh shouldn't be needed. build_clcore.mk should 4# kick in automatically during Android build process. 5 6# Generate rs_cl.bc 7# ================= 8 9scriptc_path=../../../../base/libs/rs/scriptc 10clang_header_path=../../../../../external/clang/lib/Headers 11 12clang -ccc-host-triple armv7-none-linux-gnueabi -I${scriptc_path} -I${clang_header_path} -c -std=c99 -O3 rs_cl.c -emit-llvm -o rs_cl.bc 13 14# Generate rs_core.bc 15# =================== 16 17clang -ccc-host-triple armv7-none-linux-gnueabi -I${scriptc_path} -I${clang_header_path} -c -std=c99 -O3 rs_core.c -emit-llvm -o rs_core.bc 18 19# Link everything together 20# ======================== 21 22llvm-link rs_cl.bc rs_core.bc -o libclcore.bc 23