X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=meson.build;h=7214f27b24dc4ee0a2440d00bffda706e6c6482c;hb=1c8c62666642be6b4ffd397c13e66f4cbaf5e38c;hp=16a604e60ebc7908852af15f8284d60637e1a1a9;hpb=1bd72e916cfd0afc2df6a9f61535ccf77090d0b4;p=nageru diff --git a/meson.build b/meson.build index 16a604e..7214f27 100644 --- a/meson.build +++ b/meson.build @@ -41,11 +41,8 @@ if cxx.links(code, args: '-fuse-ld=lld', name: 'check for LLD') endif # 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') +movit_shader_dir = movitdep.get_pkgconfig_variable('shaderdir') +add_project_arguments('-DMOVIT_SHADER_DIR="' + movit_shader_dir + '"', language: 'cpp') # Make the Nageru version available as a #define. add_project_arguments('-DNAGERU_VERSION="' + meson.project_version() + '"', language: 'cpp')