• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Révision3cc18d820a60748c1c19fa5f4a388d9c05013392 (tree)
l'heure2009-07-08 18:42:05
AuteurGwenole Beauchesne <gbeauchesne@spli...>
CommiterAustin Yuan

Message de Log

Allow conditional build of video drivers (dummy, i965).

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>

Change Summary

Modification

--- a/Makefile.am
+++ b/Makefile.am
@@ -21,7 +21,14 @@
2121 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2222
2323 AUTOMAKE_OPTIONS = foreign
24-SUBDIRS = src dummy_drv_video i965_drv_video test
24+
25+SUBDIRS = src test
26+if BUILD_DUMMY_DRIVER
27+SUBDIRS += dummy_drv_video
28+endif
29+if BUILD_I965_DRIVER
30+SUBDIRS += i965_drv_video
31+endif
2532
2633 pkgconfigdir = @pkgconfigdir@
2734 pkgconfig_DATA = libva.pc
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,17 @@ AM_INIT_AUTOMAKE([dist-bzip2])
2727
2828 AM_CONFIG_HEADER([config.h])
2929
30+AC_ARG_ENABLE(dummy-driver,
31+ [AC_HELP_STRING([--enable-dummy-driver],
32+ [build dummy video driver])],
33+ [], [enable_dummy_driver=yes])
34+AM_CONDITIONAL(BUILD_DUMMY_DRIVER, test x$enable_dummy_driver = xyes)
35+
36+AC_ARG_ENABLE(i965-driver,
37+ [AC_HELP_STRING([--enable-i965-driver],
38+ [build i965 video driver])],
39+ [], [enable_i965_driver=yes])
40+
3041 AC_ARG_WITH(drivers-path,
3142 [AC_HELP_STRING([--with-drivers-path=[[path]]], [drivers path])],,
3243 [with_drivers_path="$libdir/va/drivers"])
@@ -49,6 +60,13 @@ PKG_CHECK_MODULES(LIBDRM_DEPS, [libdrm])
4960 AC_CHECK_PROG(gen4asm, [intel-gen4asm], yes, no)
5061 AM_CONDITIONAL(HAVE_GEN4ASM, test x$gen4asm = xyes)
5162
63+# Check for libdrm >= 2.4 (needed for i965_drv_video.so)
64+if test x$enable_i965_driver = xyes && ! $PKG_CONFIG --atleast-version=2.4 libdrm; then
65+ AC_MSG_WARN([libdrm < 2.4 found, disabling build of i965 video driver])
66+ enable_i965_driver=no
67+fi
68+AM_CONDITIONAL(BUILD_I965_DRIVER, test x$enable_i965_driver = xyes)
69+
5270 # We only need the headers, we don't link against the DRM libraries
5371 LIBVA_CFLAGS="$LIBDRM_DEPS_CFLAGS"
5472 AC_SUBST(LIBVA_CFLAGS)