1

I have the following project structure

/-src/mypackage/myscript.rs
|              |MyClass.java
/Android.mk

How to write proper Android.mk file to build this project (or just to generate renderscript ScriptC* files)?

wilddev
  • 1,904
  • 2
  • 27
  • 45

2 Answers2

2

you should be able to add .rs files to your LOCAL_SRC_FILES.

Tim Murray
  • 2,205
  • 13
  • 13
2

If you are using the AOSP-style Android.mk platform build, you can do something like:

LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-files-under, src)
Stephen Hines
  • 2,612
  • 1
  • 13
  • 12