diff options
| author | Roman Kiryanov <rkir@google.com> | 2020-05-12 10:26:20 -0700 |
|---|---|---|
| committer | Roman Kiryanov <rkir@google.com> | 2020-05-13 16:06:11 -0700 |
| commit | bf1cd3d117f1312f34a07e114e632e1b91fe98af (patch) | |
| tree | 3f72ff65c708acc6e5b0a3c12b6c878d98dbde24 | |
| parent | 6398000124cd8f1622b75e84cb21ee0d7b3a49d7 (diff) | |
| download | device_generic_goldfish-opengl-bf1cd3d117f1312f34a07e114e632e1b91fe98af.tar.gz device_generic_goldfish-opengl-bf1cd3d117f1312f34a07e114e632e1b91fe98af.tar.bz2 device_generic_goldfish-opengl-bf1cd3d117f1312f34a07e114e632e1b91fe98af.zip | |
Migrate libGoldfishAddressSpace to .bp
for guest builds
Bug: 154151802
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Merged-In: I503f202961f6ba68f95dc92074030d91f0c9f666
Change-Id: I872a640d3067d7acda76fe4ad4b12ca738d18201
| -rw-r--r-- | shared/GoldfishAddressSpace/Android.bp | 16 | ||||
| -rw-r--r-- | shared/GoldfishAddressSpace/Android.mk | 11 | ||||
| -rw-r--r-- | shared/GoldfishAddressSpace/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | system/OpenglSystemCommon/Android.mk | 7 | ||||
| -rw-r--r-- | system/OpenglSystemCommon/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | system/codecs/omx/common/Android.mk | 8 | ||||
| -rw-r--r-- | system/vulkan_enc/Android.mk | 4 | ||||
| -rw-r--r-- | system/vulkan_enc/CMakeLists.txt | 6 |
8 files changed, 41 insertions, 17 deletions
diff --git a/shared/GoldfishAddressSpace/Android.bp b/shared/GoldfishAddressSpace/Android.bp new file mode 100644 index 00000000..6dcdb56a --- /dev/null +++ b/shared/GoldfishAddressSpace/Android.bp @@ -0,0 +1,16 @@ +cc_library_static { + name: "libGoldfishAddressSpace", + vendor: true, + srcs: [ + "goldfish_address_space.cpp", + ], + shared_libs: [ + "liblog", + ], + export_include_dirs: [ + "include", + ], + cflags: [ + "-DLOG_TAG=\"goldfish-address-space\"", + ], +} diff --git a/shared/GoldfishAddressSpace/Android.mk b/shared/GoldfishAddressSpace/Android.mk index a363ba43..221ea8bb 100644 --- a/shared/GoldfishAddressSpace/Android.mk +++ b/shared/GoldfishAddressSpace/Android.mk @@ -1,4 +1,4 @@ -#ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) +ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) LOCAL_PATH := $(call my-dir) @@ -8,13 +8,8 @@ LOCAL_SRC_FILES := goldfish_address_space.cpp LOCAL_CFLAGS += -DLOG_TAG=\"goldfish-address-space\" -$(call emugl-export,SHARED_LIBRARIES,liblog) - -ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) -$(call emugl-export,SHARED_LIBRARIES,android-emu-shared) -endif - +$(call emugl-export,SHARED_LIBRARIES,liblog android-emu-shared) $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/include) $(call emugl-end-module) -#endif +endif diff --git a/shared/GoldfishAddressSpace/CMakeLists.txt b/shared/GoldfishAddressSpace/CMakeLists.txt index 1af52593..c89a4365 100644 --- a/shared/GoldfishAddressSpace/CMakeLists.txt +++ b/shared/GoldfishAddressSpace/CMakeLists.txt @@ -1,10 +1,10 @@ # This is an autogenerated file! Do not edit! # instead run make from .../device/generic/goldfish-opengl # which will re-generate this file. -android_validate_sha256("${GOLDFISH_DEVICE_ROOT}/shared/GoldfishAddressSpace/Android.mk" "84d4bc9e7953e4587502cf63ddde7a7f24781321a402ea012f53a431968b5cfc") +android_validate_sha256("${GOLDFISH_DEVICE_ROOT}/shared/GoldfishAddressSpace/Android.mk" "2b12d7f8c4c62c3a909b9771662cf18c9e4d16c58c95a11e225fe2b46432e862") set(GoldfishAddressSpace_host_src goldfish_address_space.cpp) android_add_library(TARGET GoldfishAddressSpace_host LICENSE Apache-2.0 SRC goldfish_address_space.cpp) target_include_directories(GoldfishAddressSpace_host PRIVATE ${GOLDFISH_DEVICE_ROOT}/shared/GoldfishAddressSpace/include ${GOLDFISH_DEVICE_ROOT}/./host/include/libOpenglRender ${GOLDFISH_DEVICE_ROOT}/./system/include ${GOLDFISH_DEVICE_ROOT}/./../../../external/qemu/android/android-emugl/guest) target_compile_definitions(GoldfishAddressSpace_host PRIVATE "-DWITH_GLES2" "-DPLATFORM_SDK_VERSION=29" "-DGOLDFISH_HIDL_GRALLOC" "-DEMULATOR_OPENGL_POST_O=1" "-DHOST_BUILD" "-DANDROID" "-DGL_GLEXT_PROTOTYPES" "-DPAGE_SIZE=4096" "-DGOLDFISH_VULKAN" "-DLOG_TAG=\"goldfish-address-space\"") target_compile_options(GoldfishAddressSpace_host PRIVATE "-fvisibility=default" "-Wno-unused-parameter") -target_link_libraries(GoldfishAddressSpace_host PRIVATE android-emu-shared log)
\ No newline at end of file +target_link_libraries(GoldfishAddressSpace_host PRIVATE log android-emu-shared)
\ No newline at end of file diff --git a/system/OpenglSystemCommon/Android.mk b/system/OpenglSystemCommon/Android.mk index dd4e3eac..86d3dd19 100644 --- a/system/OpenglSystemCommon/Android.mk +++ b/system/OpenglSystemCommon/Android.mk @@ -1,7 +1,12 @@ LOCAL_PATH := $(call my-dir) $(call emugl-begin-shared-library,libOpenglSystemCommon) -$(call emugl-import,libGLESv1_enc libGLESv2_enc lib_renderControl_enc libGoldfishAddressSpace$(GOLDFISH_OPENGL_LIB_SUFFIX)) +$(call emugl-import,libGLESv1_enc libGLESv2_enc lib_renderControl_enc) +ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) +$(call emugl-import,libGoldfishAddressSpace$(GOLDFISH_OPENGL_LIB_SUFFIX)) +else +$(call emugl-export,STATIC_LIBRARIES,libGoldfishAddressSpace) +endif LOCAL_SRC_FILES := \ FormatConversions.cpp \ diff --git a/system/OpenglSystemCommon/CMakeLists.txt b/system/OpenglSystemCommon/CMakeLists.txt index 17752609..b76d6ac9 100644 --- a/system/OpenglSystemCommon/CMakeLists.txt +++ b/system/OpenglSystemCommon/CMakeLists.txt @@ -1,7 +1,7 @@ # This is an autogenerated file! Do not edit! # instead run make from .../device/generic/goldfish-opengl # which will re-generate this file. -android_validate_sha256("${GOLDFISH_DEVICE_ROOT}/system/OpenglSystemCommon/Android.mk" "99e5337d0a5b888580dd475c32e74e2821b558bca396d0270b7413dbf3783534") +android_validate_sha256("${GOLDFISH_DEVICE_ROOT}/system/OpenglSystemCommon/Android.mk" "921ccd71f620cc2404efee541de2a2c55cec1b6fa13e98f98eb905d22bd0b0c6") set(OpenglSystemCommon_src FormatConversions.cpp HostConnection.cpp QemuPipeStream.cpp ProcessPipe.cpp AddressSpaceStream.cpp ThreadInfo_host.cpp) android_add_library(TARGET OpenglSystemCommon SHARED LICENSE Apache-2.0 SRC FormatConversions.cpp HostConnection.cpp QemuPipeStream.cpp ProcessPipe.cpp AddressSpaceStream.cpp ThreadInfo_host.cpp) target_include_directories(OpenglSystemCommon PRIVATE ${GOLDFISH_DEVICE_ROOT}/system/OpenglSystemCommon ${GOLDFISH_DEVICE_ROOT}/bionic/libc/platform ${GOLDFISH_DEVICE_ROOT}/bionic/libc/private ${GOLDFISH_DEVICE_ROOT}/system/OpenglSystemCommon/bionic-include ${GOLDFISH_DEVICE_ROOT}/system/vulkan_enc ${GOLDFISH_DEVICE_ROOT}/android-emu ${GOLDFISH_DEVICE_ROOT}/shared/GoldfishAddressSpace/include ${GOLDFISH_DEVICE_ROOT}/system/renderControl_enc ${GOLDFISH_DEVICE_ROOT}/system/GLESv2_enc ${GOLDFISH_DEVICE_ROOT}/system/GLESv1_enc ${GOLDFISH_DEVICE_ROOT}/shared/OpenglCodecCommon ${GOLDFISH_DEVICE_ROOT}/./host/include/libOpenglRender ${GOLDFISH_DEVICE_ROOT}/./system/include ${GOLDFISH_DEVICE_ROOT}/./../../../external/qemu/android/android-emugl/guest) diff --git a/system/codecs/omx/common/Android.mk b/system/codecs/omx/common/Android.mk index 1604e813..9e233e79 100644 --- a/system/codecs/omx/common/Android.mk +++ b/system/codecs/omx/common/Android.mk @@ -28,5 +28,11 @@ LOCAL_CFLAGS += -Wno-unused-private-field $(call emugl-export,SHARED_LIBRARIES,libcutils libutils liblog) $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) -$(call emugl-import,libGoldfishAddressSpace) + +ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) +$(call emugl-import,libGoldfishAddressSpace$(GOLDFISH_OPENGL_LIB_SUFFIX)) +else +$(call emugl-export,STATIC_LIBRARIES,libGoldfishAddressSpace) +endif + $(call emugl-end-module) diff --git a/system/vulkan_enc/Android.mk b/system/vulkan_enc/Android.mk index 4a5bfef6..e49aac43 100644 --- a/system/vulkan_enc/Android.mk +++ b/system/vulkan_enc/Android.mk @@ -2,11 +2,13 @@ LOCAL_PATH := $(call my-dir) $(call emugl-begin-shared-library,libvulkan_enc) $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) -$(call emugl-import,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX) libGoldfishAddressSpace$(GOLDFISH_OPENGL_LIB_SUFFIX) lib_renderControl_enc) +$(call emugl-import,libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX) lib_renderControl_enc) ifeq (true,$(GOLDFISH_OPENGL_BUILD_FOR_HOST)) $(call emugl-import,libandroidemu) +$(call emugl-import,libGoldfishAddressSpace$(GOLDFISH_OPENGL_LIB_SUFFIX)) else $(call emugl-export,SHARED_LIBRARIES,libandroidemu) +$(call emugl-export,STATIC_LIBRARIES,libGoldfishAddressSpace) endif # Vulkan include dir diff --git a/system/vulkan_enc/CMakeLists.txt b/system/vulkan_enc/CMakeLists.txt index 9f176c2d..50113adf 100644 --- a/system/vulkan_enc/CMakeLists.txt +++ b/system/vulkan_enc/CMakeLists.txt @@ -1,10 +1,10 @@ # This is an autogenerated file! Do not edit! # instead run make from .../device/generic/goldfish-opengl # which will re-generate this file. -android_validate_sha256("${GOLDFISH_DEVICE_ROOT}/system/vulkan_enc/Android.mk" "b5a3de7043a2af6106950825e3711f947e35eca13723ded550b4cc520bce7930") +android_validate_sha256("${GOLDFISH_DEVICE_ROOT}/system/vulkan_enc/Android.mk" "103f3f10c8af73d3d5c4263c4faa5bb70ebdbfbc9ed6f068a338d57344e2aa45") set(vulkan_enc_src AndroidHardwareBuffer.cpp HostVisibleMemoryVirtualization.cpp Resources.cpp Validation.cpp VulkanStreamGuest.cpp VulkanHandleMapping.cpp ResourceTracker.cpp VkEncoder.cpp goldfish_vk_extension_structs_guest.cpp goldfish_vk_marshaling_guest.cpp goldfish_vk_deepcopy_guest.cpp goldfish_vk_handlemap_guest.cpp goldfish_vk_transform_guest.cpp) android_add_library(TARGET vulkan_enc SHARED LICENSE Apache-2.0 SRC AndroidHardwareBuffer.cpp HostVisibleMemoryVirtualization.cpp Resources.cpp Validation.cpp VulkanStreamGuest.cpp VulkanHandleMapping.cpp ResourceTracker.cpp VkEncoder.cpp goldfish_vk_extension_structs_guest.cpp goldfish_vk_marshaling_guest.cpp goldfish_vk_deepcopy_guest.cpp goldfish_vk_handlemap_guest.cpp goldfish_vk_transform_guest.cpp) -target_include_directories(vulkan_enc PRIVATE ${GOLDFISH_DEVICE_ROOT}/android-emu ${GOLDFISH_DEVICE_ROOT}/system/renderControl_enc ${GOLDFISH_DEVICE_ROOT}/shared/GoldfishAddressSpace/include ${GOLDFISH_DEVICE_ROOT}/shared/OpenglCodecCommon ${GOLDFISH_DEVICE_ROOT}/system/vulkan_enc ${GOLDFISH_DEVICE_ROOT}/./host/include/libOpenglRender ${GOLDFISH_DEVICE_ROOT}/./system/include ${GOLDFISH_DEVICE_ROOT}/./../../../external/qemu/android/android-emugl/guest ${GOLDFISH_DEVICE_ROOT}/./../../../external/qemu/android/android-emugl/host/include ${GOLDFISH_DEVICE_ROOT}/./../../../external/qemu/android/android-emugl/host/include/vulkan) +target_include_directories(vulkan_enc PRIVATE ${GOLDFISH_DEVICE_ROOT}/shared/GoldfishAddressSpace/include ${GOLDFISH_DEVICE_ROOT}/android-emu ${GOLDFISH_DEVICE_ROOT}/system/renderControl_enc ${GOLDFISH_DEVICE_ROOT}/shared/OpenglCodecCommon ${GOLDFISH_DEVICE_ROOT}/system/vulkan_enc ${GOLDFISH_DEVICE_ROOT}/./host/include/libOpenglRender ${GOLDFISH_DEVICE_ROOT}/./system/include ${GOLDFISH_DEVICE_ROOT}/./../../../external/qemu/android/android-emugl/guest ${GOLDFISH_DEVICE_ROOT}/./../../../external/qemu/android/android-emugl/host/include ${GOLDFISH_DEVICE_ROOT}/./../../../external/qemu/android/android-emugl/host/include/vulkan) target_compile_definitions(vulkan_enc PRIVATE "-DWITH_GLES2" "-DPLATFORM_SDK_VERSION=29" "-DGOLDFISH_HIDL_GRALLOC" "-DEMULATOR_OPENGL_POST_O=1" "-DHOST_BUILD" "-DANDROID" "-DGL_GLEXT_PROTOTYPES" "-DPAGE_SIZE=4096" "-DGOLDFISH_VULKAN" "-DLOG_TAG=\"goldfish_vulkan\"" "-DVK_ANDROID_native_buffer" "-DVK_GOOGLE_address_space" "-DVK_USE_PLATFORM_ANDROID_KHR" "-DVK_NO_PROTOTYPES" "-D__ANDROID_API__=28") target_compile_options(vulkan_enc PRIVATE "-fvisibility=default" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-Werror" "-fstrict-aliasing") -target_link_libraries(vulkan_enc PRIVATE gui androidemu cutils utils log _renderControl_enc android-emu-shared OpenglCodecCommon_host PRIVATE GoldfishAddressSpace_host)
\ No newline at end of file +target_link_libraries(vulkan_enc PRIVATE gui log android-emu-shared androidemu cutils utils _renderControl_enc OpenglCodecCommon_host PRIVATE GoldfishAddressSpace_host)
\ No newline at end of file |
