xref: /aosp_15_r20/external/mesa3d/src/glx/apple/meson.build (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1# Copyright © 2017 Jon Turney
2# SPDX-License-Identifier: MIT
3
4# library for native GL on macos
5files_libappleglx = files(
6  'apple_cgl.c',
7  'apple_cgl.h',
8  'appledri.c',
9  'appledri.h',
10  'appledristr.h',
11  'apple_glapi.c',
12  'apple_glx.c',
13  'apple_glx_context.c',
14  'apple_glx_context.h',
15  'apple_glx_drawable.c',
16  'apple_glx_drawable.h',
17  'apple_glx.h',
18  'apple_glx_log.c',
19  'apple_glx_log.h',
20  'apple_glx_pbuffer.c',
21  'apple_glx_pixmap.c',
22  'apple_glx_surface.c',
23  'apple_visual.c',
24  'apple_visual.h',
25  'apple_xgl_api.h',
26  'apple_xgl_api_read.c',
27  'apple_xgl_api_stereo.c',
28  'apple_xgl_api_viewport.c',
29  'glx_empty.c',
30)
31
32dep_xplugin = null_dep
33if with_dri_platform == 'apple'
34  dep_xplugin = meson.get_compiler('c').find_library('Xplugin')
35endif
36
37libappleglx = static_library(
38  'glxapple',
39  [files_libappleglx, glapitable_h],
40  include_directories: [inc_mesa, inc_glx, inc_src, inc_include, inc_glapi, inc_gallium, inc_loader],
41  dependencies: [dep_xext, dep_xplugin],
42  gnu_symbol_visibility : 'hidden',
43  build_by_default: false,
44)
45