Compile openCV within AOSP source for my C++ Android application

Hi everyone,
I am struggling to find out how can I use openCV in my C++ application that is compiled in my AOSP project. I have tried downloading the source and placed it in AOSP/external/openCV and compile it with Android.bp file but I am unable to successfully do so?
Is there any tutorial or guide to achieve this ?

Thanks.
Regards

I want to do the same. Can you achieve your goal now?

I am still struggling to get this done.

Have you ever thought about using libopencv_java4 in OpenV Android Sdk to achieve the same effect?