Not sure I get your point, you mean I find a way to identity the va driver path during gyp time?

If so, still not working, I suppose build xwalk on Ubuntu, it try load driver under /usr/lib/x86_64-linux-gnu/dri/. But xwalk build from Ubuntu should run on Fedora as well. In that case, it will fail.

Even worse, the driver so name could be changed as well, we could not suppose the driver name is  i965_drv_video.so or i965_dri.so. There is `vaGetDriverName`, but still it need call api in libva.