Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libva
Commits
3cc18d82
Commit
3cc18d82
authored
Jul 08, 2009
by
Gwenole Beauchesne
Committed by
Austin Yuan
Jul 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow conditional build of video drivers (dummy, i965).
Signed-off-by:
Austin Yuan
<
shengquan.yuan@intel.com
>
parent
3b10124c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
Makefile.am
Makefile.am
+8
-1
configure.ac
configure.ac
+18
-0
No files found.
Makefile.am
View file @
3cc18d82
...
...
@@ -21,7 +21,14 @@
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
AUTOMAKE_OPTIONS
=
foreign
SUBDIRS
=
src dummy_drv_video i965_drv_video
test
SUBDIRS
=
src
test
if
BUILD_DUMMY_DRIVER
SUBDIRS
+=
dummy_drv_video
endif
if
BUILD_I965_DRIVER
SUBDIRS
+=
i965_drv_video
endif
pkgconfigdir
=
@pkgconfigdir@
pkgconfig_DATA
=
libva.pc
...
...
configure.ac
View file @
3cc18d82
...
...
@@ -27,6 +27,17 @@ AM_INIT_AUTOMAKE([dist-bzip2])
AM_CONFIG_HEADER([config.h])
AC_ARG_ENABLE(dummy-driver,
[AC_HELP_STRING([--enable-dummy-driver],
[build dummy video driver])],
[], [enable_dummy_driver=yes])
AM_CONDITIONAL(BUILD_DUMMY_DRIVER, test x$enable_dummy_driver = xyes)
AC_ARG_ENABLE(i965-driver,
[AC_HELP_STRING([--enable-i965-driver],
[build i965 video driver])],
[], [enable_i965_driver=yes])
AC_ARG_WITH(drivers-path,
[AC_HELP_STRING([--with-drivers-path=[[path]]], [drivers path])],,
[with_drivers_path="$libdir/va/drivers"])
...
...
@@ -49,6 +60,13 @@ PKG_CHECK_MODULES(LIBDRM_DEPS, [libdrm])
AC_CHECK_PROG(gen4asm, [intel-gen4asm], yes, no)
AM_CONDITIONAL(HAVE_GEN4ASM, test x$gen4asm = xyes)
# Check for libdrm >= 2.4 (needed for i965_drv_video.so)
if test x$enable_i965_driver = xyes && ! $PKG_CONFIG --atleast-version=2.4 libdrm; then
AC_MSG_WARN([libdrm < 2.4 found, disabling build of i965 video driver])
enable_i965_driver=no
fi
AM_CONDITIONAL(BUILD_I965_DRIVER, test x$enable_i965_driver = xyes)
# We only need the headers, we don't link against the DRM libraries
LIBVA_CFLAGS="$LIBDRM_DEPS_CFLAGS"
AC_SUBST(LIBVA_CFLAGS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment