How to modify LOCAL_SRC_FILES := ../../ in Android.bp

43 views
Skip to first unread message

oanh le

unread,
Oct 1, 2017, 2:51:42 PM10/1/17
to Android Building
Dear all,
Android.mk support back directory

LOCAL_SRC_FILES := ../../

How to make it in Android.bp

Thank you

Colin Cross

unread,
Oct 1, 2017, 9:07:35 PM10/1/17
to android-...@googlegroups.com
If the source files are logically part of the module, move your Android.bp file into the top directory that contains all the source files.  If you are using source files from another module, export them from that module using a filegroup module:

filegroup {
    name: "my_exported_sources",
    srcs: ["a.c", "b.c"],
}

And then in your module that was using ../.., use:
srcs: [
    "my_local_srcs.c",
    ":my_exported_sources",
]

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscribe@googlegroups.com
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 android-building+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages