Hi all,
As pointed out by Chih-Wei, Android's LOCAL_COPY_HEADERS{,_TO} has been depreciated for quite some time.
Although it was a convenient way of getting things done (no more hard-coding the location of drm) it seems that there is another more appropriate (and cleaner) solution. Namely: Annotate the includes as "exported" and as the user selects the library for linking, the build will automatically add the includes.
Big thanks to Chih-Wei for the patience and persistence explaining the whole shebang. This series is mostly based on his patch in the Android-x86 tree, with some extra bits from your truly :-)
Chih-Wei,
I've tested this a few times already, although having someone with experience in the whole thing will be appreciated.
Cheers, Emil