meson: only build libglsl_util when needed
Signed-off-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19600>
This commit is contained in:

committed by
Marge Bot

parent
0404918f61
commit
e0adef2652
@@ -18,6 +18,15 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
libglsl_util = static_library(
|
||||
'glsl_util',
|
||||
glsl_util_files,
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
|
||||
dependencies : dep_valgrind,
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
build_by_default : false,
|
||||
)
|
||||
|
||||
subdir('glcpp')
|
||||
|
||||
bison_command = []
|
||||
|
@@ -36,18 +36,11 @@ else
|
||||
inc_amd_common_llvm = []
|
||||
endif
|
||||
|
||||
libglsl_util = static_library(
|
||||
'glsl_util',
|
||||
files(
|
||||
glsl_util_files = files(
|
||||
'mesa/main/extensions_table.c',
|
||||
'mesa/program/prog_parameter.c',
|
||||
'mesa/program/symbol_table.c',
|
||||
'mesa/program/dummy_errors.c',
|
||||
),
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
|
||||
dependencies : dep_valgrind,
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
build_by_default : false,
|
||||
)
|
||||
|
||||
sha1_h = custom_target(
|
||||
|
Reference in New Issue
Block a user