Dylan Baker | d199225 | 2017-09-14 17:57:17 -0700 | [diff] [blame] | 1 | # Copyright © 2017 Intel Corporation |
| 2 | |
| 3 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
| 4 | # of this software and associated documentation files (the "Software"), to deal |
| 5 | # in the Software without restriction, including without limitation the rights |
| 6 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 7 | # copies of the Software, and to permit persons to whom the Software is |
| 8 | # furnished to do so, subject to the following conditions: |
| 9 | |
| 10 | # The above copyright notice and this permission notice shall be included in |
| 11 | # all copies or substantial portions of the Software. |
| 12 | |
| 13 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 14 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 16 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 17 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 18 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 19 | # SOFTWARE. |
| 20 | |
Dylan Baker | d199225 | 2017-09-14 17:57:17 -0700 | [diff] [blame] | 21 | inc_common = include_directories( |
| 22 | '../include', '.', 'mapi', 'mesa', 'gallium/include', 'gallium/auxiliary') |
| 23 | inc_mesa = include_directories('mesa') |
| 24 | inc_mapi = include_directories('mapi') |
Dylan Baker | 3218056 | 2017-09-20 20:11:32 -0700 | [diff] [blame] | 25 | inc_src = include_directories('.') |
| 26 | |
| 27 | libglsl_util = static_library( |
| 28 | 'glsl_util', |
| 29 | files('mesa/main/extensions_table.c', 'mesa/main/imports.c', |
| 30 | 'mesa/program/prog_parameter.c', 'mesa/program/symbol_table.c', |
| 31 | 'mesa/program/dummy_errors.c'), |
| 32 | include_directories : [inc_common], |
| 33 | c_args : [c_vis_args], |
| 34 | build_by_default : false, |
| 35 | ) |
| 36 | |
Eric Engestrom | 05a94a4 | 2017-10-24 18:03:39 +0100 | [diff] [blame^] | 37 | sha1_h = custom_target( |
| 38 | 'git_sha1.h', |
Dylan Baker | 3218056 | 2017-09-20 20:11:32 -0700 | [diff] [blame] | 39 | output : 'git_sha1.h', |
Eric Engestrom | 05a94a4 | 2017-10-24 18:03:39 +0100 | [diff] [blame^] | 40 | command : [prog_python2, git_sha1_gen_py, '--output', '@OUTPUT@'], |
| 41 | build_always : true, # commit sha1 can change without having touched these files |
Dylan Baker | 3218056 | 2017-09-20 20:11:32 -0700 | [diff] [blame] | 42 | ) |
Dylan Baker | d199225 | 2017-09-14 17:57:17 -0700 | [diff] [blame] | 43 | |
| 44 | subdir('gtest') |
| 45 | subdir('util') |
Dylan Baker | 3218056 | 2017-09-20 20:11:32 -0700 | [diff] [blame] | 46 | subdir('mapi/glapi/gen') |
| 47 | subdir('mapi') |
Dylan Baker | d199225 | 2017-09-14 17:57:17 -0700 | [diff] [blame] | 48 | # TODO: opengl |
Dylan Baker | d199225 | 2017-09-14 17:57:17 -0700 | [diff] [blame] | 49 | # TODO: osmesa |
| 50 | subdir('compiler') |
| 51 | subdir('egl/wayland/wayland-drm') |
| 52 | subdir('vulkan') |
Dylan Baker | 673dda8 | 2017-09-20 11:53:29 -0700 | [diff] [blame] | 53 | subdir('amd') |
Eric Anholt | 1ae8018 | 2017-10-12 13:53:12 -0700 | [diff] [blame] | 54 | if with_gallium_vc4 |
| 55 | subdir('broadcom') |
| 56 | endif |
Dylan Baker | d199225 | 2017-09-14 17:57:17 -0700 | [diff] [blame] | 57 | subdir('intel') |
Dylan Baker | 3218056 | 2017-09-20 20:11:32 -0700 | [diff] [blame] | 58 | subdir('mesa') |
Dylan Baker | a47c525 | 2017-09-22 12:55:00 -0700 | [diff] [blame] | 59 | subdir('loader') |
| 60 | subdir('glx') |
Dylan Baker | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 61 | if with_platform_wayland |
| 62 | subdir('egl/wayland/wayland-egl') |
| 63 | endif |
Dylan Baker | 816bf7d1 | 2017-09-28 15:53:53 -0700 | [diff] [blame] | 64 | if with_gbm |
| 65 | subdir('gbm') |
| 66 | endif |
Dylan Baker | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 67 | if with_egl |
| 68 | subdir('egl') |
| 69 | endif |
Dylan Baker | b1b6539 | 2017-09-28 22:25:02 -0700 | [diff] [blame] | 70 | subdir('gallium') |