Search code examples
androidrenderscript

Can RenderScript code (i.e. standalone rs file) be independently compiled outside ADT setup?


I wish to compile my single rs file, into bytecode, independently outside ADT (Eclipse) setup. Is there a script available to do that?


Solution

  • here's what works for me on my mac. running from the sdk/build-tools/android-4.4/ directory:

    DYLD_LIBRARY_PATH=`pwd` ./llvm-rs-cc -I renderscript/include/ -I renderscript/clang-include/ -emit-bc -o <output dir> <RS input>