Matt Turner | 691c304 | 2013-01-18 23:43:05 -0800 | [diff] [blame] | 1 | # 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 Anholt | 7edbf4b | 2012-05-15 10:21:31 -0700 | [diff] [blame] | 21 | |
Matt Turner | 145919b | 2014-12-18 13:33:29 -0800 | [diff] [blame] | 22 | AUTOMAKE_OPTIONS = subdir-objects |
| 23 | |
| 24 | SUBDIRS = . gtest util mapi/glapi/gen mapi |
Matt Turner | 691c304 | 2013-01-18 23:43:05 -0800 | [diff] [blame] | 25 | |
| 26 | if NEED_OPENGL_COMMON |
| 27 | SUBDIRS += glsl mesa |
| 28 | endif |
| 29 | |
Axel Davy | 3ecd9e1 | 2014-06-08 19:47:48 -0400 | [diff] [blame] | 30 | SUBDIRS += loader |
| 31 | |
Matt Turner | a9676ae | 2013-01-18 23:59:49 -0800 | [diff] [blame] | 32 | if HAVE_DRI_GLX |
| 33 | SUBDIRS += glx |
| 34 | endif |
| 35 | |
Armin K | f423eba | 2013-08-11 17:27:23 +0200 | [diff] [blame] | 36 | if HAVE_EGL_PLATFORM_WAYLAND |
Matt Turner | 7a08a1e | 2014-12-06 23:04:12 -0800 | [diff] [blame] | 37 | SUBDIRS += egl/wayland/wayland-egl egl/wayland/wayland-drm |
Armin K | f423eba | 2013-08-11 17:27:23 +0200 | [diff] [blame] | 38 | endif |
| 39 | |
Matt Turner | 1d4007f | 2013-11-10 17:37:54 -0800 | [diff] [blame] | 40 | if HAVE_EGL_DRIVER_DRI2 |
| 41 | SUBDIRS += egl/drivers/dri2 |
| 42 | endif |
| 43 | |
Matt Turner | a9676ae | 2013-01-18 23:59:49 -0800 | [diff] [blame] | 44 | if HAVE_GBM |
| 45 | SUBDIRS += gbm |
| 46 | endif |
| 47 | |
| 48 | if HAVE_EGL |
Matt Turner | 1d4007f | 2013-11-10 17:37:54 -0800 | [diff] [blame] | 49 | SUBDIRS += egl/main |
Matt Turner | a9676ae | 2013-01-18 23:59:49 -0800 | [diff] [blame] | 50 | endif |
| 51 | |
| 52 | if HAVE_GALLIUM |
Emil Velikov | b75e0d7 | 2014-07-20 23:20:57 +0100 | [diff] [blame] | 53 | SUBDIRS += gallium |
Matt Turner | a9676ae | 2013-01-18 23:59:49 -0800 | [diff] [blame] | 54 | endif |
Matt Turner | cdc3a6b | 2013-11-10 18:06:41 -0800 | [diff] [blame] | 55 | |
Matt Turner | 952b324 | 2014-12-07 14:07:32 -0800 | [diff] [blame] | 56 | EXTRA_DIST = egl/docs getopt hgl SConscript |
Matt Turner | 145919b | 2014-12-18 13:33:29 -0800 | [diff] [blame] | 57 | |
| 58 | AM_CPPFLAGS = \ |
| 59 | -I$(top_srcdir)/include/ \ |
| 60 | -I$(top_srcdir)/src/mapi/ \ |
| 61 | -I$(top_srcdir)/src/mesa/ \ |
| 62 | $(DEFINES) |
| 63 | |
| 64 | noinst_LTLIBRARIES = libglsl_util.la |
| 65 | |
| 66 | libglsl_util_la_SOURCES = \ |
| 67 | mesa/main/imports.c \ |
| 68 | mesa/program/prog_hash_table.c \ |
| 69 | mesa/program/symbol_table.c |