diff options
author | Philip Langdale <philipl@overt.org> | 2019-02-02 15:24:27 -0800 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-05-03 18:02:18 +0200 |
commit | 23a324215b5aa9ea66a5d19fe7c5322c871eda64 (patch) | |
tree | 371e786c66b52d9bdf33f258caf67ae8fa9987a2 /wscript_build.py | |
parent | 738fda36774b1e5bc0f7277178ee7d762880922e (diff) | |
download | mpv-23a324215b5aa9ea66a5d19fe7c5322c871eda64.tar.bz2 mpv-23a324215b5aa9ea66a5d19fe7c5322c871eda64.tar.xz |
vo/gpu: hwdec_cuda: Refactor gpu api specific code into separate files
The amount of code now present that's specific to Vulkan or OpenGL
has reached the point where we really want to split it out to
avoid a mess of #ifdefs.
At the same time, I'm moving the code to an api neutral location.
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wscript_build.py b/wscript_build.py index e0c5bcd9a0..6306c28d72 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -445,6 +445,9 @@ def build(ctx): ( "video/out/gpu/utils.c" ), ( "video/out/gpu/video.c" ), ( "video/out/gpu/video_shaders.c" ), + ( "video/out/hwdec/hwdec_cuda.c", "cuda-hwaccel" ), + ( "video/out/hwdec/hwdec_cuda_gl.c", "cuda-hwaccel && gl" ), + ( "video/out/hwdec/hwdec_cuda_vk.c", "cuda-hwaccel && vulkan" ), ( "video/out/placebo/ra_pl.c", "libplacebo" ), ( "video/out/placebo/utils.c", "libplacebo" ), ( "video/out/opengl/angle_dynamic.c", "egl-angle" ), @@ -464,7 +467,6 @@ def build(ctx): ( "video/out/opengl/context_x11egl.c", "egl-x11" ), ( "video/out/opengl/egl_helpers.c", "egl-helpers" ), ( "video/out/opengl/formats.c", "gl" ), - ( "video/out/opengl/hwdec_cuda.c", "cuda-hwaccel" ), ( "video/out/opengl/hwdec_d3d11egl.c", "d3d-hwaccel && egl-angle" ), ( "video/out/opengl/hwdec_d3d11eglrgb.c","d3d-hwaccel && egl-angle" ), ( "video/out/opengl/hwdec_drmprime_drm.c","drmprime && drm" ), |