Index: src/st/meson.build
--- src/st/meson.build.orig
+++ src/st/meson.build
@@ -97,7 +97,7 @@ st_gir_sources = st_sources + st_headers + st_enums
 
 data_to_c = find_program(meson.source_root() + '/src/data-to-c.pl')
 
-custom_target('scroll-view-fade-glsl',
+svf_gen = custom_target('scroll-view-fade-glsl',
   input: ['st-scroll-view-fade.glsl'],
   output: ['st-scroll-view-fade-generated.c'],
   build_by_default: true,
@@ -105,6 +105,10 @@ custom_target('scroll-view-fade-glsl',
   command: [data_to_c, '@INPUT@', 'st_scroll_view_fade_glsl']
 )
 
+svf_dep = declare_dependency(
+  sources: svf_gen
+)
+
 st_cflags = [
   '-I@0@/src'.format(meson.source_root()),
   '-I@0@'.format(meson.build_root()),
@@ -121,7 +125,7 @@ st_cflags = [
 libst = shared_library('st-1.0',
   sources: st_gir_sources,
   c_args: st_cflags,
-  dependencies: [clutter_dep, gtk_dep, croco_dep, mutter_dep, m_dep],
+  dependencies: [clutter_dep, gtk_dep, croco_dep, mutter_dep, m_dep, svf_dep],
   build_rpath: mutter_typelibdir,
   install_rpath: mutter_typelibdir,
   install_dir: pkglibdir,
Index: src/st/st-scroll-view-fade.c
--- src/st/st-scroll-view-fade.c.orig
+++ src/st/st-scroll-view-fade.c
@@ -32,7 +32,7 @@
 
 #define DEFAULT_FADE_OFFSET 68.0f
 
-#include "st-scroll-view-fade-generated.c"
+const char *st_scroll_view_fade_glsl;
 
 struct _StScrollViewFade
 {
