blob: 8edf33373e9c006d48cddf9e9ce6eae29e2df696 [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 -080022AUTOMAKE_OPTIONS = subdir-objects
23
24SUBDIRS = . gtest util mapi/glapi/gen mapi
Matt Turner691c3042013-01-18 23:43:05 -080025
26if NEED_OPENGL_COMMON
27SUBDIRS += glsl mesa
28endif
29
Axel Davy3ecd9e12014-06-08 19:47:48 -040030SUBDIRS += loader
31
Matt Turnera9676ae2013-01-18 23:59:49 -080032if HAVE_DRI_GLX
33SUBDIRS += glx
34endif
35
Armin Kf423eba2013-08-11 17:27:23 +020036if HAVE_EGL_PLATFORM_WAYLAND
Matt Turner7a08a1e2014-12-06 23:04:12 -080037SUBDIRS += egl/wayland/wayland-egl egl/wayland/wayland-drm
Armin Kf423eba2013-08-11 17:27:23 +020038endif
39
Matt Turner1d4007f2013-11-10 17:37:54 -080040if HAVE_EGL_DRIVER_DRI2
41SUBDIRS += egl/drivers/dri2
42endif
43
Matt Turnera9676ae2013-01-18 23:59:49 -080044if HAVE_GBM
45SUBDIRS += gbm
46endif
47
48if HAVE_EGL
Matt Turner1d4007f2013-11-10 17:37:54 -080049SUBDIRS += egl/main
Matt Turnera9676ae2013-01-18 23:59:49 -080050endif
51
52if HAVE_GALLIUM
Emil Velikovb75e0d72014-07-20 23:20:57 +010053SUBDIRS += gallium
Matt Turnera9676ae2013-01-18 23:59:49 -080054endif
Matt Turnercdc3a6b2013-11-10 18:06:41 -080055
Matt Turner952b3242014-12-07 14:07:32 -080056EXTRA_DIST = egl/docs getopt hgl SConscript
Matt Turner145919b2014-12-18 13:33:29 -080057
58AM_CPPFLAGS = \
59 -I$(top_srcdir)/include/ \
60 -I$(top_srcdir)/src/mapi/ \
61 -I$(top_srcdir)/src/mesa/ \
62 $(DEFINES)
63
64noinst_LTLIBRARIES = libglsl_util.la
65
66libglsl_util_la_SOURCES = \
67 mesa/main/imports.c \
68 mesa/program/prog_hash_table.c \
69 mesa/program/symbol_table.c