blob: 2f333a0594a7c69ef46b90a522f5e610bd2b9e71 [file] [log] [blame]
David Revemanaa65ad62019-05-02 08:23:46 -04001cc_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 Reveman630129e2019-05-03 01:18:32 -040049 "external/vulkan-headers/include",
David Revemanaa65ad62019-05-02 08:23:46 -040050 ],
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 Reveman9d432182019-05-05 10:42:43 -040066 // TODO(reveman): Enable when not breaking the build.
67 //enabled: true,
David Revemanaa65ad62019-05-02 08:23:46 -040068
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 Reveman630129e2019-05-03 01:18:32 -040082 stl: "libc++_static",
83
David Revemanaa65ad62019-05-02 08:23:46 -040084 local_include_dirs: [
85 "fuchsia/include",
86 ],
87
David Reveman630129e2019-05-03 01:18:32 -040088 static_libs: [
89 "libasync",
David Revemanaa65ad62019-05-02 08:23:46 -040090 "libfidl",
David Reveman630129e2019-05-03 01:18:32 -040091 "libfidl_base",
David Revemanaa65ad62019-05-02 08:23:46 -040092 "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 Reveman630129e2019-05-03 01:18:32 -0400102 shared_libs: [
103 "libasync-default",
104 "libfdio",
105 ],
106
David Revemanaa65ad62019-05-02 08:23:46 -0400107 required: [
108 "libzircon",
109 ],
110 },
111 },
112}