From 9f37dc4cd4ab08b553c4d531a2eb3a27d5b49650 Mon Sep 17 00:00:00 2001 From: odrling Date: Thu, 19 Nov 2020 22:21:58 +0100 Subject: [PATCH] add avisynth --- src/avisynth.h | 2 ++ src/meson.build | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/src/avisynth.h b/src/avisynth.h index 7e15f2133..fa3fd1cdc 100644 --- a/src/avisynth.h +++ b/src/avisynth.h @@ -81,6 +81,8 @@ typedef long PixOffset; #define _RPT4(a,b,c,d,e,f) ((void)0) #define _ASSERTE(x) assert(x) + // not sure why it's used but not defined, so... + #define _ASSERT(x) assert(x) #include #endif diff --git a/src/meson.build b/src/meson.build index 1238f6dea..7db5092dd 100644 --- a/src/meson.build +++ b/src/meson.build @@ -211,6 +211,15 @@ foreach opt: opt_src endif endforeach +# avisynth for windows build +if host_machine.system() == 'windows' + aegisub_src += [ + 'audio_provider_avs.cpp', + 'video_provider_avs.cpp', + ] +endif + + aegisub_cpp_pch = ['include/agi_pre.h'] aegisub_c_pch = ['include/agi_pre_c.h']