X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meson.build;fp=meson.build;h=294d82f704b0b16d20b53e8e1138c963e8d17884;hb=ca5e2aec22cb7bc54710fa8ac02b48e6a592f315;hp=b7fd577750a052759d2bb9929e5e8ea3935c308f;hpb=ed4a9b0d9c593777551af3145e27ea40aced3e31;p=src%2Fagl-compositor.git diff --git a/meson.build b/meson.build index b7fd577..294d82f 100644 --- a/meson.build +++ b/meson.build @@ -88,10 +88,23 @@ foreach proto: protocols endforeach endforeach +# libweston-6 pkg-config file already has 'libweston-6' as prefix but +# agl-compositor uses 'libweston-6' also. This makes use of the prefix +# path as to allow building and installing the compositor locally +prefix_path = get_option('prefix') +message('prefix_path ' + prefix_path) +if not prefix_path.contains('/usr') + additional_include_dir = include_directories(prefix_path + '/' + 'include') + local_dep = declare_dependency(include_directories: additional_include_dir) +else + local_dep = [] +endif + deps_libweston = [ dependency('wayland-server'), dependency('libweston-6'), dependency('libweston-desktop-6'), + local_dep, ] srcs_agl_compositor = [