Skip to content

00mjk/sdl2

 
 

SDL2 built with Bazel

⚠️ This project is a work in progress ⚠️

Your experience may vary. Contributions are welcome!

Getting Started

Add bazelregistry/sdl2 repository to your bazel WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazelregistry_sdl2",
    strip_prefix = "sdl2-c3efa24f546f0d8be97aaf1609688905e585cd69",
    urls = ["https://github.com/bazelregistry/sdl2/archive/c3efa24f546f0d8be97aaf1609688905e585cd69.zip"],
    sha256 = "735b86e808d78c3a6e7db86c4532140be4ad5d7349feea2dbfef7ea1382c31eb",
)

Use as a static library

cc_library(
    name = "example",
    srcs = "example.cc",
    deps = ["@bazelregistry_sdl2//:SDL2_lib"],
)

Use as a shared library

There are several targets for getting a shared library of SDL2

# macOS
@bazelregistry_sdl2//:SDL2_dylib
# Linux
@bazelregistry_sdl2//:libSDL2.so
# Windows
@bazelregistry_sdl2//::SDL2.dll

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 66.7%
  • C++ 24.5%
  • Objective-C 3.2%
  • Shell 1.7%
  • M4 1.3%
  • Java 0.9%
  • Other 1.7%