• Show log

    Commit

  • Hash : c3a7cc34
    Author : Max Krummenacher
    Date : 2022-01-10T21:52:02

    cmake: sdlchecks.cmake: pass cflags to the appropriate cmake variable
    
    If egl.pc sets at least two macros as the i.MX Vivante driver does, e.g.:
    | Cflags: -I${includedir} -DLINUX -DWL_EGL_PLATFORM
    
    then we get the following error during configuration:
    
    | -- Performing Test HAVE_OPENGL_EGL
    | CMake Error: Parse error in command line argument: WL_EGL_PLATFORM
    |  Should be: VAR:type=value
    
    If one changes to add a value to the macro, e.g.
    | Cflags: -I${includedir} -DLINUX=1 -DWL_EGL_PLATFORM=1
    then cmake does not error out but the macro is not passed to the
    C compiler.
    
    CMAKE_REQUIRED_FLAGS is the wrong variable to pass the CFLAGS in,
    CMAKE_REQUIRED_DEFINITIONS should be used.
    
    Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags

  • README.md

  • Simple DirectMedia Layer (SDL) Version 2.0

    https://www.libsdl.org/

    Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve’s award winning catalog and many Humble Bundle games.

    More extensive documentation is available in the docs directory, starting with README.md

    Enjoy!

    Sam Lantinga (slouken@libsdl.org)