Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make EGL support optional #123

Merged
merged 1 commit into from
Jun 6, 2017
Merged

Commits on May 17, 2017

  1. Make EGL support optional

    It is perfectly possible to build Mesa3D with just OpenGL support, and
    use with GLX in X.org, without having EGL/OpenGLES support.
    
    However, libepoxy currently unconditionally requires EGL support in its
    configure.ac, which causes a build failure when Mesa3D only provides
    full OpenGL support:
    
    checking for EGL... no
    configure: error: Package requirements (egl) were not met:
    
    Package egl was not found in the pkg-config search path.
    Perhaps you should add the directory containing `egl.pc'
    to the PKG_CONFIG_PATH environment variable
    Package 'egl', required by 'world', not found
    
    This commit fixes that by:
    
     - Adjusting the configure.ac to add a --{enable,disable}-egl option
       handled in the exact same way as --{enable,disable}-glx
    
     - Adjusting the meson build logic in the same way.
    
     - Adjusting src/dispatch_common.h to define PLATFORM_HAS_EGL correctly,
       which allows to not include any EGL related header file if EGL
       support is not enabled.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
    tpetazzoni committed May 17, 2017
    Configuration menu
    Copy the full SHA
    0511fc5 View commit details
    Browse the repository at this point in the history