libsdl_image

Add to xmake.lua

add_requires("libsdl_image")

Learn how to add and link packages with Xmake →

Information

Recipe updated
2025-02-08T05:52:39.000Z

Platforms

No platform information available.

Options

No configurable options.

Versions

No versions listed.

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "libsdl_image"

show info

xrepo info "libsdl_image"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("libsdl_image")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("libsdl_image")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "libsdl_image" shell