chore: make yuzu REUSE compliant
[REUSE] is a specification that aims at making file copyright
information consistent, so that it can be both human and machine
readable. It basically requires that all files have a header containing
copyright and licensing information. When this isn't possible, like
when dealing with binary assets, generated files or embedded third-party
dependencies, it is permitted to insert copyright information in the
`.reuse/dep5` file.
Oh, and it also requires that all the licenses used in the project are
present in the `LICENSES` folder, that's why the diff is so huge.
This can be done automatically with `reuse download --all`.
The `reuse` tool also contains a handy subcommand that analyzes the
project and tells whether or not the project is (still) compliant,
`reuse lint`.
Following REUSE has a few advantages over the current approach:
- Copyright information is easy to access for users / downstream
- Files like `dist/license.md` do not need to exist anymore, as
`.reuse/dep5` is used instead
- `reuse lint` makes it easy to ensure that copyright information of
files like binary assets / images is always accurate and up to date
To add copyright information of files that didn't have it I looked up
who committed what and when, for each file. As yuzu contributors do not
have to sign a CLA or similar I couldn't assume that copyright ownership
was of the "yuzu Emulator Project", so I used the name and/or email of
the commit author instead.
[REUSE]: https://reuse.software
Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
2022-05-15 00:06:02 +00:00
|
|
|
# SPDX-FileCopyrightText: 2018 yuzu Emulator Project
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2020-08-24 00:28:15 +00:00
|
|
|
add_subdirectory(host_shaders)
|
|
|
|
|
2021-08-04 03:43:11 +00:00
|
|
|
if(LIBVA_FOUND)
|
2022-01-30 09:31:13 +00:00
|
|
|
set_source_files_properties(host1x/codecs/codec.cpp
|
2021-08-04 03:43:11 +00:00
|
|
|
PROPERTIES COMPILE_DEFINITIONS LIBVA_FOUND=1)
|
2021-12-03 05:35:30 +00:00
|
|
|
list(APPEND FFmpeg_LIBRARIES ${LIBVA_LIBRARIES})
|
2021-08-04 03:43:11 +00:00
|
|
|
endif()
|
|
|
|
|
2018-01-18 00:37:34 +00:00
|
|
|
add_library(video_core STATIC
|
2020-12-30 21:37:31 +00:00
|
|
|
buffer_cache/buffer_base.h
|
2022-11-19 23:09:56 +00:00
|
|
|
buffer_cache/buffer_cache_base.h
|
2021-01-16 23:48:58 +00:00
|
|
|
buffer_cache/buffer_cache.cpp
|
2019-07-19 14:50:40 +00:00
|
|
|
buffer_cache/buffer_cache.h
|
2022-11-19 23:09:56 +00:00
|
|
|
buffer_cache/memory_tracker_base.h
|
|
|
|
buffer_cache/word_manager.h
|
2022-11-20 02:07:14 +00:00
|
|
|
cache_types.h
|
2020-10-27 03:07:36 +00:00
|
|
|
cdma_pusher.cpp
|
|
|
|
cdma_pusher.h
|
2020-06-26 22:22:29 +00:00
|
|
|
compatible_formats.cpp
|
|
|
|
compatible_formats.h
|
2021-11-05 14:52:31 +00:00
|
|
|
control/channel_state.cpp
|
|
|
|
control/channel_state.h
|
|
|
|
control/channel_state_cache.cpp
|
|
|
|
control/channel_state_cache.h
|
|
|
|
control/scheduler.cpp
|
|
|
|
control/scheduler.h
|
2020-12-30 05:06:22 +00:00
|
|
|
delayed_destruction_ring.h
|
2020-02-21 04:56:00 +00:00
|
|
|
dirty_flags.cpp
|
2019-12-27 01:14:10 +00:00
|
|
|
dirty_flags.h
|
2018-11-24 04:20:56 +00:00
|
|
|
dma_pusher.cpp
|
|
|
|
dma_pusher.h
|
2022-11-05 21:26:38 +00:00
|
|
|
engines/sw_blitter/blitter.cpp
|
|
|
|
engines/sw_blitter/blitter.h
|
|
|
|
engines/sw_blitter/converter.cpp
|
|
|
|
engines/sw_blitter/converter.h
|
2019-05-31 20:33:21 +00:00
|
|
|
engines/const_buffer_info.h
|
2022-12-06 05:45:26 +00:00
|
|
|
engines/draw_manager.cpp
|
|
|
|
engines/draw_manager.h
|
2020-04-28 17:53:47 +00:00
|
|
|
engines/engine_interface.h
|
2019-04-22 22:50:56 +00:00
|
|
|
engines/engine_upload.cpp
|
|
|
|
engines/engine_upload.h
|
2018-02-12 02:34:20 +00:00
|
|
|
engines/fermi_2d.cpp
|
|
|
|
engines/fermi_2d.h
|
2019-01-22 23:49:31 +00:00
|
|
|
engines/kepler_compute.cpp
|
|
|
|
engines/kepler_compute.h
|
2018-09-08 20:58:20 +00:00
|
|
|
engines/kepler_memory.cpp
|
|
|
|
engines/kepler_memory.h
|
2018-02-12 02:34:20 +00:00
|
|
|
engines/maxwell_3d.cpp
|
|
|
|
engines/maxwell_3d.h
|
2018-06-10 22:02:33 +00:00
|
|
|
engines/maxwell_dma.cpp
|
|
|
|
engines/maxwell_dma.h
|
2021-11-05 14:52:31 +00:00
|
|
|
engines/puller.cpp
|
|
|
|
engines/puller.h
|
2020-12-12 06:26:14 +00:00
|
|
|
framebuffer_config.h
|
2023-01-01 18:22:46 +00:00
|
|
|
fsr.cpp
|
|
|
|
fsr.h
|
2022-01-30 09:31:13 +00:00
|
|
|
host1x/codecs/codec.cpp
|
|
|
|
host1x/codecs/codec.h
|
|
|
|
host1x/codecs/h264.cpp
|
|
|
|
host1x/codecs/h264.h
|
|
|
|
host1x/codecs/vp8.cpp
|
|
|
|
host1x/codecs/vp8.h
|
|
|
|
host1x/codecs/vp9.cpp
|
|
|
|
host1x/codecs/vp9.h
|
|
|
|
host1x/codecs/vp9_types.h
|
|
|
|
host1x/control.cpp
|
|
|
|
host1x/control.h
|
2022-01-30 21:26:01 +00:00
|
|
|
host1x/host1x.cpp
|
|
|
|
host1x/host1x.h
|
2022-01-30 09:31:13 +00:00
|
|
|
host1x/nvdec.cpp
|
|
|
|
host1x/nvdec.h
|
|
|
|
host1x/nvdec_common.h
|
|
|
|
host1x/sync_manager.cpp
|
|
|
|
host1x/sync_manager.h
|
|
|
|
host1x/syncpoint_manager.cpp
|
|
|
|
host1x/syncpoint_manager.h
|
|
|
|
host1x/vic.cpp
|
|
|
|
host1x/vic.h
|
2020-05-29 04:53:27 +00:00
|
|
|
macro/macro.cpp
|
|
|
|
macro/macro.h
|
2020-06-04 15:42:19 +00:00
|
|
|
macro/macro_hle.cpp
|
|
|
|
macro/macro_hle.h
|
2020-05-29 04:53:27 +00:00
|
|
|
macro/macro_interpreter.cpp
|
|
|
|
macro/macro_interpreter.h
|
2020-02-18 00:19:26 +00:00
|
|
|
fence_manager.h
|
2018-03-18 20:15:05 +00:00
|
|
|
gpu.cpp
|
2018-02-12 04:44:12 +00:00
|
|
|
gpu.h
|
2019-01-24 03:17:55 +00:00
|
|
|
gpu_thread.cpp
|
|
|
|
gpu_thread.h
|
2023-01-05 03:05:20 +00:00
|
|
|
invalidation_accumulator.h
|
2018-02-12 04:44:12 +00:00
|
|
|
memory_manager.cpp
|
|
|
|
memory_manager.h
|
2022-11-22 23:38:23 +00:00
|
|
|
precompiled_headers.h
|
2022-10-16 15:49:32 +00:00
|
|
|
pte_kind.h
|
2023-08-04 01:31:52 +00:00
|
|
|
query_cache/bank_base.h
|
|
|
|
query_cache/query_base.h
|
|
|
|
query_cache/query_cache_base.h
|
|
|
|
query_cache/query_cache.h
|
|
|
|
query_cache/query_stream.h
|
|
|
|
query_cache/types.h
|
2020-02-11 19:02:41 +00:00
|
|
|
query_cache.h
|
2019-10-27 06:40:08 +00:00
|
|
|
rasterizer_accelerated.cpp
|
|
|
|
rasterizer_accelerated.h
|
2018-03-20 03:00:59 +00:00
|
|
|
rasterizer_interface.h
|
2018-01-18 00:37:34 +00:00
|
|
|
renderer_base.cpp
|
|
|
|
renderer_base.h
|
2022-11-28 01:37:37 +00:00
|
|
|
renderer_null/null_rasterizer.cpp
|
|
|
|
renderer_null/null_rasterizer.h
|
|
|
|
renderer_null/renderer_null.cpp
|
|
|
|
renderer_null/renderer_null.h
|
2023-01-05 04:28:48 +00:00
|
|
|
renderer_opengl/blit_image.cpp
|
|
|
|
renderer_opengl/blit_image.h
|
2022-11-19 23:09:56 +00:00
|
|
|
renderer_opengl/gl_buffer_cache_base.cpp
|
2018-08-28 22:27:03 +00:00
|
|
|
renderer_opengl/gl_buffer_cache.cpp
|
2018-09-06 18:49:49 +00:00
|
|
|
renderer_opengl/gl_buffer_cache.h
|
2021-05-25 21:58:28 +00:00
|
|
|
renderer_opengl/gl_compute_pipeline.cpp
|
|
|
|
renderer_opengl/gl_compute_pipeline.h
|
2019-04-10 18:56:12 +00:00
|
|
|
renderer_opengl/gl_device.cpp
|
|
|
|
renderer_opengl/gl_device.h
|
2020-02-18 00:19:26 +00:00
|
|
|
renderer_opengl/gl_fence_manager.cpp
|
|
|
|
renderer_opengl/gl_fence_manager.h
|
2023-01-01 18:22:46 +00:00
|
|
|
renderer_opengl/gl_fsr.cpp
|
|
|
|
renderer_opengl/gl_fsr.h
|
2021-05-25 21:58:28 +00:00
|
|
|
renderer_opengl/gl_graphics_pipeline.cpp
|
|
|
|
renderer_opengl/gl_graphics_pipeline.h
|
2018-03-20 03:00:59 +00:00
|
|
|
renderer_opengl/gl_rasterizer.cpp
|
|
|
|
renderer_opengl/gl_rasterizer.h
|
2018-11-06 09:40:49 +00:00
|
|
|
renderer_opengl/gl_resource_manager.cpp
|
2018-01-18 00:37:34 +00:00
|
|
|
renderer_opengl/gl_resource_manager.h
|
2018-08-23 21:30:27 +00:00
|
|
|
renderer_opengl/gl_shader_cache.cpp
|
|
|
|
renderer_opengl/gl_shader_cache.h
|
2018-04-07 09:12:38 +00:00
|
|
|
renderer_opengl/gl_shader_manager.cpp
|
|
|
|
renderer_opengl/gl_shader_manager.h
|
2021-06-15 01:06:29 +00:00
|
|
|
renderer_opengl/gl_shader_context.h
|
2018-01-18 00:37:34 +00:00
|
|
|
renderer_opengl/gl_shader_util.cpp
|
|
|
|
renderer_opengl/gl_shader_util.h
|
2019-12-25 20:02:17 +00:00
|
|
|
renderer_opengl/gl_state_tracker.cpp
|
|
|
|
renderer_opengl/gl_state_tracker.h
|
2023-05-28 01:46:15 +00:00
|
|
|
renderer_opengl/gl_staging_buffer_pool.cpp
|
|
|
|
renderer_opengl/gl_staging_buffer_pool.h
|
2019-04-11 20:14:55 +00:00
|
|
|
renderer_opengl/gl_texture_cache.cpp
|
|
|
|
renderer_opengl/gl_texture_cache.h
|
2021-08-05 20:46:24 +00:00
|
|
|
renderer_opengl/gl_texture_cache_base.cpp
|
2019-07-27 22:40:10 +00:00
|
|
|
renderer_opengl/gl_query_cache.cpp
|
|
|
|
renderer_opengl/gl_query_cache.h
|
2018-03-25 01:09:30 +00:00
|
|
|
renderer_opengl/maxwell_to_gl.h
|
2018-01-18 00:37:34 +00:00
|
|
|
renderer_opengl/renderer_opengl.cpp
|
|
|
|
renderer_opengl/renderer_opengl.h
|
2020-12-30 05:25:23 +00:00
|
|
|
renderer_opengl/util_shaders.cpp
|
|
|
|
renderer_opengl/util_shaders.h
|
|
|
|
renderer_vulkan/blit_image.cpp
|
|
|
|
renderer_vulkan/blit_image.h
|
2020-12-24 23:22:07 +00:00
|
|
|
renderer_vulkan/fixed_pipeline_state.cpp
|
|
|
|
renderer_vulkan/fixed_pipeline_state.h
|
|
|
|
renderer_vulkan/maxwell_to_vk.cpp
|
|
|
|
renderer_vulkan/maxwell_to_vk.h
|
2021-03-19 22:28:31 +00:00
|
|
|
renderer_vulkan/pipeline_helper.h
|
2021-07-27 22:15:32 +00:00
|
|
|
renderer_vulkan/pipeline_statistics.cpp
|
|
|
|
renderer_vulkan/pipeline_statistics.h
|
2020-12-24 23:22:07 +00:00
|
|
|
renderer_vulkan/renderer_vulkan.h
|
|
|
|
renderer_vulkan/renderer_vulkan.cpp
|
|
|
|
renderer_vulkan/vk_blit_screen.cpp
|
|
|
|
renderer_vulkan/vk_blit_screen.h
|
2022-11-19 23:09:56 +00:00
|
|
|
renderer_vulkan/vk_buffer_cache_base.cpp
|
2020-12-24 23:22:07 +00:00
|
|
|
renderer_vulkan/vk_buffer_cache.cpp
|
|
|
|
renderer_vulkan/vk_buffer_cache.h
|
|
|
|
renderer_vulkan/vk_command_pool.cpp
|
|
|
|
renderer_vulkan/vk_command_pool.h
|
|
|
|
renderer_vulkan/vk_compute_pass.cpp
|
|
|
|
renderer_vulkan/vk_compute_pass.h
|
|
|
|
renderer_vulkan/vk_compute_pipeline.cpp
|
|
|
|
renderer_vulkan/vk_compute_pipeline.h
|
|
|
|
renderer_vulkan/vk_descriptor_pool.cpp
|
|
|
|
renderer_vulkan/vk_descriptor_pool.h
|
|
|
|
renderer_vulkan/vk_fence_manager.cpp
|
|
|
|
renderer_vulkan/vk_fence_manager.h
|
2021-10-17 01:33:58 +00:00
|
|
|
renderer_vulkan/vk_fsr.cpp
|
|
|
|
renderer_vulkan/vk_fsr.h
|
2021-03-19 22:28:31 +00:00
|
|
|
renderer_vulkan/vk_graphics_pipeline.cpp
|
|
|
|
renderer_vulkan/vk_graphics_pipeline.h
|
2020-12-24 23:22:07 +00:00
|
|
|
renderer_vulkan/vk_master_semaphore.cpp
|
|
|
|
renderer_vulkan/vk_master_semaphore.h
|
|
|
|
renderer_vulkan/vk_pipeline_cache.cpp
|
|
|
|
renderer_vulkan/vk_pipeline_cache.h
|
2023-03-19 15:23:24 +00:00
|
|
|
renderer_vulkan/vk_present_manager.cpp
|
|
|
|
renderer_vulkan/vk_present_manager.h
|
2020-12-24 23:22:07 +00:00
|
|
|
renderer_vulkan/vk_query_cache.cpp
|
|
|
|
renderer_vulkan/vk_query_cache.h
|
|
|
|
renderer_vulkan/vk_rasterizer.cpp
|
|
|
|
renderer_vulkan/vk_rasterizer.h
|
2021-03-19 22:28:31 +00:00
|
|
|
renderer_vulkan/vk_render_pass_cache.cpp
|
|
|
|
renderer_vulkan/vk_render_pass_cache.h
|
2020-12-24 23:22:07 +00:00
|
|
|
renderer_vulkan/vk_resource_pool.cpp
|
|
|
|
renderer_vulkan/vk_resource_pool.h
|
|
|
|
renderer_vulkan/vk_scheduler.cpp
|
|
|
|
renderer_vulkan/vk_scheduler.h
|
|
|
|
renderer_vulkan/vk_shader_util.cpp
|
|
|
|
renderer_vulkan/vk_shader_util.h
|
2022-12-08 21:52:29 +00:00
|
|
|
renderer_vulkan/vk_smaa.cpp
|
|
|
|
renderer_vulkan/vk_smaa.h
|
2020-12-24 23:22:07 +00:00
|
|
|
renderer_vulkan/vk_staging_buffer_pool.cpp
|
|
|
|
renderer_vulkan/vk_staging_buffer_pool.h
|
|
|
|
renderer_vulkan/vk_state_tracker.cpp
|
|
|
|
renderer_vulkan/vk_state_tracker.h
|
|
|
|
renderer_vulkan/vk_swapchain.cpp
|
|
|
|
renderer_vulkan/vk_swapchain.h
|
|
|
|
renderer_vulkan/vk_texture_cache.cpp
|
|
|
|
renderer_vulkan/vk_texture_cache.h
|
2021-08-05 20:46:24 +00:00
|
|
|
renderer_vulkan/vk_texture_cache_base.cpp
|
2022-12-20 00:29:58 +00:00
|
|
|
renderer_vulkan/vk_turbo_mode.cpp
|
|
|
|
renderer_vulkan/vk_turbo_mode.h
|
2020-12-24 23:22:07 +00:00
|
|
|
renderer_vulkan/vk_update_descriptor.cpp
|
|
|
|
renderer_vulkan/vk_update_descriptor.h
|
2021-04-26 06:53:26 +00:00
|
|
|
shader_cache.cpp
|
2020-05-22 23:53:27 +00:00
|
|
|
shader_cache.h
|
2021-04-26 06:53:26 +00:00
|
|
|
shader_environment.cpp
|
|
|
|
shader_environment.h
|
2020-07-10 03:36:38 +00:00
|
|
|
shader_notify.cpp
|
|
|
|
shader_notify.h
|
2022-12-08 21:52:29 +00:00
|
|
|
smaa_area_tex.h
|
|
|
|
smaa_search_tex.h
|
2018-10-29 01:14:25 +00:00
|
|
|
surface.cpp
|
|
|
|
surface.h
|
2020-12-30 05:25:23 +00:00
|
|
|
texture_cache/accelerated_swizzle.cpp
|
|
|
|
texture_cache/accelerated_swizzle.h
|
2023-06-06 20:10:06 +00:00
|
|
|
texture_cache/decode_bc.cpp
|
|
|
|
texture_cache/decode_bc.h
|
2020-12-30 05:25:23 +00:00
|
|
|
texture_cache/descriptor_table.h
|
|
|
|
texture_cache/formatter.cpp
|
|
|
|
texture_cache/formatter.h
|
2019-11-09 06:26:30 +00:00
|
|
|
texture_cache/format_lookup_table.cpp
|
|
|
|
texture_cache/format_lookup_table.h
|
2020-12-30 05:25:23 +00:00
|
|
|
texture_cache/image_base.cpp
|
|
|
|
texture_cache/image_base.h
|
|
|
|
texture_cache/image_info.cpp
|
|
|
|
texture_cache/image_info.h
|
|
|
|
texture_cache/image_view_base.cpp
|
|
|
|
texture_cache/image_view_base.h
|
|
|
|
texture_cache/image_view_info.cpp
|
|
|
|
texture_cache/image_view_info.h
|
|
|
|
texture_cache/render_targets.h
|
|
|
|
texture_cache/samples_helper.h
|
|
|
|
texture_cache/slot_vector.h
|
2021-12-17 15:45:06 +00:00
|
|
|
texture_cache/texture_cache.cpp
|
2019-04-24 19:35:54 +00:00
|
|
|
texture_cache/texture_cache.h
|
2021-08-05 20:46:24 +00:00
|
|
|
texture_cache/texture_cache_base.h
|
2020-12-30 05:25:23 +00:00
|
|
|
texture_cache/types.h
|
|
|
|
texture_cache/util.cpp
|
|
|
|
texture_cache/util.h
|
2018-06-18 03:50:44 +00:00
|
|
|
textures/astc.h
|
2021-06-13 19:15:08 +00:00
|
|
|
textures/astc.cpp
|
2023-05-20 21:15:36 +00:00
|
|
|
textures/bcn.cpp
|
|
|
|
textures/bcn.h
|
2018-03-19 23:00:29 +00:00
|
|
|
textures/decoders.cpp
|
|
|
|
textures/decoders.h
|
2020-04-07 23:38:14 +00:00
|
|
|
textures/texture.cpp
|
2018-03-19 23:00:29 +00:00
|
|
|
textures/texture.h
|
2023-05-20 21:15:36 +00:00
|
|
|
textures/workers.cpp
|
|
|
|
textures/workers.h
|
2021-05-21 20:19:35 +00:00
|
|
|
transform_feedback.cpp
|
|
|
|
transform_feedback.h
|
2018-01-18 00:37:34 +00:00
|
|
|
video_core.cpp
|
|
|
|
video_core.h
|
2020-12-25 05:01:13 +00:00
|
|
|
vulkan_common/vulkan_debug_callback.cpp
|
|
|
|
vulkan_common/vulkan_debug_callback.h
|
2020-12-26 04:19:46 +00:00
|
|
|
vulkan_common/vulkan_device.cpp
|
|
|
|
vulkan_common/vulkan_device.h
|
2020-12-25 01:05:48 +00:00
|
|
|
vulkan_common/vulkan_instance.cpp
|
|
|
|
vulkan_common/vulkan_instance.h
|
2020-12-25 00:24:34 +00:00
|
|
|
vulkan_common/vulkan_library.cpp
|
|
|
|
vulkan_common/vulkan_library.h
|
2021-01-03 21:17:57 +00:00
|
|
|
vulkan_common/vulkan_memory_allocator.cpp
|
|
|
|
vulkan_common/vulkan_memory_allocator.h
|
2020-12-25 05:14:15 +00:00
|
|
|
vulkan_common/vulkan_surface.cpp
|
|
|
|
vulkan_common/vulkan_surface.h
|
2020-12-25 00:30:11 +00:00
|
|
|
vulkan_common/vulkan_wrapper.cpp
|
|
|
|
vulkan_common/vulkan_wrapper.h
|
2020-12-26 04:26:52 +00:00
|
|
|
vulkan_common/nsight_aftermath_tracker.cpp
|
|
|
|
vulkan_common/nsight_aftermath_tracker.h
|
2023-06-27 20:54:33 +00:00
|
|
|
vulkan_common/vma.cpp
|
2023-07-30 11:10:00 +00:00
|
|
|
vulkan_common/vma.h
|
|
|
|
vulkan_common/vulkan.h
|
2018-01-18 00:37:34 +00:00
|
|
|
)
|
2014-04-05 20:04:25 +00:00
|
|
|
|
2018-01-18 00:37:34 +00:00
|
|
|
create_target_directory_groups(video_core)
|
2014-08-24 01:22:05 +00:00
|
|
|
|
2017-05-28 01:26:55 +00:00
|
|
|
target_link_libraries(video_core PUBLIC common core)
|
2023-06-06 20:10:06 +00:00
|
|
|
target_link_libraries(video_core PUBLIC glad shader_recompiler stb bc_decoder)
|
2020-03-30 08:21:59 +00:00
|
|
|
|
2022-12-30 08:29:53 +00:00
|
|
|
if (YUZU_USE_BUNDLED_FFMPEG AND NOT (WIN32 OR ANDROID))
|
2021-02-05 18:45:10 +00:00
|
|
|
add_dependencies(video_core ffmpeg-build)
|
2020-10-27 03:07:36 +00:00
|
|
|
endif()
|
|
|
|
|
2021-02-05 20:39:19 +00:00
|
|
|
target_include_directories(video_core PRIVATE ${FFmpeg_INCLUDE_DIR})
|
|
|
|
target_link_libraries(video_core PRIVATE ${FFmpeg_LIBRARIES})
|
2021-08-07 05:02:51 +00:00
|
|
|
target_link_options(video_core PRIVATE ${FFmpeg_LDFLAGS})
|
2021-02-05 18:45:10 +00:00
|
|
|
|
2020-08-24 00:28:15 +00:00
|
|
|
add_dependencies(video_core host_shaders)
|
|
|
|
target_include_directories(video_core PRIVATE ${HOST_SHADERS_INCLUDE})
|
2023-06-27 20:54:33 +00:00
|
|
|
target_link_libraries(video_core PRIVATE sirit Vulkan::Headers GPUOpen::VulkanMemoryAllocator)
|
2019-11-08 20:14:21 +00:00
|
|
|
|
2020-03-30 08:21:59 +00:00
|
|
|
if (ENABLE_NSIGHT_AFTERMATH)
|
|
|
|
if (NOT DEFINED ENV{NSIGHT_AFTERMATH_SDK})
|
2021-01-23 07:15:27 +00:00
|
|
|
message(FATAL_ERROR "Environment variable NSIGHT_AFTERMATH_SDK has to be provided")
|
2020-03-30 08:21:59 +00:00
|
|
|
endif()
|
|
|
|
if (NOT WIN32)
|
2021-01-23 07:15:27 +00:00
|
|
|
message(FATAL_ERROR "Nsight Aftermath doesn't support non-Windows platforms")
|
2020-03-30 08:21:59 +00:00
|
|
|
endif()
|
|
|
|
target_compile_definitions(video_core PRIVATE HAS_NSIGHT_AFTERMATH)
|
|
|
|
target_include_directories(video_core PRIVATE "$ENV{NSIGHT_AFTERMATH_SDK}/include")
|
|
|
|
endif()
|
|
|
|
|
2019-11-08 20:14:21 +00:00
|
|
|
if (MSVC)
|
2020-12-05 16:40:14 +00:00
|
|
|
target_compile_options(video_core PRIVATE
|
2021-06-28 07:53:52 +00:00
|
|
|
/we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data
|
|
|
|
/we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data
|
2020-12-05 16:40:14 +00:00
|
|
|
)
|
2019-11-08 20:14:21 +00:00
|
|
|
else()
|
2022-12-03 18:32:24 +00:00
|
|
|
if (APPLE)
|
|
|
|
# error: declaration shadows a typedef in 'interval_base_set<SubType, DomainT, Compare, Interval, Alloc>'
|
|
|
|
# error: implicit conversion loses integer precision: 'int' to 'boost::icl::bound_type' (aka 'unsigned char')
|
|
|
|
target_compile_options(video_core PRIVATE -Wno-shadow -Wno-unused-local-typedef)
|
|
|
|
else()
|
|
|
|
target_compile_options(video_core PRIVATE -Werror=conversion)
|
|
|
|
endif()
|
2020-10-20 23:24:28 +00:00
|
|
|
|
2022-12-03 18:32:24 +00:00
|
|
|
target_compile_options(video_core PRIVATE
|
2022-10-21 06:34:06 +00:00
|
|
|
-Wno-sign-conversion
|
2020-10-03 00:19:35 +00:00
|
|
|
)
|
2022-11-06 21:45:36 +00:00
|
|
|
|
|
|
|
# xbyak
|
|
|
|
set_source_files_properties(macro/macro_jit_x64.cpp PROPERTIES COMPILE_OPTIONS "-Wno-conversion;-Wno-shadow")
|
2023-06-27 20:54:33 +00:00
|
|
|
|
|
|
|
# VMA
|
|
|
|
set_source_files_properties(vulkan_common/vma.cpp PROPERTIES COMPILE_OPTIONS "-Wno-conversion;-Wno-unused-variable;-Wno-unused-parameter;-Wno-missing-field-initializers")
|
2019-11-08 20:14:21 +00:00
|
|
|
endif()
|
2022-05-31 18:37:37 +00:00
|
|
|
|
|
|
|
if (ARCHITECTURE_x86_64)
|
2022-11-06 21:45:36 +00:00
|
|
|
target_sources(video_core PRIVATE
|
|
|
|
macro/macro_jit_x64.cpp
|
|
|
|
macro/macro_jit_x64.h
|
|
|
|
)
|
2022-11-25 18:35:46 +00:00
|
|
|
target_link_libraries(video_core PUBLIC xbyak::xbyak)
|
2022-11-06 21:45:36 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
|
2022-11-25 18:35:46 +00:00
|
|
|
target_link_libraries(video_core PRIVATE dynarmic::dynarmic)
|
2022-05-31 18:37:37 +00:00
|
|
|
endif()
|
2022-11-22 23:38:23 +00:00
|
|
|
|
|
|
|
if (YUZU_USE_PRECOMPILED_HEADERS)
|
|
|
|
target_precompile_headers(video_core PRIVATE precompiled_headers.h)
|
|
|
|
endif()
|
2023-02-27 04:01:44 +00:00
|
|
|
|
|
|
|
if (YUZU_ENABLE_LTO)
|
|
|
|
set_property(TARGET video_core PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
|
|
endif()
|
2023-01-01 23:34:38 +00:00
|
|
|
|
2023-03-16 15:56:51 +00:00
|
|
|
if (ANDROID AND ARCHITECTURE_arm64)
|
2023-01-01 23:34:38 +00:00
|
|
|
target_link_libraries(video_core PRIVATE adrenotools)
|
|
|
|
endif()
|