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", |
| 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 | 6c7e727 | 2019-08-28 13:37:00 -0700 | [diff] [blame] | 15 | "android-emu/android/base/synchronization/AndroidConditionVariable.h", |
| 16 | "android-emu/android/base/synchronization/AndroidLock.h", |
| 17 | "android-emu/android/base/synchronization/AndroidMessageChannel.h", |
| 18 | "android-emu/android/base/synchronization/AndroidMessageChannel.cpp", |
| 19 | "android-emu/android/base/threads/AndroidFunctorThread.h", |
| 20 | "android-emu/android/base/threads/AndroidThread.h", |
| 21 | "android-emu/android/base/threads/AndroidThreadStore.h", |
| 22 | "android-emu/android/base/threads/AndroidThreadTypes.h", |
Lingfeng Yang | f686106 | 2019-08-21 21:05:31 -0700 | [diff] [blame] | 23 | "android-emu/android/base/threads/AndroidWorkPool.h", |
Lingfeng Yang | 6c7e727 | 2019-08-28 13:37:00 -0700 | [diff] [blame] | 24 | "android-emu/android/base/threads/AndroidFunctorThread.cpp", |
| 25 | "android-emu/android/base/threads/AndroidThreadStore.h", |
| 26 | "android-emu/android/base/threads/AndroidThread_pthread.cpp", |
Lingfeng Yang | f686106 | 2019-08-21 21:05:31 -0700 | [diff] [blame] | 27 | "android-emu/android/base/threads/AndroidWorkPool.cpp", |
Lingfeng Yang | 42ac179 | 2019-02-22 20:13:44 -0800 | [diff] [blame] | 28 | "android-emu/android/base/Tracing.cpp", |
| 29 | "android-emu/android/base/Tracing.h", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 30 | "shared/OpenglCodecCommon/ChecksumCalculator.cpp", |
| 31 | "shared/OpenglCodecCommon/ChecksumCalculator.h", |
| 32 | "shared/OpenglCodecCommon/glUtils.cpp", |
| 33 | "shared/OpenglCodecCommon/glUtils.h", |
| 34 | "shared/OpenglCodecCommon/goldfish_address_space.cpp", |
| 35 | "shared/OpenglCodecCommon/goldfish_address_space.h", |
| 36 | "shared/OpenglCodecCommon/goldfish_dma.cpp", |
| 37 | "shared/OpenglCodecCommon/goldfish_dma.h", |
| 38 | "system/OpenglSystemCommon/HostConnection.cpp", |
| 39 | "system/OpenglSystemCommon/HostConnection.h", |
| 40 | "system/OpenglSystemCommon/ProcessPipe.cpp", |
| 41 | "system/OpenglSystemCommon/ProcessPipe.h", |
| 42 | "system/OpenglSystemCommon/QemuPipeStream.cpp", |
| 43 | "system/OpenglSystemCommon/QemuPipeStream.h", |
| 44 | "system/OpenglSystemCommon/ThreadInfo.cpp", |
| 45 | "system/OpenglSystemCommon/ThreadInfo.h", |
| 46 | "system/renderControl_enc/renderControl_enc.cpp", |
| 47 | "system/renderControl_enc/renderControl_enc.h", |
| 48 | "system/vulkan/func_table.cpp", |
| 49 | "system/vulkan/func_table.h", |
| 50 | "system/vulkan/goldfish_vulkan.cpp", |
| 51 | "system/vulkan_enc/HostVisibleMemoryVirtualization.cpp", |
| 52 | "system/vulkan_enc/HostVisibleMemoryVirtualization.h", |
| 53 | "system/vulkan_enc/ResourceTracker.cpp", |
| 54 | "system/vulkan_enc/ResourceTracker.h", |
| 55 | "system/vulkan_enc/Resources.cpp", |
| 56 | "system/vulkan_enc/Resources.h", |
| 57 | "system/vulkan_enc/Validation.cpp", |
| 58 | "system/vulkan_enc/Validation.h", |
| 59 | "system/vulkan_enc/VkEncoder.cpp", |
| 60 | "system/vulkan_enc/VkEncoder.h", |
| 61 | "system/vulkan_enc/VulkanHandleMapping.cpp", |
| 62 | "system/vulkan_enc/VulkanHandleMapping.h", |
Lingfeng Yang | 42ac179 | 2019-02-22 20:13:44 -0800 | [diff] [blame] | 63 | "system/vulkan_enc/VulkanStreamGuest.cpp", |
| 64 | "system/vulkan_enc/VulkanStreamGuest.h", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 65 | "system/vulkan_enc/goldfish_vk_deepcopy_guest.cpp", |
| 66 | "system/vulkan_enc/goldfish_vk_deepcopy_guest.h", |
| 67 | "system/vulkan_enc/goldfish_vk_extension_structs_guest.cpp", |
| 68 | "system/vulkan_enc/goldfish_vk_extension_structs_guest.h", |
| 69 | "system/vulkan_enc/goldfish_vk_marshaling_guest.cpp", |
| 70 | "system/vulkan_enc/goldfish_vk_marshaling_guest.h", |
| 71 | "system/vulkan_enc/goldfish_vk_transform_guest.cpp", |
| 72 | "system/vulkan_enc/goldfish_vk_transform_guest.h", |
| 73 | ] |
| 74 | |
| 75 | include_dirs = [ |
| 76 | "android-emu", |
| 77 | "host/include/libOpenglRender", |
| 78 | "shared/OpenglCodecCommon", |
| 79 | "system/OpenglSystemCommon", |
| 80 | "system/renderControl_enc", |
| 81 | "system/vulkan_enc", |
| 82 | "system/include", |
| 83 | ] |
| 84 | |
| 85 | defines = [ |
| 86 | "LOG_TAG=\"goldfish_vulkan\"", |
| 87 | "GOLDFISH_VULKAN", |
| 88 | "GOLDFISH_NO_GL", |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 89 | "VK_USE_PLATFORM_FUCHSIA", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 90 | "PLATFORM_SDK_VERSION=1", |
| 91 | "PAGE_SIZE=4096", |
| 92 | ] |
| 93 | |
| 94 | cflags_cc = [ |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 95 | "-Wno-missing-field-initializers", |
David Reveman | aa65ad6 | 2019-05-02 08:23:46 -0400 | [diff] [blame] | 96 | "-Wno-newline-eof", |
David Reveman | 3c7b3ca | 2019-05-01 19:36:26 -0400 | [diff] [blame] | 97 | "-Wno-unused-function", |
| 98 | "-Wno-unused-value", |
| 99 | "-Wno-unused-variable", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 100 | ] |
| 101 | |
David Reveman | 7beff56 | 2019-04-22 16:50:02 +0200 | [diff] [blame] | 102 | ldflags = [ "-static-libstdc++" ] |
| 103 | |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 104 | if (target_os == "fuchsia") { |
David Reveman | 4f45b8c | 2019-04-21 09:10:10 +0200 | [diff] [blame] | 105 | sources -= [ "system/OpenglSystemCommon/QemuPipeStream.cpp" ] |
| 106 | sources += [ |
| 107 | "fuchsia/port.cc", |
| 108 | "system/OpenglSystemCommon/QemuPipeStreamFuchsia.cpp", |
| 109 | ] |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 110 | |
| 111 | include_dirs += [ |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 112 | "fuchsia/include", |
Lingfeng Yang | 6c7e727 | 2019-08-28 13:37:00 -0700 | [diff] [blame] | 113 | "//third_party/Vulkan-Headers/include" |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 114 | ] |
| 115 | |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 116 | libs = [ |
| 117 | "zircon" |
| 118 | ] |
| 119 | |
| 120 | deps = [ |
David Reveman | 0eac780 | 2019-09-09 22:59:39 -0400 | [diff] [blame^] | 121 | "//zircon/system/fidl/fuchsia-hardware-goldfish-address-space", |
| 122 | "//zircon/system/fidl/fuchsia-hardware-goldfish-control", |
| 123 | "//zircon/system/fidl/fuchsia-hardware-goldfish-pipe", |
| 124 | "//zircon/system/fidl/fuchsia-sysmem", |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 125 | "//zircon/public/lib/fdio", |
David Reveman | 5b7c584 | 2019-02-20 01:06:48 -0500 | [diff] [blame] | 126 | "//zircon/public/lib/trace", |
| 127 | ] |
| 128 | |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 129 | defines += [ |
David Reveman | 1b2a779 | 2019-04-08 11:30:05 -0400 | [diff] [blame] | 130 | "QEMU_PIPE_PATH=\"/dev/class/goldfish-pipe/000\"", |
| 131 | "GOLDFISH_ADDRESS_SPACE_DEVICE_NAME=\"/dev/class/goldfish-address-space/000\"", |
David Reveman | 74e99bb | 2019-02-15 18:47:25 -0500 | [diff] [blame] | 132 | ] |
| 133 | } |
| 134 | } |