# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
+inc_wayland_drm = include_directories('.')
+
wayland_drm_protocol_c = custom_target(
'wayland-drm-protocol.c',
input : 'wayland-drm.xml',
$(DLOPEN_LIBS)
if HAVE_PLATFORM_WAYLAND
-AM_CFLAGS += $(WAYLAND_SERVER_CFLAGS)
+AM_CFLAGS += \
+ $(WAYLAND_SERVER_CFLAGS) \
+ -I$(top_srcdir)/src/egl/wayland/wayland-drm/
libgbm_la_LIBADD += $(top_builddir)/src/egl/wayland/wayland-drm/libwayland-drm.la $(WAYLAND_SERVER_LIBS)
endif
/* For importing wl_buffer */
#if HAVE_WAYLAND_PLATFORM
-#include "../../../egl/wayland/wayland-drm/wayland-drm.h"
+#include "wayland-drm.h"
#endif
#ifndef DRM_FORMAT_MOD_INVALID
args_gbm = []
links_gbm = []
deps_gbm = []
+incs_gbm = [
+ include_directories('main'), inc_include, inc_src, inc_loader,
+ inc_wayland_drm,
+]
if with_dri2
files_gbm += files('backends/dri/gbm_dri.c', 'backends/dri/gbm_driint.h')
if with_platform_wayland
deps_gbm += dep_wayland_server
links_gbm += libwayland_drm
+ incs_gbm += inc_wayland_drm
endif
# TODO: wayland support (requires egl)
libgbm = shared_library(
'gbm',
files_gbm,
- include_directories : [
- include_directories('main'), inc_include, inc_src, inc_loader,
- include_directories('../egl/wayland/wayland-drm')],
+ include_directories : incs_gbm,
c_args : [c_vis_args, args_gbm],
link_args : [ld_args_gc_sections],
link_with : [links_gbm, libloader, libmesa_util, libxmlconfig],