2013-01-18 23:43:05 -08:00
|
|
|
# Copyright © 2013 Intel Corporation
|
|
|
|
|
#
|
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
|
|
|
# to deal in the Software without restriction, including without limitation
|
|
|
|
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
|
# and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
|
# Software is furnished to do so, subject to the following conditions:
|
|
|
|
|
#
|
|
|
|
|
# The above copyright notice and this permission notice (including the next
|
|
|
|
|
# paragraph) shall be included in all copies or substantial portions of the
|
|
|
|
|
# Software.
|
|
|
|
|
#
|
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
|
|
# IN THE SOFTWARE.
|
2012-05-15 10:21:31 -07:00
|
|
|
|
2017-10-25 14:04:35 +01:00
|
|
|
.PHONY: git_sha1.h
|
|
|
|
|
git_sha1.h: $(top_srcdir)/src/git_sha1.h.in
|
|
|
|
|
@echo "updating $@"
|
|
|
|
|
@$(PYTHON2) $(top_srcdir)/bin/git_sha1_gen.py --output $@
|
2016-05-30 12:09:04 +01:00
|
|
|
|
|
|
|
|
BUILT_SOURCES = git_sha1.h
|
2016-06-21 18:05:23 +01:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
2018-01-17 14:13:11 -08:00
|
|
|
EXTRA_DIST = git_sha1.h.in meson.build
|
2016-06-06 19:39:40 +01:00
|
|
|
|
2014-12-18 13:33:29 -08:00
|
|
|
SUBDIRS = . gtest util mapi/glapi/gen mapi
|
2013-01-18 23:43:05 -08:00
|
|
|
|
2016-10-04 11:05:30 -04:00
|
|
|
if HAVE_OPENGL
|
|
|
|
|
gldir = $(includedir)/GL
|
|
|
|
|
gl_HEADERS = \
|
|
|
|
|
$(top_srcdir)/include/GL/gl.h \
|
|
|
|
|
$(top_srcdir)/include/GL/glext.h \
|
|
|
|
|
$(top_srcdir)/include/GL/glcorearb.h \
|
|
|
|
|
$(top_srcdir)/include/GL/gl_mangle.h
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if HAVE_GLX
|
|
|
|
|
glxdir = $(includedir)/GL
|
|
|
|
|
glx_HEADERS = \
|
|
|
|
|
$(top_srcdir)/include/GL/glx.h \
|
|
|
|
|
$(top_srcdir)/include/GL/glxext.h \
|
|
|
|
|
$(top_srcdir)/include/GL/glx_mangle.h
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
pkgconfig_DATA = mesa/gl.pc
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if HAVE_COMMON_OSMESA
|
|
|
|
|
osmesadir = $(includedir)/GL
|
|
|
|
|
osmesa_HEADERS = $(top_srcdir)/include/GL/osmesa.h
|
|
|
|
|
endif
|
|
|
|
|
|
2015-11-23 17:03:04 +00:00
|
|
|
# include only conditionally ?
|
|
|
|
|
SUBDIRS += compiler
|
|
|
|
|
|
2017-10-24 17:14:20 +01:00
|
|
|
## Optionally required by EGL
|
2017-03-04 21:42:18 +00:00
|
|
|
if HAVE_PLATFORM_WAYLAND
|
|
|
|
|
SUBDIRS += egl/wayland/wayland-drm
|
|
|
|
|
endif
|
|
|
|
|
|
2017-03-01 19:18:56 -08:00
|
|
|
if HAVE_VULKAN_COMMON
|
|
|
|
|
SUBDIRS += vulkan
|
|
|
|
|
endif
|
2017-07-10 10:43:08 -07:00
|
|
|
|
2017-03-01 19:18:56 -08:00
|
|
|
EXTRA_DIST += vulkan/registry/vk.xml
|
2017-07-10 10:43:08 -07:00
|
|
|
EXTRA_DIST += vulkan/registry/vk_android_native_buffer.xml
|
2017-03-01 19:18:56 -08:00
|
|
|
|
2016-10-07 09:16:09 +10:00
|
|
|
if HAVE_AMD_DRIVERS
|
2016-09-02 17:09:45 +10:00
|
|
|
SUBDIRS += amd
|
|
|
|
|
endif
|
|
|
|
|
|
2016-04-15 15:32:18 -07:00
|
|
|
if HAVE_INTEL_DRIVERS
|
|
|
|
|
SUBDIRS += intel
|
|
|
|
|
endif
|
|
|
|
|
|
2017-08-18 12:55:43 -07:00
|
|
|
if HAVE_BROADCOM_DRIVERS
|
2016-10-26 10:14:37 -07:00
|
|
|
SUBDIRS += broadcom
|
|
|
|
|
endif
|
|
|
|
|
|
2013-01-18 23:43:05 -08:00
|
|
|
if NEED_OPENGL_COMMON
|
2016-01-18 12:16:48 +02:00
|
|
|
SUBDIRS += mesa
|
2013-01-18 23:43:05 -08:00
|
|
|
endif
|
|
|
|
|
|
2014-06-08 19:47:48 -04:00
|
|
|
SUBDIRS += loader
|
|
|
|
|
|
2013-01-18 23:59:49 -08:00
|
|
|
if HAVE_DRI_GLX
|
|
|
|
|
SUBDIRS += glx
|
|
|
|
|
endif
|
|
|
|
|
|
2016-04-20 19:44:51 +01:00
|
|
|
## Optionally required by EGL (aka PLATFORM_GBM)
|
2013-01-18 23:59:49 -08:00
|
|
|
if HAVE_GBM
|
|
|
|
|
SUBDIRS += gbm
|
|
|
|
|
endif
|
|
|
|
|
|
2016-04-20 19:44:51 +01:00
|
|
|
## Optionally required by EGL
|
|
|
|
|
if HAVE_PLATFORM_WAYLAND
|
|
|
|
|
SUBDIRS += egl/wayland/wayland-egl
|
|
|
|
|
endif
|
|
|
|
|
|
2013-01-18 23:59:49 -08:00
|
|
|
if HAVE_EGL
|
2015-07-14 01:58:33 +01:00
|
|
|
SUBDIRS += egl
|
2013-01-18 23:59:49 -08:00
|
|
|
endif
|
|
|
|
|
|
2016-10-07 09:16:09 +10:00
|
|
|
# Requires wayland-drm
|
|
|
|
|
if HAVE_RADEON_VULKAN
|
|
|
|
|
SUBDIRS += amd/vulkan
|
|
|
|
|
endif
|
|
|
|
|
|
2013-01-18 23:59:49 -08:00
|
|
|
if HAVE_GALLIUM
|
2014-07-20 23:20:57 +01:00
|
|
|
SUBDIRS += gallium
|
2013-01-18 23:59:49 -08:00
|
|
|
endif
|
2013-11-10 18:06:41 -08:00
|
|
|
|
2017-01-12 17:01:44 +00:00
|
|
|
EXTRA_DIST += \
|
2016-10-16 23:16:19 +11:00
|
|
|
getopt hgl SConscript \
|
|
|
|
|
$(top_srcdir)/include/GL/mesa_glinterop.h
|
2014-12-18 13:33:29 -08:00
|
|
|
|
2015-03-24 09:41:08 -07:00
|
|
|
AM_CFLAGS = $(VISIBILITY_CFLAGS)
|
|
|
|
|
AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
|
|
|
|
|
|
2014-12-18 13:33:29 -08:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
|
-I$(top_srcdir)/include/ \
|
|
|
|
|
-I$(top_srcdir)/src/mapi/ \
|
|
|
|
|
-I$(top_srcdir)/src/mesa/ \
|
2015-03-11 17:31:11 -07:00
|
|
|
-I$(top_srcdir)/src/gallium/include \
|
|
|
|
|
-I$(top_srcdir)/src/gallium/auxiliary \
|
2014-12-18 13:33:29 -08:00
|
|
|
$(DEFINES)
|
|
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libglsl_util.la
|
|
|
|
|
|
|
|
|
|
libglsl_util_la_SOURCES = \
|
2016-06-12 18:56:43 -04:00
|
|
|
mesa/main/extensions_table.c \
|
2014-12-18 13:33:29 -08:00
|
|
|
mesa/main/imports.c \
|
2015-03-11 17:31:11 -07:00
|
|
|
mesa/program/prog_parameter.c \
|
2015-04-15 13:40:55 +01:00
|
|
|
mesa/program/symbol_table.c \
|
|
|
|
|
mesa/program/dummy_errors.c
|