[AChoreographer] Split source files out from libandroid.
This change is prework for allowing HWUI to depend on AChoreographer so
that the dependency on DisplayEventReceiver is decoupled. AChoreographer
needs to be split out from libandroid, as libandroid transitively
depends on libhwui causing a circular dependency otherwise.
Bug: 136262896
Test: builds
Change-Id: Id60f9801cd82314065d82462e2a4286a3cb91e98
diff --git a/libs/nativedisplay/Android.bp b/libs/nativedisplay/Android.bp
index 66ebdfd..45b935a 100644
--- a/libs/nativedisplay/Android.bp
+++ b/libs/nativedisplay/Android.bp
@@ -12,6 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+ndk_headers {
+ name: "libachoreographer_ndk_headers",
+ from: "include/android",
+ to: "android",
+ srcs: ["include/android/*.h"],
+ license: "NOTICE",
+}
+
cc_library_headers {
name: "libnativedisplay_headers",
export_include_dirs: ["include"],
@@ -33,10 +41,12 @@
],
srcs: [
+ "AChoreographer.cpp",
"ADisplay.cpp",
],
shared_libs: [
+ "libandroidfw",
"libgui",
"liblog",
"libui",