mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 06:46:13 +00:00
build: Only build the assembler if flex and bison are found
And start displaying a nice summary of what we are going to compile. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
9d3707a78f
commit
5435708a50
@ -21,7 +21,11 @@
|
|||||||
|
|
||||||
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
|
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
|
||||||
|
|
||||||
SUBDIRS = lib man tools scripts benchmarks demos assembler
|
SUBDIRS = lib man tools scripts benchmarks demos
|
||||||
|
|
||||||
|
if BUILD_ASSEMBLER
|
||||||
|
SUBDIRS += assembler
|
||||||
|
endif
|
||||||
|
|
||||||
if BUILD_SHADER_DEBUGGER
|
if BUILD_SHADER_DEBUGGER
|
||||||
SUBDIRS += debugger
|
SUBDIRS += debugger
|
||||||
|
15
configure.ac
15
configure.ac
@ -81,6 +81,12 @@ if test x"$udev" = xyes; then
|
|||||||
fi
|
fi
|
||||||
PKG_CHECK_MODULES(GLIB, glib-2.0)
|
PKG_CHECK_MODULES(GLIB, glib-2.0)
|
||||||
|
|
||||||
|
# can we build the assembler?
|
||||||
|
AS_IF([test x"$LEX" != "x:" -a x"$YACC" != xyacc],
|
||||||
|
[enable_assembler=yes],
|
||||||
|
[enable_assembler=no])
|
||||||
|
AM_CONDITIONAL(BUILD_ASSEMBLER, [test "x$enable_assembler" = xyes])
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Configuration options
|
# Configuration options
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
@ -178,4 +184,13 @@ AC_CONFIG_FILES([
|
|||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
# Print a summary of the compilation
|
||||||
|
echo ""
|
||||||
|
echo "Intel GPU tools"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo " • Tools:"
|
||||||
|
echo " Assembler: ${enable_assembler}"
|
||||||
|
echo ""
|
||||||
|
|
||||||
# vim: set ft=config ts=8 sw=8 tw=0 noet :
|
# vim: set ft=config ts=8 sw=8 tw=0 noet :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user