How do I add sysroot/usr/include/android/ that is prebuilts/ndk/ to an
android.bp that is in external/Helloworld ?
I tried adding it in the android.bp of my external/Helloworld/Android.bp as
follows :
cc_library_static {
name: "hello",
include_dirs: [
"../../../prebuilts/ndk/android-ndk-r21b/sysroot/usr/include"
],
srcs: [ "foo.c"
],
host_ldlibs: [
"-L" + "../../../prebuilts/ndk/android-ndk-r21b/sysroot" +
"/usr/lib",
],
cflags: [
"foo"
],
static_libs: ["foo"],
vendor: true,
}
However i receive the error that :
error: external/dab/MTK/Android.bp:117:1: module "hello" variant
"android_vendor.34_arm64_armv8-a_cortex-a72_static": Path is outside
directory: ../../../prebuilts/ndk/android-ndk-r21b/sysroot/usr/include
--
--
You received this message because you are subscribed to the "Android Building"
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-building/6155fcdf-8fdf-4173-856e-16ebb0e57078n%40googlegroups.com.