Build input and binder JNI bindings for linux host.
And add Transform.cpp to libhostgraphics to support this. Test: m libandroid_runtime Change-Id: I848b3e1ef79cb3f5cf8477c49eb50d4ed701a4a8
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
cc_library_shared {
|
||||
name: "libandroid_runtime",
|
||||
host_supported: true,
|
||||
@@ -286,8 +285,9 @@ cc_library_shared {
|
||||
],
|
||||
include_dirs: [
|
||||
"external/vulkan-headers/include",
|
||||
"frameworks/native/libs/math/include",
|
||||
"frameworks/native/libs/nativebase/include",
|
||||
"frameworks/native/libs/nativewindow/include"
|
||||
"frameworks/native/libs/nativewindow/include",
|
||||
],
|
||||
shared_libs: [
|
||||
"libicui18n",
|
||||
@@ -303,10 +303,36 @@ cc_library_shared {
|
||||
linux_glibc: {
|
||||
srcs: [
|
||||
"android_content_res_ApkAssets.cpp",
|
||||
"android_hardware_input_InputApplicationHandle.cpp",
|
||||
"android_os_MessageQueue.cpp",
|
||||
"android_os_Parcel.cpp",
|
||||
|
||||
"android_view_KeyCharacterMap.cpp",
|
||||
"android_view_KeyEvent.cpp",
|
||||
"android_view_InputChannel.cpp",
|
||||
"android_view_InputDevice.cpp",
|
||||
"android_view_InputEventReceiver.cpp",
|
||||
"android_view_InputEventSender.cpp",
|
||||
"android_view_MotionEvent.cpp",
|
||||
"android_view_VelocityTracker.cpp",
|
||||
"android_view_VerifiedKeyEvent.cpp",
|
||||
"android_view_VerifiedMotionEvent.cpp",
|
||||
|
||||
"android_util_AssetManager.cpp",
|
||||
"android_util_Binder.cpp",
|
||||
|
||||
"android_util_FileObserver.cpp",
|
||||
],
|
||||
static_libs: [
|
||||
"libinput",
|
||||
"libbinderthreadstateutils",
|
||||
],
|
||||
shared_libs: [
|
||||
// libbinder needs to be shared since it has global state
|
||||
// (e.g. gDefaultServiceManager)
|
||||
"libbinder",
|
||||
"libhidlbase", // libhwbinder is in here
|
||||
],
|
||||
},
|
||||
windows: {
|
||||
enabled: true,
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <binder/Stability.h>
|
||||
#include <binderthreadstate/CallerUtils.h>
|
||||
#include <cutils/atomic.h>
|
||||
#include <cutils/threads.h>
|
||||
#include <log/log.h>
|
||||
#include <utils/KeyedVector.h>
|
||||
#include <utils/List.h>
|
||||
|
||||
@@ -7,6 +7,8 @@ cc_library_host_static {
|
||||
|
||||
static_libs: [
|
||||
"libbase",
|
||||
"libmath",
|
||||
"libutils",
|
||||
],
|
||||
|
||||
srcs: [
|
||||
@@ -24,6 +26,7 @@ cc_library_host_static {
|
||||
"frameworks/native/libs/nativebase/include",
|
||||
"frameworks/native/libs/nativewindow/include",
|
||||
"frameworks/native/libs/arect/include",
|
||||
"frameworks/native/libs/ui/include_private",
|
||||
],
|
||||
export_include_dirs: ["."],
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ cc_binary_host {
|
||||
|
||||
static_libs: [
|
||||
"libbase",
|
||||
"libbinder",
|
||||
"libinput",
|
||||
"libutils",
|
||||
"libcutils",
|
||||
|
||||
Reference in New Issue
Block a user