xenocara/lib/libdrm
2018-11-01 08:29:47 +00:00
..
amdgpu Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
build-aux Import libdrm 2.4.96 2018-11-01 08:22:36 +00:00
data Merge libdrm 2.4.94 2018-09-13 12:02:27 +00:00
etnaviv Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
exynos Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
freedreno Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
include/drm Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
intel Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
libkms Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
m4 Merge libdrm 2.4.67 2016-03-20 10:41:29 +00:00
man Import libdrm 2.4.94 2018-09-13 11:55:15 +00:00
nouveau Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
omap Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
radeon Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
tegra Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
tests Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
vc4 Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
aclocal.m4 Merge libdrm 2.4.94 2018-09-13 12:02:27 +00:00
config.h.in Merge libdrm 2.4.94 2018-09-13 12:02:27 +00:00
configure Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
configure.ac Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
libdrm_lists.h
libdrm_macros.h Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
libdrm.pc.in Merge libdrm 2.4.64. This changes the build to using the upstream 2015-08-22 00:30:35 +00:00
libsync.h Merge libdrm 2.4.75 2017-02-05 05:46:41 +00:00
Makefile.am Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
Makefile.bsd-wrapper Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
Makefile.in Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
Makefile.sources Merge libdrm 2.4.94 2018-09-13 12:02:27 +00:00
meson_options.txt Import libdrm 2.4.94 2018-09-13 11:55:15 +00:00
meson.build Import libdrm 2.4.96 2018-11-01 08:22:36 +00:00
README Merge libdrm 2.4.94 2018-09-13 12:02:27 +00:00
util_double_list.h Import libdrm 2.4.71 2016-10-16 06:01:17 +00:00
util_math.h Import libdrm 2.4.96 2018-11-01 08:22:36 +00:00
xf86atomic.h Merge libdrm 2.4.94 2018-09-13 12:02:27 +00:00
xf86drm.c Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
xf86drm.h Merge libdrm 2.4.89 2018-02-17 02:31:15 +00:00
xf86drmHash.c Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
xf86drmHash.h
xf86drmMode.c Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
xf86drmMode.h Merge libdrm 2.4.89 2018-02-17 02:31:15 +00:00
xf86drmRandom.c Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00
xf86drmRandom.h
xf86drmSL.c Merge libdrm 2.4.96 2018-11-01 08:29:47 +00:00

libdrm - userspace library for drm

This  is libdrm,  a userspace  library for  accessing the  DRM, direct
rendering  manager, on  Linux,  BSD and  other  operating systems that
support the  ioctl interface.  The library  provides wrapper functions
for the  ioctls to avoid  exposing the kernel interface  directly, and
for chipsets with drm memory manager, support for tracking relocations
and  buffers.   libdrm  is  a  low-level library,  typically  used  by
graphics drivers  such as the Mesa  DRI drivers, the  X drivers, libva
and  similar projects.  New  functionality in  the kernel  DRM drivers
typically requires  a new  libdrm, but a  new libdrm will  always work
with an older kernel.


Compiling
---------

libdrm has two build systems, a legacy autotools build system, and a newer
meson build system. The meson build system is much faster, and offers a
slightly different interface, but otherwise provides an equivalent feature set.

To use it:

    meson builddir/

By default this will install into /usr/local, you can change your prefix
with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after 
the initial meson setup).

Then use ninja to build and install:

    ninja -C builddir/ install

If you are installing into a system location you will need to run install
separately, and as root.


Alternatively you can invoke autotools configure:

	./configure

By default, libdrm  will install into the /usr/local/  prefix.  If you
want  to  install   this  DRM  to  replace  your   system  copy,  pass
--prefix=/usr and  --exec-prefix=/ to configure.  If  you are building
libdrm  from a  git checkout,  you first  need to  run  the autogen.sh
script.  You can  pass any options to autogen.sh  that you would other
wise  pass to configure,  or you  can just  re-run configure  with the
options you need once autogen.sh finishes.

Next step is to build libdrm:

	make

and once make finishes successfully, install the package using

	make install

If you are installing into a system location, you will need to be root
to perform the install step.