hardware/intel/intel-driver
Revisión | fe6280841dfaaee94e8664517420f351cd334c86 (tree) |
---|---|
Tiempo | 2016-06-03 01:20:43 |
Autor | Xiang, Haihao <haihao.xiang@inte...> |
Commiter | Xiang, Haihao |
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>
@@ -173,17 +173,21 @@ AM_CONDITIONAL(USE_EGL, test "$USE_EGL" = "yes") | ||
173 | 173 | # Check for Wayland |
174 | 174 | USE_WAYLAND="no" |
175 | 175 | if test "$enable_wayland" = "yes"; then |
176 | - PKG_CHECK_MODULES([WAYLAND], [wayland-client], [USE_WAYLAND="yes"], [:]) | |
177 | 176 | 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 | |
180 | 188 | fi |
181 | 189 | AM_CONDITIONAL(USE_WAYLAND, test "$USE_WAYLAND" = "yes") |
182 | 190 | |
183 | -m4_ifdef([WAYLAND_SCANNER_RULES], | |
184 | - [WAYLAND_SCANNER_RULES(['$(top_builddir)/src/wayland'])], | |
185 | - [wayland_scanner_rules=""; AC_SUBST(wayland_scanner_rules)]) | |
186 | - | |
187 | 191 | AC_OUTPUT([ |
188 | 192 | Makefile |
189 | 193 | debian.upstream/Makefile |
@@ -203,7 +207,6 @@ AC_OUTPUT([ | ||
203 | 207 | src/shaders/render/Makefile |
204 | 208 | src/shaders/utils/Makefile |
205 | 209 | src/shaders/vme/Makefile |
206 | - src/wayland/Makefile | |
207 | 210 | ]) |
208 | 211 | |
209 | 212 | dnl Print summary |
@@ -209,9 +209,12 @@ EXTRA_DIST += Android.mk intel_version.h.in $(PKG_VERSION_FILE) | ||
209 | 209 | # Wayland protocol |
210 | 210 | protocol_source_h = wayland-drm-client-protocol.h |
211 | 211 | i965_output_wayland.c: $(protocol_source_h) |
212 | -@wayland_scanner_rules@ | |
212 | +%-client-protocol.h : %.xml | |
213 | + $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ | |
213 | 214 | |
214 | -DIST_SUBDIRS += wayland | |
215 | +EXTRA_DIST += \ | |
216 | + wayland-drm.xml \ | |
217 | + $(NULL) | |
215 | 218 | |
216 | 219 | # Extra clean files so that maintainer-clean removes *everything* |
217 | 220 | MAINTAINERCLEANFILES = Makefile.in config.h.in |
@@ -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 |