diff options
author | wm4 <wm4@nowhere> | 2017-07-01 15:56:12 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-07-01 15:56:12 +0200 |
commit | 91279390710954519be79cff8388873888bf2f42 (patch) | |
tree | e166303643359dba10aba888486b6cf642ead30d /wscript_build.py | |
parent | aee81828e2e627ca33e66f87428add220b06f7a7 (diff) | |
download | mpv-91279390710954519be79cff8388873888bf2f42.tar.bz2 mpv-91279390710954519be79cff8388873888bf2f42.tar.xz |
x11: load icon differently
Now it's sourced from the etc/ PNG files directly, instead of
preprocessing them with imagemagick.
Add some ad-hoc code to decode PNG files with libavcodec. At least we
can drop the zlib code in exchange.
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/wscript_build.py b/wscript_build.py index 7ecd14bd9f..c6fa552164 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -59,8 +59,20 @@ def build(ctx): ctx( features = "file2string", - source = "video/out/x11_icon.bin", - target = "video/out/x11_icon.inc", + source = "etc/mpv-icon-8bit-16x16.png", + target = "video/out/x11_icon_16.inc", + ) + + ctx( + features = "file2string", + source = "etc/mpv-icon-8bit-32x32.png", + target = "video/out/x11_icon_32.inc", + ) + + ctx( + features = "file2string", + source = "etc/mpv-icon-8bit-64x64.png", + target = "video/out/x11_icon_64.inc", ) ctx( @@ -315,6 +327,7 @@ def build(ctx): ( "video/csputils.c" ), ( "video/fmt-conversion.c" ), ( "video/gpu_memcpy.c", "sse4-intrinsics" ), + ( "video/image_loader.c" ), ( "video/image_writer.c" ), ( "video/img_format.c" ), ( "video/hwdec.c" ), |