David Reveman | 893dc10 | 2019-04-22 16:50:02 +0200 | [diff] [blame] | 1 | shared_library("vulkan_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", |
| 5 | "android-emu/android/base/Pool.cpp", |
| 6 | "android-emu/android/base/Pool.h", |
| 7 | "android-emu/android/base/SubAllocator.cpp", |
| 8 | "android-emu/android/base/SubAllocator.h", |
| 9 | "android-emu/android/base/files/MemStream.cpp", |
| 10 | "android-emu/android/base/files/MemStream.h", |
| 11 | "android-emu/android/base/files/Stream.cpp", |
| 12 | "android-emu/android/base/files/Stream.h", |
| 13 | "android-emu/android/base/files/StreamSerializing.cpp", |
| 14 | "android-emu/android/base/files/StreamSerializing.h", |
Lingfeng Yang | 42ac179 | 2019-02-22 20:13:44 -0800 | [diff] [blame] | 15 | "android-emu/android/base/Tracing.cpp", |
| 16 | "android-emu/android/base/Tracing.h", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 17 | "shared/OpenglCodecCommon/ChecksumCalculator.cpp", |
| 18 | "shared/OpenglCodecCommon/ChecksumCalculator.h", |
| 19 | "shared/OpenglCodecCommon/glUtils.cpp", |
| 20 | "shared/OpenglCodecCommon/glUtils.h", |
| 21 | "shared/OpenglCodecCommon/goldfish_address_space.cpp", |
| 22 | "shared/OpenglCodecCommon/goldfish_address_space.h", |
| 23 | "shared/OpenglCodecCommon/goldfish_dma.cpp", |
| 24 | "shared/OpenglCodecCommon/goldfish_dma.h", |
| 25 | "system/OpenglSystemCommon/HostConnection.cpp", |
| 26 | "system/OpenglSystemCommon/HostConnection.h", |
| 27 | "system/OpenglSystemCommon/ProcessPipe.cpp", |
| 28 | "system/OpenglSystemCommon/ProcessPipe.h", |
| 29 | "system/OpenglSystemCommon/QemuPipeStream.cpp", |
| 30 | "system/OpenglSystemCommon/QemuPipeStream.h", |
| 31 | "system/OpenglSystemCommon/ThreadInfo.cpp", |
| 32 | "system/OpenglSystemCommon/ThreadInfo.h", |
| 33 | "system/renderControl_enc/renderControl_enc.cpp", |
| 34 | "system/renderControl_enc/renderControl_enc.h", |
| 35 | "system/vulkan/func_table.cpp", |
| 36 | "system/vulkan/func_table.h", |
| 37 | "system/vulkan/goldfish_vulkan.cpp", |
| 38 | "system/vulkan_enc/HostVisibleMemoryVirtualization.cpp", |
| 39 | "system/vulkan_enc/HostVisibleMemoryVirtualization.h", |
| 40 | "system/vulkan_enc/ResourceTracker.cpp", |
| 41 | "system/vulkan_enc/ResourceTracker.h", |
| 42 | "system/vulkan_enc/Resources.cpp", |
| 43 | "system/vulkan_enc/Resources.h", |
| 44 | "system/vulkan_enc/Validation.cpp", |
| 45 | "system/vulkan_enc/Validation.h", |
| 46 | "system/vulkan_enc/VkEncoder.cpp", |
| 47 | "system/vulkan_enc/VkEncoder.h", |
| 48 | "system/vulkan_enc/VulkanHandleMapping.cpp", |
| 49 | "system/vulkan_enc/VulkanHandleMapping.h", |
Lingfeng Yang | 42ac179 | 2019-02-22 20:13:44 -0800 | [diff] [blame] | 50 | "system/vulkan_enc/VulkanStreamGuest.cpp", |
| 51 | "system/vulkan_enc/VulkanStreamGuest.h", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 52 | "system/vulkan_enc/goldfish_vk_deepcopy_guest.cpp", |
| 53 | "system/vulkan_enc/goldfish_vk_deepcopy_guest.h", |
| 54 | "system/vulkan_enc/goldfish_vk_extension_structs_guest.cpp", |
| 55 | "system/vulkan_enc/goldfish_vk_extension_structs_guest.h", |
| 56 | "system/vulkan_enc/goldfish_vk_marshaling_guest.cpp", |
| 57 | "system/vulkan_enc/goldfish_vk_marshaling_guest.h", |
| 58 | "system/vulkan_enc/goldfish_vk_transform_guest.cpp", |
| 59 | "system/vulkan_enc/goldfish_vk_transform_guest.h", |
| 60 | ] |
| 61 | |
| 62 | include_dirs = [ |
| 63 | "android-emu", |
| 64 | "host/include/libOpenglRender", |
| 65 | "shared/OpenglCodecCommon", |
| 66 | "system/OpenglSystemCommon", |
| 67 | "system/renderControl_enc", |
| 68 | "system/vulkan_enc", |
| 69 | "system/include", |
| 70 | ] |
| 71 | |
| 72 | defines = [ |
| 73 | "LOG_TAG=\"goldfish_vulkan\"", |
| 74 | "GOLDFISH_VULKAN", |
| 75 | "GOLDFISH_NO_GL", |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 76 | "VK_USE_PLATFORM_FUCHSIA", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 77 | "PLATFORM_SDK_VERSION=1", |
| 78 | "PAGE_SIZE=4096", |
| 79 | ] |
| 80 | |
| 81 | cflags_cc = [ |
| 82 | "-Wno-unused-function", |
| 83 | "-Wno-unused-variable", |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 84 | "-Wno-missing-field-initializers", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 85 | ] |
| 86 | |
David Reveman | 893dc10 | 2019-04-22 16:50:02 +0200 | [diff] [blame] | 87 | ldflags = [ "-static-libstdc++" ] |
| 88 | |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 89 | if (target_os == "fuchsia") { |
David Reveman | f1cf31b | 2019-04-21 09:10:10 +0200 | [diff] [blame] | 90 | sources -= [ "system/OpenglSystemCommon/QemuPipeStream.cpp" ] |
| 91 | sources += [ |
| 92 | "fuchsia/port.cc", |
| 93 | "system/OpenglSystemCommon/QemuPipeStreamFuchsia.cpp", |
| 94 | ] |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 95 | |
| 96 | include_dirs += [ |
| 97 | "//third_party/vulkan_loader_and_validation_layers/include", |
| 98 | "fuchsia/include", |
| 99 | ] |
| 100 | |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 101 | libs = [ |
| 102 | "zircon" |
| 103 | ] |
| 104 | |
| 105 | deps = [ |
David Reveman | 397f568 | 2019-04-08 11:30:05 -0400 | [diff] [blame] | 106 | "//zircon/public/fidl/fuchsia-hardware-goldfish-address-space:fuchsia-hardware-goldfish-address-space_c", |
David Reveman | 71ebe49 | 2019-04-24 12:13:36 -0400 | [diff] [blame] | 107 | "//zircon/public/fidl/fuchsia-hardware-goldfish-control:fuchsia-hardware-goldfish-control_c", |
David Reveman | f1cf31b | 2019-04-21 09:10:10 +0200 | [diff] [blame] | 108 | "//zircon/public/fidl/fuchsia-hardware-goldfish-pipe:fuchsia-hardware-goldfish-pipe_c", |
David Reveman | e10aae2 | 2019-03-17 15:55:45 -0400 | [diff] [blame] | 109 | "//zircon/public/fidl/fuchsia-sysmem", |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 110 | "//zircon/public/lib/fdio", |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 111 | "//zircon/public/lib/trace", |
| 112 | ] |
| 113 | |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 114 | defines += [ |
David Reveman | 397f568 | 2019-04-08 11:30:05 -0400 | [diff] [blame] | 115 | "QEMU_PIPE_PATH=\"/dev/class/goldfish-pipe/000\"", |
| 116 | "GOLDFISH_ADDRESS_SPACE_DEVICE_NAME=\"/dev/class/goldfish-address-space/000\"", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 117 | ] |
| 118 | } |
| 119 | } |