Merge "Convert libandroid and libandroid_runtime to Android.bp"
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
subdirs = [
|
subdirs = [
|
||||||
|
"core/jni",
|
||||||
"libs/*",
|
"libs/*",
|
||||||
"native/android",
|
"native/android",
|
||||||
"native/graphics/jni",
|
"native/graphics/jni",
|
||||||
|
|||||||
277
core/jni/Android.bp
Normal file
277
core/jni/Android.bp
Normal file
@@ -0,0 +1,277 @@
|
|||||||
|
cc_library_shared {
|
||||||
|
name: "libandroid_runtime",
|
||||||
|
|
||||||
|
cflags: [
|
||||||
|
"-Wno-unused-parameter",
|
||||||
|
"-Wno-non-virtual-dtor",
|
||||||
|
"-Wno-maybe-uninitialized",
|
||||||
|
"-Wno-parentheses",
|
||||||
|
|
||||||
|
"-DHWUI_NEW_OPS",
|
||||||
|
|
||||||
|
"-DGL_GLEXT_PROTOTYPES",
|
||||||
|
"-DEGL_EGLEXT_PROTOTYPES",
|
||||||
|
|
||||||
|
"-DU_USING_ICU_NAMESPACE=0",
|
||||||
|
|
||||||
|
"-Wall",
|
||||||
|
"-Werror",
|
||||||
|
"-Wno-error=deprecated-declarations",
|
||||||
|
"-Wunused",
|
||||||
|
"-Wunreachable-code",
|
||||||
|
|
||||||
|
// necessary for Clang as the GL bindings need to turn
|
||||||
|
// off a GCC warning that Clang doesn't know.
|
||||||
|
"-Wno-unknown-pragmas",
|
||||||
|
],
|
||||||
|
|
||||||
|
cppflags: ["-Wno-conversion-null"],
|
||||||
|
|
||||||
|
srcs: [
|
||||||
|
"AndroidRuntime.cpp",
|
||||||
|
"com_android_internal_content_NativeLibraryHelper.cpp",
|
||||||
|
"com_google_android_gles_jni_EGLImpl.cpp",
|
||||||
|
"com_google_android_gles_jni_GLImpl.cpp", // TODO: .arm
|
||||||
|
"android_app_Activity.cpp",
|
||||||
|
"android_app_ApplicationLoaders.cpp",
|
||||||
|
"android_app_NativeActivity.cpp",
|
||||||
|
"android_app_admin_SecurityLog.cpp",
|
||||||
|
"android_opengl_EGL14.cpp",
|
||||||
|
"android_opengl_EGLExt.cpp",
|
||||||
|
"android_opengl_GLES10.cpp",
|
||||||
|
"android_opengl_GLES10Ext.cpp",
|
||||||
|
"android_opengl_GLES11.cpp",
|
||||||
|
"android_opengl_GLES11Ext.cpp",
|
||||||
|
"android_opengl_GLES20.cpp",
|
||||||
|
"android_opengl_GLES30.cpp",
|
||||||
|
"android_opengl_GLES31.cpp",
|
||||||
|
"android_opengl_GLES31Ext.cpp",
|
||||||
|
"android_opengl_GLES32.cpp",
|
||||||
|
"android_database_CursorWindow.cpp",
|
||||||
|
"android_database_SQLiteCommon.cpp",
|
||||||
|
"android_database_SQLiteConnection.cpp",
|
||||||
|
"android_database_SQLiteGlobal.cpp",
|
||||||
|
"android_database_SQLiteDebug.cpp",
|
||||||
|
"android_graphics_drawable_AnimatedVectorDrawable.cpp",
|
||||||
|
"android_graphics_drawable_VectorDrawable.cpp",
|
||||||
|
"android_view_DisplayEventReceiver.cpp",
|
||||||
|
"android_view_DisplayListCanvas.cpp",
|
||||||
|
"android_view_GraphicBuffer.cpp",
|
||||||
|
"android_view_HardwareLayer.cpp",
|
||||||
|
"android_view_InputChannel.cpp",
|
||||||
|
"android_view_InputDevice.cpp",
|
||||||
|
"android_view_InputEventReceiver.cpp",
|
||||||
|
"android_view_InputEventSender.cpp",
|
||||||
|
"android_view_InputQueue.cpp",
|
||||||
|
"android_view_KeyCharacterMap.cpp",
|
||||||
|
"android_view_KeyEvent.cpp",
|
||||||
|
"android_view_MotionEvent.cpp",
|
||||||
|
"android_view_PointerIcon.cpp",
|
||||||
|
"android_view_RenderNode.cpp",
|
||||||
|
"android_view_RenderNodeAnimator.cpp",
|
||||||
|
"android_view_Surface.cpp",
|
||||||
|
"android_view_SurfaceControl.cpp",
|
||||||
|
"android_view_SurfaceSession.cpp",
|
||||||
|
"android_view_TextureView.cpp",
|
||||||
|
"android_view_ThreadedRenderer.cpp",
|
||||||
|
"android_view_VelocityTracker.cpp",
|
||||||
|
"android_text_AndroidCharacter.cpp",
|
||||||
|
"android_text_AndroidBidi.cpp",
|
||||||
|
"android_text_StaticLayout.cpp",
|
||||||
|
"android_os_Debug.cpp",
|
||||||
|
"android_os_GraphicsEnvironment.cpp",
|
||||||
|
"android_os_HwBinder.cpp",
|
||||||
|
"android_os_HwBlob.cpp",
|
||||||
|
"android_os_HwParcel.cpp",
|
||||||
|
"android_os_HwRemoteBinder.cpp",
|
||||||
|
"android_os_MemoryFile.cpp",
|
||||||
|
"android_os_MessageQueue.cpp",
|
||||||
|
"android_os_Parcel.cpp",
|
||||||
|
"android_os_SELinux.cpp",
|
||||||
|
"android_os_seccomp.cpp",
|
||||||
|
"android_os_SystemClock.cpp",
|
||||||
|
"android_os_SystemProperties.cpp",
|
||||||
|
"android_os_Trace.cpp",
|
||||||
|
"android_os_UEventObserver.cpp",
|
||||||
|
"android_os_VintfObject.cpp",
|
||||||
|
"android_os_VintfRuntimeInfo.cpp",
|
||||||
|
"android_net_LocalSocketImpl.cpp",
|
||||||
|
"android_net_NetUtils.cpp",
|
||||||
|
"android_net_TrafficStats.cpp",
|
||||||
|
"android_nio_utils.cpp",
|
||||||
|
"android_util_AssetManager.cpp",
|
||||||
|
"android_util_Binder.cpp",
|
||||||
|
"android_util_EventLog.cpp",
|
||||||
|
"android_util_MemoryIntArray.cpp",
|
||||||
|
"android_util_Log.cpp",
|
||||||
|
"android_util_PathParser.cpp",
|
||||||
|
"android_util_Process.cpp",
|
||||||
|
"android_util_StringBlock.cpp",
|
||||||
|
"android_util_XmlBlock.cpp",
|
||||||
|
"android_util_jar_StrictJarFile.cpp",
|
||||||
|
"android_graphics_Canvas.cpp",
|
||||||
|
"android_graphics_Picture.cpp",
|
||||||
|
"android/graphics/Bitmap.cpp",
|
||||||
|
"android/graphics/BitmapFactory.cpp",
|
||||||
|
"android/graphics/Camera.cpp",
|
||||||
|
"android/graphics/CanvasProperty.cpp",
|
||||||
|
"android/graphics/ColorFilter.cpp",
|
||||||
|
"android/graphics/DrawFilter.cpp",
|
||||||
|
"android/graphics/FontFamily.cpp",
|
||||||
|
"android/graphics/CreateJavaOutputStreamAdaptor.cpp",
|
||||||
|
"android/graphics/Graphics.cpp",
|
||||||
|
"android/graphics/HarfBuzzNGFaceSkia.cpp",
|
||||||
|
"android/graphics/Interpolator.cpp",
|
||||||
|
"android/graphics/MaskFilter.cpp",
|
||||||
|
"android/graphics/Matrix.cpp",
|
||||||
|
"android/graphics/Movie.cpp",
|
||||||
|
"android/graphics/NinePatch.cpp",
|
||||||
|
"android/graphics/NinePatchPeeker.cpp",
|
||||||
|
"android/graphics/Paint.cpp",
|
||||||
|
"android/graphics/Path.cpp",
|
||||||
|
"android/graphics/PathMeasure.cpp",
|
||||||
|
"android/graphics/PathEffect.cpp",
|
||||||
|
"android/graphics/Picture.cpp",
|
||||||
|
"android/graphics/PorterDuff.cpp",
|
||||||
|
"android/graphics/BitmapRegionDecoder.cpp",
|
||||||
|
"android/graphics/Rasterizer.cpp",
|
||||||
|
"android/graphics/Region.cpp",
|
||||||
|
"android/graphics/Shader.cpp",
|
||||||
|
"android/graphics/SurfaceTexture.cpp",
|
||||||
|
"android/graphics/Typeface.cpp",
|
||||||
|
"android/graphics/Utils.cpp",
|
||||||
|
"android/graphics/Xfermode.cpp",
|
||||||
|
"android/graphics/YuvToJpegEncoder.cpp",
|
||||||
|
"android/graphics/pdf/PdfDocument.cpp",
|
||||||
|
"android/graphics/pdf/PdfEditor.cpp",
|
||||||
|
"android/graphics/pdf/PdfRenderer.cpp",
|
||||||
|
"android_media_AudioRecord.cpp",
|
||||||
|
"android_media_AudioSystem.cpp",
|
||||||
|
"android_media_AudioTrack.cpp",
|
||||||
|
"android_media_DeviceCallback.cpp",
|
||||||
|
"android_media_JetPlayer.cpp",
|
||||||
|
"android_media_RemoteDisplay.cpp",
|
||||||
|
"android_media_ToneGenerator.cpp",
|
||||||
|
"android_hardware_Camera.cpp",
|
||||||
|
"android_hardware_camera2_CameraMetadata.cpp",
|
||||||
|
"android_hardware_camera2_legacy_LegacyCameraDevice.cpp",
|
||||||
|
"android_hardware_camera2_legacy_PerfMeasurement.cpp",
|
||||||
|
"android_hardware_camera2_DngCreator.cpp",
|
||||||
|
"android_hardware_Radio.cpp",
|
||||||
|
"android_hardware_SensorManager.cpp",
|
||||||
|
"android_hardware_SerialPort.cpp",
|
||||||
|
"android_hardware_SoundTrigger.cpp",
|
||||||
|
"android_hardware_UsbDevice.cpp",
|
||||||
|
"android_hardware_UsbDeviceConnection.cpp",
|
||||||
|
"android_hardware_UsbRequest.cpp",
|
||||||
|
"android_hardware_location_ContextHubService.cpp",
|
||||||
|
"android_hardware_location_ActivityRecognitionHardware.cpp",
|
||||||
|
"android_util_FileObserver.cpp",
|
||||||
|
"android/opengl/poly_clip.cpp", // TODO: .arm
|
||||||
|
"android/opengl/util.cpp",
|
||||||
|
"android_server_NetworkManagementSocketTagger.cpp",
|
||||||
|
"android_server_Watchdog.cpp",
|
||||||
|
"android_ddm_DdmHandleNativeHeap.cpp",
|
||||||
|
"android_backup_BackupDataInput.cpp",
|
||||||
|
"android_backup_BackupDataOutput.cpp",
|
||||||
|
"android_backup_FileBackupHelperBase.cpp",
|
||||||
|
"android_backup_BackupHelperDispatcher.cpp",
|
||||||
|
"android_app_backup_FullBackup.cpp",
|
||||||
|
"android_content_res_ObbScanner.cpp",
|
||||||
|
"android_content_res_Configuration.cpp",
|
||||||
|
"android_animation_PropertyValuesHolder.cpp",
|
||||||
|
"com_android_internal_net_NetworkStatsFactory.cpp",
|
||||||
|
"com_android_internal_os_PathClassLoaderFactory.cpp",
|
||||||
|
"com_android_internal_os_Zygote.cpp",
|
||||||
|
"com_android_internal_util_VirtualRefBasePtr.cpp",
|
||||||
|
"com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp",
|
||||||
|
"hwbinder/EphemeralStorage.cpp",
|
||||||
|
"fd_utils.cpp",
|
||||||
|
],
|
||||||
|
|
||||||
|
include_dirs: [
|
||||||
|
// we need to access the private Bionic header
|
||||||
|
// <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
|
||||||
|
"bionic/libc/private",
|
||||||
|
|
||||||
|
"frameworks/native/opengl/libs",
|
||||||
|
|
||||||
|
"external/skia/include/private",
|
||||||
|
"external/skia/src/core",
|
||||||
|
"external/skia/src/effects",
|
||||||
|
"external/skia/src/images",
|
||||||
|
"frameworks/base/media/jni",
|
||||||
|
"libcore/include",
|
||||||
|
],
|
||||||
|
|
||||||
|
static_libs: [
|
||||||
|
"libseccomp_policy",
|
||||||
|
"libselinux",
|
||||||
|
"libcrypto",
|
||||||
|
],
|
||||||
|
|
||||||
|
shared_libs: [
|
||||||
|
"libmemtrack",
|
||||||
|
"libandroidfw",
|
||||||
|
"libbase",
|
||||||
|
"libexpat",
|
||||||
|
"libnativehelper",
|
||||||
|
"liblog",
|
||||||
|
"libcutils",
|
||||||
|
"libdebuggerd_client",
|
||||||
|
"libutils",
|
||||||
|
"libbinder",
|
||||||
|
"libnetutils",
|
||||||
|
"libui",
|
||||||
|
"libgui",
|
||||||
|
"libinput",
|
||||||
|
"libinputflinger",
|
||||||
|
"libcamera_client",
|
||||||
|
"libcamera_metadata",
|
||||||
|
"libskia",
|
||||||
|
"libsqlite",
|
||||||
|
"libEGL",
|
||||||
|
"libGLESv1_CM",
|
||||||
|
"libGLESv2",
|
||||||
|
"libvulkan",
|
||||||
|
"libETC1",
|
||||||
|
"libhardware",
|
||||||
|
"libhardware_legacy",
|
||||||
|
"libselinux",
|
||||||
|
"libsonivox",
|
||||||
|
"libcrypto",
|
||||||
|
"libssl",
|
||||||
|
"libicuuc",
|
||||||
|
"libicui18n",
|
||||||
|
"libmedia",
|
||||||
|
"libaudioclient",
|
||||||
|
"libjpeg",
|
||||||
|
"libusbhost",
|
||||||
|
"libharfbuzz_ng",
|
||||||
|
"libz",
|
||||||
|
"libaudioutils",
|
||||||
|
"libpdfium",
|
||||||
|
"libimg_utils",
|
||||||
|
"libnetd_client",
|
||||||
|
"libradio",
|
||||||
|
"libsoundtrigger",
|
||||||
|
"libminikin",
|
||||||
|
"libprocessgroup",
|
||||||
|
"libnativebridge",
|
||||||
|
"libradio_metadata",
|
||||||
|
"libnativeloader",
|
||||||
|
"libmemunreachable",
|
||||||
|
"libhidlbase",
|
||||||
|
"libhidltransport",
|
||||||
|
"libhwbinder",
|
||||||
|
"libvintf",
|
||||||
|
|
||||||
|
"libhwui",
|
||||||
|
"libdl",
|
||||||
|
],
|
||||||
|
|
||||||
|
local_include_dirs: ["android/graphics"],
|
||||||
|
export_include_dirs: ["include"],
|
||||||
|
// AndroidRuntime.h depends on nativehelper/jni.h
|
||||||
|
export_shared_lib_headers: ["libnativehelper"],
|
||||||
|
}
|
||||||
@@ -1,309 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -DHAVE_CONFIG_H -DKHTML_NO_EXCEPTIONS -DGKWQ_NO_JAVA
|
|
||||||
LOCAL_CFLAGS += -DNO_SUPPORT_JS_BINDING -DQT_NO_WHEELEVENT -DKHTML_NO_XBL
|
|
||||||
LOCAL_CFLAGS += -U__APPLE__
|
|
||||||
LOCAL_CFLAGS += -Wno-unused-parameter
|
|
||||||
LOCAL_CFLAGS += -Wno-non-virtual-dtor
|
|
||||||
LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses
|
|
||||||
LOCAL_CFLAGS += -DHWUI_NEW_OPS
|
|
||||||
LOCAL_CPPFLAGS += -Wno-conversion-null
|
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH), arm)
|
|
||||||
LOCAL_CFLAGS += -DPACKED="__attribute__ ((packed))"
|
|
||||||
else
|
|
||||||
LOCAL_CFLAGS += -DPACKED=""
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(ENABLE_CPUSETS),)
|
|
||||||
LOCAL_CFLAGS += -DENABLE_CPUSETS
|
|
||||||
endif
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -DU_USING_ICU_NAMESPACE=0
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES:= \
|
|
||||||
AndroidRuntime.cpp \
|
|
||||||
com_android_internal_content_NativeLibraryHelper.cpp \
|
|
||||||
com_google_android_gles_jni_EGLImpl.cpp \
|
|
||||||
com_google_android_gles_jni_GLImpl.cpp.arm \
|
|
||||||
android_app_Activity.cpp \
|
|
||||||
android_app_ApplicationLoaders.cpp \
|
|
||||||
android_app_NativeActivity.cpp \
|
|
||||||
android_app_admin_SecurityLog.cpp \
|
|
||||||
android_opengl_EGL14.cpp \
|
|
||||||
android_opengl_EGLExt.cpp \
|
|
||||||
android_opengl_GLES10.cpp \
|
|
||||||
android_opengl_GLES10Ext.cpp \
|
|
||||||
android_opengl_GLES11.cpp \
|
|
||||||
android_opengl_GLES11Ext.cpp \
|
|
||||||
android_opengl_GLES20.cpp \
|
|
||||||
android_opengl_GLES30.cpp \
|
|
||||||
android_opengl_GLES31.cpp \
|
|
||||||
android_opengl_GLES31Ext.cpp \
|
|
||||||
android_opengl_GLES32.cpp \
|
|
||||||
android_database_CursorWindow.cpp \
|
|
||||||
android_database_SQLiteCommon.cpp \
|
|
||||||
android_database_SQLiteConnection.cpp \
|
|
||||||
android_database_SQLiteGlobal.cpp \
|
|
||||||
android_database_SQLiteDebug.cpp \
|
|
||||||
android_graphics_drawable_AnimatedVectorDrawable.cpp \
|
|
||||||
android_graphics_drawable_VectorDrawable.cpp \
|
|
||||||
android_view_DisplayEventReceiver.cpp \
|
|
||||||
android_view_DisplayListCanvas.cpp \
|
|
||||||
android_view_GraphicBuffer.cpp \
|
|
||||||
android_view_HardwareLayer.cpp \
|
|
||||||
android_view_InputChannel.cpp \
|
|
||||||
android_view_InputDevice.cpp \
|
|
||||||
android_view_InputEventReceiver.cpp \
|
|
||||||
android_view_InputEventSender.cpp \
|
|
||||||
android_view_InputQueue.cpp \
|
|
||||||
android_view_KeyCharacterMap.cpp \
|
|
||||||
android_view_KeyEvent.cpp \
|
|
||||||
android_view_MotionEvent.cpp \
|
|
||||||
android_view_PointerIcon.cpp \
|
|
||||||
android_view_RenderNode.cpp \
|
|
||||||
android_view_RenderNodeAnimator.cpp \
|
|
||||||
android_view_Surface.cpp \
|
|
||||||
android_view_SurfaceControl.cpp \
|
|
||||||
android_view_SurfaceSession.cpp \
|
|
||||||
android_view_TextureView.cpp \
|
|
||||||
android_view_ThreadedRenderer.cpp \
|
|
||||||
android_view_VelocityTracker.cpp \
|
|
||||||
android_text_AndroidCharacter.cpp \
|
|
||||||
android_text_AndroidBidi.cpp \
|
|
||||||
android_text_StaticLayout.cpp \
|
|
||||||
android_os_Debug.cpp \
|
|
||||||
android_os_GraphicsEnvironment.cpp \
|
|
||||||
android_os_HwBinder.cpp \
|
|
||||||
android_os_HwBlob.cpp \
|
|
||||||
android_os_HwParcel.cpp \
|
|
||||||
android_os_HwRemoteBinder.cpp \
|
|
||||||
android_os_MemoryFile.cpp \
|
|
||||||
android_os_MessageQueue.cpp \
|
|
||||||
android_os_Parcel.cpp \
|
|
||||||
android_os_SELinux.cpp \
|
|
||||||
android_os_seccomp.cpp \
|
|
||||||
android_os_SystemClock.cpp \
|
|
||||||
android_os_SystemProperties.cpp \
|
|
||||||
android_os_Trace.cpp \
|
|
||||||
android_os_UEventObserver.cpp \
|
|
||||||
android_os_VintfObject.cpp \
|
|
||||||
android_os_VintfRuntimeInfo.cpp \
|
|
||||||
android_net_LocalSocketImpl.cpp \
|
|
||||||
android_net_NetUtils.cpp \
|
|
||||||
android_net_TrafficStats.cpp \
|
|
||||||
android_nio_utils.cpp \
|
|
||||||
android_util_AssetManager.cpp \
|
|
||||||
android_util_Binder.cpp \
|
|
||||||
android_util_EventLog.cpp \
|
|
||||||
android_util_MemoryIntArray.cpp \
|
|
||||||
android_util_Log.cpp \
|
|
||||||
android_util_PathParser.cpp \
|
|
||||||
android_util_Process.cpp \
|
|
||||||
android_util_StringBlock.cpp \
|
|
||||||
android_util_XmlBlock.cpp \
|
|
||||||
android_util_jar_StrictJarFile.cpp \
|
|
||||||
android_graphics_Canvas.cpp \
|
|
||||||
android_graphics_Picture.cpp \
|
|
||||||
android/graphics/Bitmap.cpp \
|
|
||||||
android/graphics/BitmapFactory.cpp \
|
|
||||||
android/graphics/Camera.cpp \
|
|
||||||
android/graphics/CanvasProperty.cpp \
|
|
||||||
android/graphics/ColorFilter.cpp \
|
|
||||||
android/graphics/DrawFilter.cpp \
|
|
||||||
android/graphics/FontFamily.cpp \
|
|
||||||
android/graphics/CreateJavaOutputStreamAdaptor.cpp \
|
|
||||||
android/graphics/Graphics.cpp \
|
|
||||||
android/graphics/HarfBuzzNGFaceSkia.cpp \
|
|
||||||
android/graphics/Interpolator.cpp \
|
|
||||||
android/graphics/MaskFilter.cpp \
|
|
||||||
android/graphics/Matrix.cpp \
|
|
||||||
android/graphics/Movie.cpp \
|
|
||||||
android/graphics/NinePatch.cpp \
|
|
||||||
android/graphics/NinePatchPeeker.cpp \
|
|
||||||
android/graphics/Paint.cpp \
|
|
||||||
android/graphics/Path.cpp \
|
|
||||||
android/graphics/PathMeasure.cpp \
|
|
||||||
android/graphics/PathEffect.cpp \
|
|
||||||
android/graphics/Picture.cpp \
|
|
||||||
android/graphics/PorterDuff.cpp \
|
|
||||||
android/graphics/BitmapRegionDecoder.cpp \
|
|
||||||
android/graphics/Rasterizer.cpp \
|
|
||||||
android/graphics/Region.cpp \
|
|
||||||
android/graphics/Shader.cpp \
|
|
||||||
android/graphics/SurfaceTexture.cpp \
|
|
||||||
android/graphics/Typeface.cpp \
|
|
||||||
android/graphics/Utils.cpp \
|
|
||||||
android/graphics/Xfermode.cpp \
|
|
||||||
android/graphics/YuvToJpegEncoder.cpp \
|
|
||||||
android/graphics/pdf/PdfDocument.cpp \
|
|
||||||
android/graphics/pdf/PdfEditor.cpp \
|
|
||||||
android/graphics/pdf/PdfRenderer.cpp \
|
|
||||||
android_media_AudioRecord.cpp \
|
|
||||||
android_media_AudioSystem.cpp \
|
|
||||||
android_media_AudioTrack.cpp \
|
|
||||||
android_media_DeviceCallback.cpp \
|
|
||||||
android_media_JetPlayer.cpp \
|
|
||||||
android_media_RemoteDisplay.cpp \
|
|
||||||
android_media_ToneGenerator.cpp \
|
|
||||||
android_hardware_Camera.cpp \
|
|
||||||
android_hardware_camera2_CameraMetadata.cpp \
|
|
||||||
android_hardware_camera2_legacy_LegacyCameraDevice.cpp \
|
|
||||||
android_hardware_camera2_legacy_PerfMeasurement.cpp \
|
|
||||||
android_hardware_camera2_DngCreator.cpp \
|
|
||||||
android_hardware_Radio.cpp \
|
|
||||||
android_hardware_SensorManager.cpp \
|
|
||||||
android_hardware_SerialPort.cpp \
|
|
||||||
android_hardware_SoundTrigger.cpp \
|
|
||||||
android_hardware_UsbDevice.cpp \
|
|
||||||
android_hardware_UsbDeviceConnection.cpp \
|
|
||||||
android_hardware_UsbRequest.cpp \
|
|
||||||
android_hardware_location_ContextHubService.cpp \
|
|
||||||
android_hardware_location_ActivityRecognitionHardware.cpp \
|
|
||||||
android_util_FileObserver.cpp \
|
|
||||||
android/opengl/poly_clip.cpp.arm \
|
|
||||||
android/opengl/util.cpp \
|
|
||||||
android_server_NetworkManagementSocketTagger.cpp \
|
|
||||||
android_server_Watchdog.cpp \
|
|
||||||
android_ddm_DdmHandleNativeHeap.cpp \
|
|
||||||
android_backup_BackupDataInput.cpp \
|
|
||||||
android_backup_BackupDataOutput.cpp \
|
|
||||||
android_backup_FileBackupHelperBase.cpp \
|
|
||||||
android_backup_BackupHelperDispatcher.cpp \
|
|
||||||
android_app_backup_FullBackup.cpp \
|
|
||||||
android_content_res_ObbScanner.cpp \
|
|
||||||
android_content_res_Configuration.cpp \
|
|
||||||
android_animation_PropertyValuesHolder.cpp \
|
|
||||||
com_android_internal_net_NetworkStatsFactory.cpp \
|
|
||||||
com_android_internal_os_PathClassLoaderFactory.cpp \
|
|
||||||
com_android_internal_os_Zygote.cpp \
|
|
||||||
com_android_internal_util_VirtualRefBasePtr.cpp \
|
|
||||||
com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp \
|
|
||||||
hwbinder/EphemeralStorage.cpp \
|
|
||||||
fd_utils.cpp \
|
|
||||||
|
|
||||||
LOCAL_C_INCLUDES += \
|
|
||||||
$(LOCAL_PATH)/include \
|
|
||||||
$(JNI_H_INCLUDE) \
|
|
||||||
$(LOCAL_PATH)/android/graphics \
|
|
||||||
$(LOCAL_PATH)/../../libs/hwui \
|
|
||||||
$(LOCAL_PATH)/../../../native/opengl/libs \
|
|
||||||
$(LOCAL_PATH)/../../../native/vulkan/include \
|
|
||||||
$(call include-path-for, bluedroid) \
|
|
||||||
$(call include-path-for, libhardware)/hardware \
|
|
||||||
$(call include-path-for, libhardware_legacy)/hardware_legacy \
|
|
||||||
$(TOP)/frameworks/base/media/jni \
|
|
||||||
$(TOP)/system/core/base/include \
|
|
||||||
$(TOP)/system/core/include \
|
|
||||||
$(TOP)/system/media/camera/include \
|
|
||||||
$(TOP)/system/netd/include \
|
|
||||||
external/pdfium/core/include/fpdfapi \
|
|
||||||
external/pdfium/fpdfsdk/include \
|
|
||||||
external/pdfium/public \
|
|
||||||
external/pdfium \
|
|
||||||
external/skia/include/private \
|
|
||||||
external/skia/src/core \
|
|
||||||
external/skia/src/effects \
|
|
||||||
external/skia/src/images \
|
|
||||||
external/sqlite/dist \
|
|
||||||
external/sqlite/android \
|
|
||||||
external/expat/lib \
|
|
||||||
external/tremor/Tremor \
|
|
||||||
external/harfbuzz_ng/src \
|
|
||||||
libcore/include \
|
|
||||||
$(call include-path-for, audio-utils) \
|
|
||||||
frameworks/minikin/include \
|
|
||||||
external/freetype/include
|
|
||||||
# TODO: clean up Minikin so it doesn't need the freetype include
|
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
|
||||||
libseccomp_policy \
|
|
||||||
libselinux \
|
|
||||||
libcrypto \
|
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := \
|
|
||||||
libmemtrack \
|
|
||||||
libandroidfw \
|
|
||||||
libbase \
|
|
||||||
libexpat \
|
|
||||||
libnativehelper \
|
|
||||||
liblog \
|
|
||||||
libcutils \
|
|
||||||
libdebuggerd_client \
|
|
||||||
libutils \
|
|
||||||
libbinder \
|
|
||||||
libnetutils \
|
|
||||||
libui \
|
|
||||||
libgui \
|
|
||||||
libinput \
|
|
||||||
libinputflinger \
|
|
||||||
libcamera_client \
|
|
||||||
libcamera_metadata \
|
|
||||||
libskia \
|
|
||||||
libsqlite \
|
|
||||||
libEGL \
|
|
||||||
libGLESv1_CM \
|
|
||||||
libGLESv2 \
|
|
||||||
libvulkan \
|
|
||||||
libETC1 \
|
|
||||||
libhardware \
|
|
||||||
libhardware_legacy \
|
|
||||||
libselinux \
|
|
||||||
libsonivox \
|
|
||||||
libcrypto \
|
|
||||||
libssl \
|
|
||||||
libicuuc \
|
|
||||||
libicui18n \
|
|
||||||
libmedia \
|
|
||||||
libaudioclient \
|
|
||||||
libjpeg \
|
|
||||||
libusbhost \
|
|
||||||
libharfbuzz_ng \
|
|
||||||
libz \
|
|
||||||
libaudioutils \
|
|
||||||
libpdfium \
|
|
||||||
libimg_utils \
|
|
||||||
libnetd_client \
|
|
||||||
libradio \
|
|
||||||
libsoundtrigger \
|
|
||||||
libminikin \
|
|
||||||
libprocessgroup \
|
|
||||||
libnativebridge \
|
|
||||||
libradio_metadata \
|
|
||||||
libnativeloader \
|
|
||||||
libmemunreachable \
|
|
||||||
libhidlbase \
|
|
||||||
libhidltransport \
|
|
||||||
libhwbinder \
|
|
||||||
libvintf \
|
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES += \
|
|
||||||
libhwui \
|
|
||||||
libdl
|
|
||||||
|
|
||||||
# we need to access the private Bionic header
|
|
||||||
# <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
|
|
||||||
LOCAL_C_INCLUDES += bionic/libc/private
|
|
||||||
|
|
||||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
||||||
|
|
||||||
# AndroidRuntime.h depends on nativehelper/jni.h
|
|
||||||
LOCAL_EXPORT_C_INCLUDE_DIRS += libnativehelper/include
|
|
||||||
|
|
||||||
LOCAL_MODULE:= libandroid_runtime
|
|
||||||
|
|
||||||
# -Wno-unknown-pragmas: necessary for Clang as the GL bindings need to turn
|
|
||||||
# off a GCC warning that Clang doesn't know.
|
|
||||||
LOCAL_CFLAGS += -Wall -Werror -Wno-error=deprecated-declarations -Wunused -Wunreachable-code \
|
|
||||||
-Wno-unknown-pragmas
|
|
||||||
|
|
||||||
# -Wno-c++11-extensions: Clang warns about Skia using the C++11 override keyword, but this project
|
|
||||||
# is not being compiled with that level. Remove once this has changed.
|
|
||||||
LOCAL_CLANG_CFLAGS += -Wno-c++11-extensions
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
|
||||||
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <android_runtime/AndroidRuntime.h>
|
#include <android_runtime/AndroidRuntime.h>
|
||||||
#include <android_runtime/Log.h>
|
#include <android_runtime/Log.h>
|
||||||
|
|
||||||
#include "activity_recognition.h"
|
#include <hardware/activity_recognition.h>
|
||||||
|
|
||||||
|
|
||||||
// keep base connection data from the HAL
|
// keep base connection data from the HAL
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "context_hub.h"
|
#include <hardware/context_hub.h>
|
||||||
|
|
||||||
#define LOG_NDEBUG 0
|
#define LOG_NDEBUG 0
|
||||||
#define LOG_TAG "ContextHubService"
|
#define LOG_TAG "ContextHubService"
|
||||||
|
|||||||
@@ -19,3 +19,61 @@ ndk_library {
|
|||||||
first_version: "9",
|
first_version: "9",
|
||||||
unversioned_until: "current",
|
unversioned_until: "current",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cc_defaults {
|
||||||
|
name: "libandroid_defaults",
|
||||||
|
cflags: [
|
||||||
|
"-Wall",
|
||||||
|
"-Werror",
|
||||||
|
"-Wunused",
|
||||||
|
"-Wunreachable-code",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
cc_library_shared {
|
||||||
|
name: "libandroid",
|
||||||
|
defaults: ["libandroid_defaults"],
|
||||||
|
|
||||||
|
srcs: [
|
||||||
|
"asset_manager.cpp",
|
||||||
|
"choreographer.cpp",
|
||||||
|
"configuration.cpp",
|
||||||
|
"input.cpp",
|
||||||
|
"looper.cpp",
|
||||||
|
"native_activity.cpp",
|
||||||
|
"native_window.cpp",
|
||||||
|
"net.c",
|
||||||
|
"obb.cpp",
|
||||||
|
"sensor.cpp",
|
||||||
|
"storage_manager.cpp",
|
||||||
|
"trace.cpp",
|
||||||
|
],
|
||||||
|
|
||||||
|
shared_libs: [
|
||||||
|
"liblog",
|
||||||
|
"libcutils",
|
||||||
|
"libandroidfw",
|
||||||
|
"libinput",
|
||||||
|
"libutils",
|
||||||
|
"libbinder",
|
||||||
|
"libui",
|
||||||
|
"libgui",
|
||||||
|
"libandroid_runtime",
|
||||||
|
"libnetd_client",
|
||||||
|
],
|
||||||
|
|
||||||
|
static_libs: ["libstorage"],
|
||||||
|
|
||||||
|
include_dirs: ["bionic/libc/dns/include"],
|
||||||
|
}
|
||||||
|
|
||||||
|
// Network library.
|
||||||
|
cc_library_shared {
|
||||||
|
name: "libandroid_net",
|
||||||
|
defaults: ["libandroid_defaults"],
|
||||||
|
srcs: ["net.c"],
|
||||||
|
|
||||||
|
shared_libs: ["libnetd_client"],
|
||||||
|
|
||||||
|
include_dirs: ["bionic/libc/dns/include"],
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,66 +0,0 @@
|
|||||||
BASE_PATH := $(call my-dir)
|
|
||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
|
|
||||||
common_cflags := -Wall -Werror -Wunused -Wunreachable-code
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
# our source files
|
|
||||||
#
|
|
||||||
LOCAL_SRC_FILES:= \
|
|
||||||
asset_manager.cpp \
|
|
||||||
choreographer.cpp \
|
|
||||||
configuration.cpp \
|
|
||||||
input.cpp \
|
|
||||||
looper.cpp \
|
|
||||||
native_activity.cpp \
|
|
||||||
native_window.cpp \
|
|
||||||
net.c \
|
|
||||||
obb.cpp \
|
|
||||||
sensor.cpp \
|
|
||||||
storage_manager.cpp \
|
|
||||||
trace.cpp \
|
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := \
|
|
||||||
liblog \
|
|
||||||
libcutils \
|
|
||||||
libandroidfw \
|
|
||||||
libinput \
|
|
||||||
libutils \
|
|
||||||
libbinder \
|
|
||||||
libui \
|
|
||||||
libgui \
|
|
||||||
libandroid_runtime \
|
|
||||||
libnetd_client \
|
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
|
||||||
libstorage
|
|
||||||
|
|
||||||
LOCAL_C_INCLUDES += \
|
|
||||||
frameworks/base/native/include \
|
|
||||||
frameworks/base/core/jni/android \
|
|
||||||
bionic/libc/dns/include \
|
|
||||||
system/netd/include \
|
|
||||||
|
|
||||||
LOCAL_MODULE := libandroid
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += $(common_cflags)
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
|
||||||
|
|
||||||
# Network library.
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_MODULE := libandroid_net
|
|
||||||
LOCAL_CFLAGS := $(common_cflags)
|
|
||||||
LOCAL_SRC_FILES:= \
|
|
||||||
net.c \
|
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := \
|
|
||||||
libnetd_client \
|
|
||||||
|
|
||||||
LOCAL_C_INCLUDES += \
|
|
||||||
frameworks/base/native/include \
|
|
||||||
bionic/libc/dns/include \
|
|
||||||
system/netd/include \
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
|
||||||
Reference in New Issue
Block a user