Is there any way to export the renderscript to *.jar without manual copying the *.bc?

StackOverflow https://stackoverflow.com/questions/23378974

  •  12-07-2023
  •  | 
  •  

문제

I implement a function using renderscript and I would like to export it as a part of my library. I try to export it on Eclipse, but it needs the id of *.bc which is generated in R.java. Then I copy the *.bc to the target resource folder and it works. Is there any way to export the renderscript to *.jar without manual copying the *.bc?

도움이 되었습니까?

해결책

The Eclipse build rules should take care of embedding the .bc file in your resources already. Perhaps you mean something different by "export", but you can only use the RS bitcode and kernels that you write using our Java or NDK RenderScript APIs. The function wouldn't be available to link against traditional JNI code or anything like that.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top