<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 21, 2016 at 6:16 AM, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
<br>
Autoconf already does the exact same thing as the manually written rule.<br>
<br>
Signed-off-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
---<br>
<br>
IMHO we can/should nuke --with-vulkan-icddir all together and/or<br>
change it to /usr/share vs /etc (according to the Vulkan docs). If there<br>
is something to control that should be the location of the module, right?<br></blockquote><div><br></div>Right. Perhaps /usr/share would be better. That way local installs end up in .local/share/vulkan which works by default.<br><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-Emil<br>
<br>
src/intel/vulkan/Makefile.am | 11 +----------<br>
1 file changed, 1 insertion(+), 10 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am<br>
index 071d118..cf7b234 100644<br>
--- a/src/intel/vulkan/Makefile.am<br>
+++ b/src/intel/vulkan/Makefile.am<br>
@@ -184,13 +184,7 @@ libvulkan_intel_la_LDFLAGS = \<br>
$(LD_NO_UNDEFINED)<br>
<br>
<br>
-# Generate icd files. It would be nice to just be able to add these to<br>
-# AC_CONFIG_FILES, but @libdir@ typically expands to '${exec_prefix}/lib64',<br>
-# which we can't put in the icd file. When running sed from the Makefile we<br>
-# can use ${libdir}, which expands completely and we avoid putting Makefile<br>
-# variables in the icd file.<br>
-<br>
-icdconfdir=$(sysconfdir)/vulkan/icd.d<br>
+icdconfdir = @VULKAN_ICD_INSTALL_DIR@<br>
icdconf_DATA = intel_icd.json<br>
<br>
# Libvulkan with dummy gem. Used for unit tests.<br>
@@ -206,6 +200,3 @@ libvulkan_test_la_CFLAGS = \<br>
libvulkan_test_la_LIBADD = $(libvulkan_intel_la_LIBADD)<br>
<br>
include $(top_srcdir)/<a href="http://install-lib-links.mk" rel="noreferrer" target="_blank">install-lib-links.mk</a><br>
-<br>
-install-data-local:<br>
- $(INSTALL_DATA) -D $(srcdir)/intel_icd.json $(VULKAN_ICD_INSTALL_DIR)/intel_icd.json<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.8.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>