mesa.cmake 598 Bytes
Newer Older
Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
1

2
add_external_project(mesa
Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16
  CONFIGURE_COMMAND <SOURCE_DIR>/configure
                    --prefix=<INSTALL_DIR>
                    --disable-static
                    --enable-shared
                    --enable-texture-float
                    --with-driver=xlib
                    # I wonder if this option makes it possible to use OSMesa
                    # and GL at same time.
                    --enable-gl-osmesa
                    # to keep mesa from requiring LLVM
                    --disable-gallium-llvm
                    --with-gallium-drivers=swrast
  BUILD_IN_SOURCE 1
)