if with_platform_x11 and with_dri3
libloader_dri3_helper = static_library(
'loader_dri3_helper',
- ['loader_dri3_helper.c', 'loader_dri3_helper.h'],
+ 'loader_dri3_helper.c',
c_args : c_vis_args,
- include_directories : inc_include,
+ include_directories : [inc_include, inc_src],
dependencies : [
- dep_xshmfence, dep_xcb_present, dep_xcb_dri3, dep_xcb_sync, dep_x11_xcb,
- dep_xext, dep_xdamage, dep_xcb_glx, dep_libdrm,
+ dep_libdrm, dep_xcb_dri3, dep_xcb_present, dep_xcb_sync, dep_xshmfence,
],
build_by_default : false,
)
libloader = static_library(
'loader',
- ['loader.c', 'loader.h', 'pci_id_driver_map.c', 'pci_id_driver_map.h',
- xmlpool_options_h],
- c_args : [c_vis_args, '-DUSE_DRICONF'],
+ ['loader.c', 'pci_id_driver_map.c'],
+ c_args : [c_vis_args, '-DUSE_DRICONF',
+ '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path),
+],
include_directories : [inc_include, inc_src, inc_util],
- dependencies : dep_libdrm,
+ dependencies : [dep_libdrm, dep_thread, idep_xmlconfig_headers],
build_by_default : false,
)