• Show log

    Commit

  • Hash : 501fe465
    Author : Daniel Gibson
    Date : 2021-04-21T06:34:46

    sdl2-config.cmake.in: Make SDL2::SDL2 work with MinGW, fixes #3665
    
    It didn't work at all because shared libs defined in CMake with
    add_library() need something like IMPORTED_IMPLIB (pointing to a .dll.a
    or .lib for th DLLs) set to link on Windows.
    But even with that it didn't work because the order of the libs is very
    important: it must be -lmingw32 -lSDL2main -lSDL -mwindows - but
    with normal add_library(SDL2::SDL2 SHARED IMPORTED) libs, SDL2 itself
    is always linked first.
    So I use an "INTERFACE" library (usually used for header-only libs), which
    doesn't implicitly/automatically link anything so I can specify the whole
    order of the linked libs.
    (SDL2::SDL2-static is completely untested)
    

  • 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_w kc3_lang_org thodg_l thodg_m www_kmx_io thodg
    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)