diff options
Diffstat (limited to 'src/gallium/winsys/kmsro/drm/meson.build')
-rw-r--r-- | src/gallium/winsys/kmsro/drm/meson.build | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gallium/winsys/kmsro/drm/meson.build b/src/gallium/winsys/kmsro/drm/meson.build index f157982d728..e8c350e081b 100644 --- a/src/gallium/winsys/kmsro/drm/meson.build +++ b/src/gallium/winsys/kmsro/drm/meson.build @@ -18,6 +18,14 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +kmsro_c_args = [] +if with_gallium_etnaviv + kmsro_c_args += '-DGALLIUM_ETNAVIV' +endif +if with_gallium_vc4 + kmsro_c_args += '-DGALLIUM_VC4' +endif + libkmsrowinsys = static_library( 'kmsrowinsys', files('kmsro_drm_winsys.c'), @@ -25,9 +33,8 @@ libkmsrowinsys = static_library( inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_winsys, ], - c_args : [c_vis_args], + c_args : [c_vis_args, kmsro_c_args], dependencies: dep_libdrm, - link_with : libvc4winsys, ) driver_kmsro = declare_dependency( |