David Reveman | 630129e | 2019-05-03 01:18:32 -0400 | [diff] [blame] | 1 | shared_library("libvulkan_goldfish") { |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 2 | sources = [ |
| 3 | "android-emu/android/base/AlignedBuf.cpp", |
| 4 | "android-emu/android/base/AlignedBuf.h", |
Lingfeng Yang | d5be14d | 2019-10-18 06:14:18 -0700 | [diff] [blame] | 5 | "android-emu/android/base/AndroidSubAllocator.cpp", |
| 6 | "android-emu/android/base/AndroidSubAllocator.h", |
Yilong Li | 8c54b9c | 2020-07-17 21:10:34 -0700 | [diff] [blame] | 7 | "android-emu/android/base/Pool.cpp", |
| 8 | "android-emu/android/base/Pool.h", |
| 9 | "android-emu/android/base/Tracing.cpp", |
| 10 | "android-emu/android/base/Tracing.h", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 11 | "android-emu/android/base/files/MemStream.cpp", |
| 12 | "android-emu/android/base/files/MemStream.h", |
| 13 | "android-emu/android/base/files/Stream.cpp", |
| 14 | "android-emu/android/base/files/Stream.h", |
| 15 | "android-emu/android/base/files/StreamSerializing.cpp", |
| 16 | "android-emu/android/base/files/StreamSerializing.h", |
Yilong Li | 8c54b9c | 2020-07-17 21:10:34 -0700 | [diff] [blame] | 17 | "android-emu/android/base/ring_buffer.c", |
Lingfeng Yang | 6c7e727 | 2019-08-28 13:37:00 -0700 | [diff] [blame] | 18 | "android-emu/android/base/synchronization/AndroidConditionVariable.h", |
| 19 | "android-emu/android/base/synchronization/AndroidLock.h", |
Lingfeng Yang | 6c7e727 | 2019-08-28 13:37:00 -0700 | [diff] [blame] | 20 | "android-emu/android/base/synchronization/AndroidMessageChannel.cpp", |
Yilong Li | 8c54b9c | 2020-07-17 21:10:34 -0700 | [diff] [blame] | 21 | "android-emu/android/base/synchronization/AndroidMessageChannel.h", |
| 22 | "android-emu/android/base/threads/AndroidFunctorThread.cpp", |
Lingfeng Yang | 6c7e727 | 2019-08-28 13:37:00 -0700 | [diff] [blame] | 23 | "android-emu/android/base/threads/AndroidFunctorThread.h", |
| 24 | "android-emu/android/base/threads/AndroidThread.h", |
| 25 | "android-emu/android/base/threads/AndroidThreadStore.h", |
Lingfeng Yang | 6c7e727 | 2019-08-28 13:37:00 -0700 | [diff] [blame] | 26 | "android-emu/android/base/threads/AndroidThreadStore.h", |
Yilong Li | 8c54b9c | 2020-07-17 21:10:34 -0700 | [diff] [blame] | 27 | "android-emu/android/base/threads/AndroidThreadTypes.h", |
Lingfeng Yang | 6c7e727 | 2019-08-28 13:37:00 -0700 | [diff] [blame] | 28 | "android-emu/android/base/threads/AndroidThread_pthread.cpp", |
Lingfeng Yang | f686106 | 2019-08-21 21:05:31 -0700 | [diff] [blame] | 29 | "android-emu/android/base/threads/AndroidWorkPool.cpp", |
Yilong Li | 8c54b9c | 2020-07-17 21:10:34 -0700 | [diff] [blame] | 30 | "android-emu/android/base/threads/AndroidWorkPool.h", |
Roman Kiryanov | 1ef59e4 | 2020-05-11 15:50:11 -0700 | [diff] [blame] | 31 | "shared/GoldfishAddressSpace/goldfish_address_space.cpp", |
| 32 | "shared/GoldfishAddressSpace/goldfish_address_space.h", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 33 | "shared/OpenglCodecCommon/ChecksumCalculator.cpp", |
| 34 | "shared/OpenglCodecCommon/ChecksumCalculator.h", |
| 35 | "shared/OpenglCodecCommon/glUtils.cpp", |
| 36 | "shared/OpenglCodecCommon/glUtils.h", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 37 | "shared/OpenglCodecCommon/goldfish_dma.cpp", |
| 38 | "shared/OpenglCodecCommon/goldfish_dma.h", |
Yilong Li | 5ef2a50 | 2020-05-21 23:51:34 -0700 | [diff] [blame] | 39 | "shared/gralloc_cb/include/gralloc_cb_bp.h", |
Yilong Li | 5ef2a50 | 2020-05-21 23:51:34 -0700 | [diff] [blame] | 40 | "shared/qemupipe/include-types/qemu_pipe_types_bp.h", |
Yilong Li | 8c54b9c | 2020-07-17 21:10:34 -0700 | [diff] [blame] | 41 | "shared/qemupipe/include/qemu_pipe_bp.h", |
Yilong Li | 5ef2a50 | 2020-05-21 23:51:34 -0700 | [diff] [blame] | 42 | "shared/qemupipe/qemu_pipe_common.cpp", |
| 43 | "shared/qemupipe/qemu_pipe_guest.cpp", |
Lingfeng Yang | 5b3a0b7 | 2019-09-25 18:20:35 -0700 | [diff] [blame] | 44 | "system/OpenglSystemCommon/AddressSpaceStream.cpp", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 45 | "system/OpenglSystemCommon/HostConnection.cpp", |
| 46 | "system/OpenglSystemCommon/HostConnection.h", |
| 47 | "system/OpenglSystemCommon/ProcessPipe.cpp", |
| 48 | "system/OpenglSystemCommon/ProcessPipe.h", |
| 49 | "system/OpenglSystemCommon/QemuPipeStream.cpp", |
| 50 | "system/OpenglSystemCommon/QemuPipeStream.h", |
| 51 | "system/OpenglSystemCommon/ThreadInfo.cpp", |
| 52 | "system/OpenglSystemCommon/ThreadInfo.h", |
| 53 | "system/renderControl_enc/renderControl_enc.cpp", |
| 54 | "system/renderControl_enc/renderControl_enc.h", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 55 | "system/vulkan/goldfish_vulkan.cpp", |
| 56 | "system/vulkan_enc/HostVisibleMemoryVirtualization.cpp", |
| 57 | "system/vulkan_enc/HostVisibleMemoryVirtualization.h", |
| 58 | "system/vulkan_enc/ResourceTracker.cpp", |
| 59 | "system/vulkan_enc/ResourceTracker.h", |
| 60 | "system/vulkan_enc/Resources.cpp", |
| 61 | "system/vulkan_enc/Resources.h", |
| 62 | "system/vulkan_enc/Validation.cpp", |
| 63 | "system/vulkan_enc/Validation.h", |
| 64 | "system/vulkan_enc/VkEncoder.cpp", |
| 65 | "system/vulkan_enc/VkEncoder.h", |
| 66 | "system/vulkan_enc/VulkanHandleMapping.cpp", |
| 67 | "system/vulkan_enc/VulkanHandleMapping.h", |
Lingfeng Yang | 42ac179 | 2019-02-22 20:13:44 -0800 | [diff] [blame] | 68 | "system/vulkan_enc/VulkanStreamGuest.cpp", |
| 69 | "system/vulkan_enc/VulkanStreamGuest.h", |
Yilong Li | ce2233f | 2021-01-25 23:08:34 +0000 | [diff] [blame^] | 70 | "system/vulkan_enc/func_table.cpp", |
| 71 | "system/vulkan_enc/func_table.h", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 72 | "system/vulkan_enc/goldfish_vk_deepcopy_guest.cpp", |
| 73 | "system/vulkan_enc/goldfish_vk_deepcopy_guest.h", |
| 74 | "system/vulkan_enc/goldfish_vk_extension_structs_guest.cpp", |
| 75 | "system/vulkan_enc/goldfish_vk_extension_structs_guest.h", |
| 76 | "system/vulkan_enc/goldfish_vk_marshaling_guest.cpp", |
| 77 | "system/vulkan_enc/goldfish_vk_marshaling_guest.h", |
| 78 | "system/vulkan_enc/goldfish_vk_transform_guest.cpp", |
| 79 | "system/vulkan_enc/goldfish_vk_transform_guest.h", |
| 80 | ] |
| 81 | |
| 82 | include_dirs = [ |
| 83 | "android-emu", |
| 84 | "host/include/libOpenglRender", |
Roman Kiryanov | 1ef59e4 | 2020-05-11 15:50:11 -0700 | [diff] [blame] | 85 | "shared/GoldfishAddressSpace/include", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 86 | "shared/OpenglCodecCommon", |
Yilong Li | 5ef2a50 | 2020-05-21 23:51:34 -0700 | [diff] [blame] | 87 | "shared/gralloc_cb/include", |
| 88 | "shared/qemupipe/include", |
| 89 | "shared/qemupipe/include-types", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 90 | "system/OpenglSystemCommon", |
| 91 | "system/renderControl_enc", |
| 92 | "system/vulkan_enc", |
| 93 | "system/include", |
| 94 | ] |
| 95 | |
| 96 | defines = [ |
| 97 | "LOG_TAG=\"goldfish_vulkan\"", |
Lingfeng Yang | 6f9871b | 2020-08-17 15:46:53 -0700 | [diff] [blame] | 98 | "GFXSTREAM", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 99 | "GOLDFISH_NO_GL", |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 100 | "VK_USE_PLATFORM_FUCHSIA", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 101 | "PLATFORM_SDK_VERSION=1", |
| 102 | "PAGE_SIZE=4096", |
| 103 | ] |
| 104 | |
Yilong Li | ced3b8a | 2019-10-17 11:47:05 -0700 | [diff] [blame] | 105 | cflags_c = [ |
| 106 | "-Wno-missing-field-initializers", |
| 107 | "-Wno-newline-eof", |
| 108 | "-Wno-unused-function", |
| 109 | "-Wno-unused-value", |
| 110 | "-Wno-unused-variable", |
| 111 | ] |
| 112 | |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 113 | cflags_cc = [ |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 114 | "-Wno-missing-field-initializers", |
David Reveman | aa65ad6 | 2019-05-02 08:23:46 -0400 | [diff] [blame] | 115 | "-Wno-newline-eof", |
David Reveman | 3c7b3ca | 2019-05-01 19:36:26 -0400 | [diff] [blame] | 116 | "-Wno-unused-function", |
| 117 | "-Wno-unused-value", |
| 118 | "-Wno-unused-variable", |
Shai Barack | 5cb1b09 | 2020-09-14 05:06:11 +0000 | [diff] [blame] | 119 | "-Wno-conversion", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 120 | ] |
| 121 | |
David Reveman | 7beff56 | 2019-04-22 16:50:02 +0200 | [diff] [blame] | 122 | ldflags = [ "-static-libstdc++" ] |
| 123 | |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 124 | if (target_os == "fuchsia") { |
Yilong Li | 41238b0 | 2020-10-31 13:41:52 -0700 | [diff] [blame] | 125 | sources -= [ |
Yilong Li | 1d6ca34 | 2020-11-02 13:13:31 -0800 | [diff] [blame] | 126 | "shared/OpenglCodecCommon/goldfish_dma.cpp", |
| 127 | "shared/OpenglCodecCommon/goldfish_dma.h", |
Yilong Li | 41238b0 | 2020-10-31 13:41:52 -0700 | [diff] [blame] | 128 | "shared/qemupipe/qemu_pipe_common.cpp", |
| 129 | "shared/qemupipe/qemu_pipe_guest.cpp", |
| 130 | "system/OpenglSystemCommon/QemuPipeStream.cpp" |
| 131 | ] |
David Reveman | 4f45b8c | 2019-04-21 09:10:10 +0200 | [diff] [blame] | 132 | sources += [ |
Craig Stout | 3d2098f | 2019-11-25 15:36:43 -0800 | [diff] [blame] | 133 | "fuchsia/fuchsia_stdio.cc", |
David Reveman | 4f45b8c | 2019-04-21 09:10:10 +0200 | [diff] [blame] | 134 | "fuchsia/port.cc", |
John Bauman | 8153a44 | 2019-10-16 15:41:17 -0700 | [diff] [blame] | 135 | "fuchsia/service_connector.cc", |
David Reveman | 4f45b8c | 2019-04-21 09:10:10 +0200 | [diff] [blame] | 136 | "system/OpenglSystemCommon/QemuPipeStreamFuchsia.cpp", |
Yilong Li | 5a3e369 | 2020-12-01 10:23:29 -0800 | [diff] [blame] | 137 | "system/OpenglSystemCommon/TraceProviderFuchsia.cpp", |
| 138 | "system/OpenglSystemCommon/TraceProviderFuchsia.h", |
David Reveman | 4f45b8c | 2019-04-21 09:10:10 +0200 | [diff] [blame] | 139 | ] |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 140 | |
| 141 | include_dirs += [ |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 142 | "fuchsia/include", |
Yilong Li | 8c54b9c | 2020-07-17 21:10:34 -0700 | [diff] [blame] | 143 | "//third_party/Vulkan-Headers/include", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 144 | ] |
| 145 | |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 146 | deps = [ |
Yilong Li | 6dc9b5b | 2020-07-17 21:05:22 -0700 | [diff] [blame] | 147 | "//sdk/fidl/fuchsia.hardware.goldfish:fuchsia.hardware.goldfish_llcpp", |
Yilong Li | 4ccb872 | 2020-05-20 19:28:06 -0700 | [diff] [blame] | 148 | "//sdk/fidl/fuchsia.logger:fuchsia.logger_llcpp", |
Yilong Li | 6dc9b5b | 2020-07-17 21:05:22 -0700 | [diff] [blame] | 149 | "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_llcpp", |
Yilong Li | 5a3e369 | 2020-12-01 10:23:29 -0800 | [diff] [blame] | 150 | "//sdk/lib/fdio", |
David 'Digit' Turner | 8ceea7c | 2020-10-06 14:46:27 +0200 | [diff] [blame] | 151 | "//src/zircon/lib/zircon", |
Yilong Li | 5a3e369 | 2020-12-01 10:23:29 -0800 | [diff] [blame] | 152 | "//zircon/public/lib/async-cpp", |
John Bauman | 8153a44 | 2019-10-16 15:41:17 -0700 | [diff] [blame] | 153 | "//zircon/public/lib/zx", |
Yilong Li | 5a3e369 | 2020-12-01 10:23:29 -0800 | [diff] [blame] | 154 | "//zircon/system/ulib/async-default", |
| 155 | "//zircon/system/ulib/async-loop:async-loop-cpp", |
Yilong Li | 952139b | 2020-05-21 23:53:46 -0700 | [diff] [blame] | 156 | "//zircon/system/ulib/syslog:syslog-static", |
Yilong Li | 4ccb872 | 2020-05-20 19:28:06 -0700 | [diff] [blame] | 157 | "//zircon/system/ulib/trace:trace-with-static-engine", |
Yilong Li | 5a3e369 | 2020-12-01 10:23:29 -0800 | [diff] [blame] | 158 | "//zircon/system/ulib/trace-provider:trace-provider-with-static-engine", |
Yilong Li | 8ce39b8 | 2020-06-01 12:14:25 -0700 | [diff] [blame] | 159 | "//zircon/system/ulib/zxio", |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 160 | ] |
| 161 | |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 162 | defines += [ |
David Reveman | 1b2a779 | 2019-04-08 11:30:05 -0400 | [diff] [blame] | 163 | "QEMU_PIPE_PATH=\"/dev/class/goldfish-pipe/000\"", |
| 164 | "GOLDFISH_ADDRESS_SPACE_DEVICE_NAME=\"/dev/class/goldfish-address-space/000\"", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 165 | ] |
| 166 | } |
| 167 | } |