summaryrefslogtreecommitdiffstats
path: root/src/gbm/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/gbm/meson.build')
-rw-r--r--src/gbm/meson.build12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gbm/meson.build b/src/gbm/meson.build
index f9665aa2d2f..1bb3c94c387 100644
--- a/src/gbm/meson.build
+++ b/src/gbm/meson.build
@@ -18,6 +18,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
+inc_gbm = include_directories('.', 'backends/dri')
+
files_gbm = files(
'main/backend.c',
'main/backend.h',
@@ -28,12 +30,17 @@ files_gbm = files(
deps_gbm = []
args_gbm = []
links_gbm = []
+deps_gbm = []
if with_dri2
files_gbm += files('backends/dri/gbm_dri.c', 'backends/dri/gbm_driint.h')
deps_gbm += [dep_libdrm, dep_thread]
args_gbm += '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_driver_dir)
endif
+if with_platform_wayland
+ deps_gbm += dep_wayland_server
+ links_gbm += libwayland_drm
+endif
# TODO: wayland support (requires egl)
@@ -41,10 +48,11 @@ libgbm = shared_library(
'gbm',
files_gbm,
include_directories : [
- include_directories('main'), inc_include, inc_src, inc_loader],
+ include_directories('main'), inc_include, inc_src, inc_loader,
+ include_directories('../egl/wayland/wayland-drm')],
c_args : args_gbm,
link_args : [ld_args_gc_sections],
- link_with : [libloader, libmesa_util, libxmlconfig],
+ link_with : [links_gbm, libloader, libmesa_util, libxmlconfig],
dependencies : [deps_gbm, dep_dl],
version : '1.0',
install : true,