blob: 1471fa0e48aab1a900f0668c0769fd8b61e1d885 [file] [log] [blame]
Matt Turner691c3042013-01-18 23:43:05 -08001# Copyright © 2013 Intel Corporation
2#
3# Permission is hereby granted, free of charge, to any person obtaining a
4# copy of this software and associated documentation files (the "Software"),
5# to deal in the Software without restriction, including without limitation
6# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7# and/or sell copies of the Software, and to permit persons to whom the
8# Software is furnished to do so, subject to the following conditions:
9#
10# The above copyright notice and this permission notice (including the next
11# paragraph) shall be included in all copies or substantial portions of the
12# Software.
13#
14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20# IN THE SOFTWARE.
Eric Anholt7edbf4b2012-05-15 10:21:31 -070021
Matt Turner145919b2014-12-18 13:33:29 -080022SUBDIRS = . gtest util mapi/glapi/gen mapi
Matt Turner691c3042013-01-18 23:43:05 -080023
Emil Velikov2f863832015-11-23 17:03:04 +000024# include only conditionally ?
25SUBDIRS += compiler
26
Jason Ekstrandef5dca22016-04-15 15:32:18 -070027if HAVE_INTEL_DRIVERS
28SUBDIRS += intel
29endif
30
Matt Turner691c3042013-01-18 23:43:05 -080031if NEED_OPENGL_COMMON
Emil Velikoveb636402016-01-18 12:16:48 +020032SUBDIRS += mesa
Matt Turner691c3042013-01-18 23:43:05 -080033endif
34
Jason Ekstrandef5dca22016-04-15 15:32:18 -070035# This explicitly comes after mesa because it depends on the i965 compiler
36if HAVE_INTEL_VULKAN
37SUBDIRS += intel/vulkan
38endif
39
Axel Davy3ecd9e12014-06-08 19:47:48 -040040SUBDIRS += loader
41
Matt Turnera9676ae2013-01-18 23:59:49 -080042if HAVE_DRI_GLX
43SUBDIRS += glx
44endif
45
Armin Kf423eba2013-08-11 17:27:23 +020046if HAVE_EGL_PLATFORM_WAYLAND
Matt Turner7a08a1e2014-12-06 23:04:12 -080047SUBDIRS += egl/wayland/wayland-egl egl/wayland/wayland-drm
Armin Kf423eba2013-08-11 17:27:23 +020048endif
49
Matt Turnera9676ae2013-01-18 23:59:49 -080050if HAVE_GBM
51SUBDIRS += gbm
52endif
53
54if HAVE_EGL
Emil Velikove3420392015-07-14 01:58:33 +010055SUBDIRS += egl
Matt Turnera9676ae2013-01-18 23:59:49 -080056endif
57
58if HAVE_GALLIUM
Emil Velikovb75e0d72014-07-20 23:20:57 +010059SUBDIRS += gallium
Matt Turnera9676ae2013-01-18 23:59:49 -080060endif
Matt Turnercdc3a6b2013-11-10 18:06:41 -080061
Emil Velikov5dc573e2015-03-21 20:45:22 +000062EXTRA_DIST = \
Emil Velikov5dc573e2015-03-21 20:45:22 +000063 getopt hgl SConscript
Matt Turner145919b2014-12-18 13:33:29 -080064
Kristian Høgsberg169b3892015-03-24 09:41:08 -070065AM_CFLAGS = $(VISIBILITY_CFLAGS)
66AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
67
Matt Turner145919b2014-12-18 13:33:29 -080068AM_CPPFLAGS = \
69 -I$(top_srcdir)/include/ \
70 -I$(top_srcdir)/src/mapi/ \
71 -I$(top_srcdir)/src/mesa/ \
72 $(DEFINES)
73
74noinst_LTLIBRARIES = libglsl_util.la
75
76libglsl_util_la_SOURCES = \
77 mesa/main/imports.c \
78 mesa/program/prog_hash_table.c \
Emil Velikov1df5a6c2015-04-15 13:40:55 +010079 mesa/program/symbol_table.c \
80 mesa/program/dummy_errors.c