• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

hardware/intel/intel-driver


Commit MetaInfo

Revisiónfe6280841dfaaee94e8664517420f351cd334c86 (tree)
Tiempo2016-06-03 01:20:43
AutorXiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

Don't check WAYLAND_SCANNER if wayland isn't used or found

checking for WAYLAND... no
checking for LIBVA_WAYLAND_DEPS... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for WAYLAND_SCANNER... no
configure: error: Package requirements (wayland-scanner) were not met:

No package 'wayland-scanner' found

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>

Cambiar Resumen

Diferencia incremental

--- a/configure.ac
+++ b/configure.ac
@@ -173,17 +173,21 @@ AM_CONDITIONAL(USE_EGL, test "$USE_EGL" = "yes")
173173 # Check for Wayland
174174 USE_WAYLAND="no"
175175 if test "$enable_wayland" = "yes"; then
176- PKG_CHECK_MODULES([WAYLAND], [wayland-client], [USE_WAYLAND="yes"], [:])
177176 PKG_CHECK_MODULES([LIBVA_WAYLAND_DEPS], [libva-wayland],
178- [AC_DEFINE([HAVE_VA_WAYLAND], [1], [Defined to 1 if VA/Wayland API is enabled])],
179- [USE_WAYLAND="no"])
177+ [USE_WAYLAND="yes"], [:])
178+
179+ if test "$USE_WAYLAND" = "yes"; then
180+
181+ WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client`
182+ AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner],,
183+ [${WAYLAND_PREFIX}/bin$PATH_SEPARATOR$PATH])
184+
185+ AC_DEFINE([HAVE_VA_WAYLAND], [1],
186+ [Defined to 1 if VA/Wayland API is enabled])
187+ fi
180188 fi
181189 AM_CONDITIONAL(USE_WAYLAND, test "$USE_WAYLAND" = "yes")
182190
183-m4_ifdef([WAYLAND_SCANNER_RULES],
184- [WAYLAND_SCANNER_RULES(['$(top_builddir)/src/wayland'])],
185- [wayland_scanner_rules=""; AC_SUBST(wayland_scanner_rules)])
186-
187191 AC_OUTPUT([
188192 Makefile
189193 debian.upstream/Makefile
@@ -203,7 +207,6 @@ AC_OUTPUT([
203207 src/shaders/render/Makefile
204208 src/shaders/utils/Makefile
205209 src/shaders/vme/Makefile
206- src/wayland/Makefile
207210 ])
208211
209212 dnl Print summary
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -209,9 +209,12 @@ EXTRA_DIST += Android.mk intel_version.h.in $(PKG_VERSION_FILE)
209209 # Wayland protocol
210210 protocol_source_h = wayland-drm-client-protocol.h
211211 i965_output_wayland.c: $(protocol_source_h)
212-@wayland_scanner_rules@
212+%-client-protocol.h : %.xml
213+ $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@
213214
214-DIST_SUBDIRS += wayland
215+EXTRA_DIST += \
216+ wayland-drm.xml \
217+ $(NULL)
215218
216219 # Extra clean files so that maintainer-clean removes *everything*
217220 MAINTAINERCLEANFILES = Makefile.in config.h.in
--- a/src/wayland/Makefile.am
+++ /dev/null
@@ -1,28 +0,0 @@
1-# Copyright (C) 2012 Intel Corporation. All Rights Reserved.
2-#
3-# Permission is hereby granted, free of charge, to any person obtaining a
4-# copy of this software and associated documentation files (the
5-# "Software"), to deal in the Software without restriction, including
6-# without limitation the rights to use, copy, modify, merge, publish,
7-# distribute, sub license, and/or sell copies of the Software, and to
8-# permit persons to whom the Software is furnished to do so, subject to
9-# the following conditions:
10-#
11-# The above copyright notice and this permission notice (including the
12-# next paragraph) shall be included in all copies or substantial portions
13-# of the Software.
14-#
15-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16-# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
18-# IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
19-# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20-# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21-# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22-
23-EXTRA_DIST = \
24- wayland-drm.xml \
25- $(NULL)
26-
27-# Extra clean files so that maintainer-clean removes *everything*
28-MAINTAINERCLEANFILES = Makefile.in