X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=meson.build;h=83570057d161a75573e691062b4c372cba7e2b5e;hb=9b7d691b4cc5db7dbfc18c82e86c1207fcac4722;hp=15184b878e0298c647f8e78b99cb03a2f933567e;hpb=392f9d1ccb835c05a3874c4bea163788b2c37024;p=nageru diff --git a/meson.build b/meson.build index 15184b8..8357005 100644 --- a/meson.build +++ b/meson.build @@ -1,3 +1,11 @@ project('nageru', 'cpp', default_options: ['buildtype=debugoptimized']) -subdir('nageru') +# Add the right MOVIT_SHADER_DIR definition. +r = run_command('pkg-config', '--variable=shaderdir', 'movit') +if r.returncode() != 0 + error('Movit pkg-config installation is broken.') +endif +add_project_arguments('-DMOVIT_SHADER_DIR="' + r.stdout().strip() + '"', language: 'cpp') + +subdir('nageru') +subdir('futatabi')