David Reveman | aa65ad6 | 2019-05-02 08:23:46 -0400 | [diff] [blame] | 1 | cc_library_shared { |
| 2 | name: "libvulkan_goldfish", |
| 3 | |
| 4 | srcs: [ |
| 5 | "android-emu/android/base/AlignedBuf.cpp", |
| 6 | "android-emu/android/base/Pool.cpp", |
| 7 | "android-emu/android/base/SubAllocator.cpp", |
| 8 | "android-emu/android/base/files/MemStream.cpp", |
| 9 | "android-emu/android/base/files/Stream.cpp", |
| 10 | "android-emu/android/base/files/StreamSerializing.cpp", |
| 11 | "android-emu/android/base/Tracing.cpp", |
| 12 | "shared/OpenglCodecCommon/ChecksumCalculator.cpp", |
| 13 | "shared/OpenglCodecCommon/glUtils.cpp", |
| 14 | "shared/OpenglCodecCommon/goldfish_address_space.cpp", |
| 15 | "shared/OpenglCodecCommon/goldfish_dma.cpp", |
| 16 | "system/OpenglSystemCommon/HostConnection.cpp", |
| 17 | "system/OpenglSystemCommon/ProcessPipe.cpp", |
| 18 | "system/OpenglSystemCommon/ThreadInfo.cpp", |
| 19 | "system/renderControl_enc/renderControl_enc.cpp", |
| 20 | "system/vulkan/func_table.cpp", |
| 21 | "system/vulkan/goldfish_vulkan.cpp", |
| 22 | "system/vulkan_enc/HostVisibleMemoryVirtualization.cpp", |
| 23 | "system/vulkan_enc/ResourceTracker.cpp", |
| 24 | "system/vulkan_enc/Resources.cpp", |
| 25 | "system/vulkan_enc/Validation.cpp", |
| 26 | "system/vulkan_enc/VkEncoder.cpp", |
| 27 | "system/vulkan_enc/VulkanHandleMapping.cpp", |
| 28 | "system/vulkan_enc/VulkanStreamGuest.cpp", |
| 29 | "system/vulkan_enc/goldfish_vk_deepcopy_guest.cpp", |
| 30 | "system/vulkan_enc/goldfish_vk_extension_structs_guest.cpp", |
| 31 | "system/vulkan_enc/goldfish_vk_marshaling_guest.cpp", |
| 32 | "system/vulkan_enc/goldfish_vk_transform_guest.cpp", |
| 33 | ], |
| 34 | |
| 35 | cflags: [ |
| 36 | "-DLOG_TAG=\"goldfish_vulkan\"", |
| 37 | "-DGOLDFISH_VULKAN", |
| 38 | "-DGOLDFISH_NO_GL", |
| 39 | "-DPAGE_SIZE=4096", |
| 40 | "-Wno-unused-parameter", |
| 41 | "-Wno-missing-field-initializers", |
| 42 | "-Wno-newline-eof", |
| 43 | "-Wno-unused-function", |
| 44 | "-Wno-unused-value", |
| 45 | "-Wno-unused-variable", |
| 46 | ], |
| 47 | |
| 48 | include_dirs: [ |
David Reveman | 630129e | 2019-05-03 01:18:32 -0400 | [diff] [blame] | 49 | "external/vulkan-headers/include", |
David Reveman | aa65ad6 | 2019-05-02 08:23:46 -0400 | [diff] [blame] | 50 | ], |
| 51 | |
| 52 | local_include_dirs: [ |
| 53 | "android-emu", |
| 54 | "host/include/libOpenglRender", |
| 55 | "shared/OpenglCodecCommon", |
| 56 | "system/OpenglSystemCommon", |
| 57 | "system/renderControl_enc", |
| 58 | "system/vulkan_enc", |
| 59 | "system/include", |
| 60 | ], |
| 61 | |
| 62 | // Only enable on fuchsia. |
| 63 | enabled: false, |
| 64 | target: { |
| 65 | fuchsia: { |
David Reveman | 9d43218 | 2019-05-05 10:42:43 -0400 | [diff] [blame^] | 66 | // TODO(reveman): Enable when not breaking the build. |
| 67 | //enabled: true, |
David Reveman | aa65ad6 | 2019-05-02 08:23:46 -0400 | [diff] [blame] | 68 | |
| 69 | srcs: [ |
| 70 | "fuchsia/port.cc", |
| 71 | "system/OpenglSystemCommon/QemuPipeStreamFuchsia.cpp", |
| 72 | ], |
| 73 | |
| 74 | cflags: [ |
| 75 | "-DVK_USE_PLATFORM_FUCHSIA", |
| 76 | "-DPLATFORM_SDK_VERSION=1", |
| 77 | "-DFUCHSIA_NO_TRACE", |
| 78 | "-DQEMU_PIPE_PATH=\"/dev/class/goldfish-pipe/000\"", |
| 79 | "-DGOLDFISH_ADDRESS_SPACE_DEVICE_NAME=\"/dev/class/goldfish-address-space/000\"", |
| 80 | ], |
| 81 | |
David Reveman | 630129e | 2019-05-03 01:18:32 -0400 | [diff] [blame] | 82 | stl: "libc++_static", |
| 83 | |
David Reveman | aa65ad6 | 2019-05-02 08:23:46 -0400 | [diff] [blame] | 84 | local_include_dirs: [ |
| 85 | "fuchsia/include", |
| 86 | ], |
| 87 | |
David Reveman | 630129e | 2019-05-03 01:18:32 -0400 | [diff] [blame] | 88 | static_libs: [ |
| 89 | "libasync", |
David Reveman | aa65ad6 | 2019-05-02 08:23:46 -0400 | [diff] [blame] | 90 | "libfidl", |
David Reveman | 630129e | 2019-05-03 01:18:32 -0400 | [diff] [blame] | 91 | "libfidl_base", |
David Reveman | aa65ad6 | 2019-05-02 08:23:46 -0400 | [diff] [blame] | 92 | "libfidl_cpp", |
| 93 | "libfidl_cpp_base", |
| 94 | "libfidl_cpp_sync", |
| 95 | "libfuchsia.hardware.goldfish.address.space", |
| 96 | "libfuchsia.hardware.goldfish.control", |
| 97 | "libfuchsia.hardware.goldfish.pipe", |
| 98 | "libfuchsia.sysmem", |
| 99 | "libzx", |
| 100 | ], |
| 101 | |
David Reveman | 630129e | 2019-05-03 01:18:32 -0400 | [diff] [blame] | 102 | shared_libs: [ |
| 103 | "libasync-default", |
| 104 | "libfdio", |
| 105 | ], |
| 106 | |
David Reveman | aa65ad6 | 2019-05-02 08:23:46 -0400 | [diff] [blame] | 107 | required: [ |
| 108 | "libzircon", |
| 109 | ], |
| 110 | }, |
| 111 | }, |
| 112 | } |