diff options
Diffstat (limited to 'src/gallium/winsys/vc4/drm/meson.build')
-rw-r--r-- | src/gallium/winsys/vc4/drm/meson.build | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gallium/winsys/vc4/drm/meson.build b/src/gallium/winsys/vc4/drm/meson.build index 58216dc5f54..55c85734e04 100644 --- a/src/gallium/winsys/vc4/drm/meson.build +++ b/src/gallium/winsys/vc4/drm/meson.build @@ -18,12 +18,23 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +dep_simpenrose = dependency('simpenrose', required : false) + +vc4_winsys_c_args = [] +if with_gallium_kmsro + vc4_winsys_c_args += '-DGALLIUM_KMSRO' +endif + +if dep_simpenrose.found() + vc4_winsys_c_args += '-DUSE_VC4_SIMULATOR' +endif + libvc4winsys = static_library( 'vc4winsys', files('vc4_drm_winsys.c'), include_directories : [ inc_src, inc_include, - inc_gallium, inc_gallium_aux, inc_gallium_drivers, + inc_gallium, inc_gallium_aux, inc_gallium_drivers, inc_gallium_winsys, ], - c_args : [c_vis_args], + c_args : [c_vis_args, vc4_winsys_c_args], ) |