meson: don't install windows headers on non-windows platforms
authorMarc Dietrich <marvin24@gmx.de>
Thu, 1 Feb 2018 12:27:28 +0000 (13:27 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Thu, 1 Feb 2018 15:33:02 +0000 (15:33 +0000)
Only dive into the windows subdir if windows platform is selected.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Fixes: 5ef75cb02b2b4db5506b8 "meson: build src/glx/windows"
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/glx/meson.build

index 04cd647ee494e1d7ea20fdd23c1a5951976b7948..e645b22b5fe2798e53acaf9458909b0edc2052e6 100644 (file)
@@ -18,7 +18,9 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 
-subdir('windows')
+if with_dri_platform == 'windows'
+  subdir('windows')
+endif
 
 files_libglx = files(
   'clientattrib.c',