chore: add bazel audio examples
This commit is contained in:
parent
536ab4e1ec
commit
729976973c
1
examples/audio/.bazelrc
Normal file
1
examples/audio/.bazelrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
common --enable_runfiles
|
||||||
57
examples/audio/BUILD.bazel
Normal file
57
examples/audio/BUILD.bazel
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
||||||
|
|
||||||
|
cc_binary(
|
||||||
|
name = "audio_mixed_processor",
|
||||||
|
srcs = ["audio_mixed_processor.c"],
|
||||||
|
deps = ["@raylib"],
|
||||||
|
data = [
|
||||||
|
"resources/country.mp3",
|
||||||
|
"resources/coin.wav",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
cc_binary(
|
||||||
|
name = "audio_module_playing",
|
||||||
|
srcs = ["audio_module_playing.c"],
|
||||||
|
deps = ["@raylib"],
|
||||||
|
data = [
|
||||||
|
"resources/mini1111.xm",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
cc_binary(
|
||||||
|
name = "audio_music_stream",
|
||||||
|
srcs = ["audio_music_stream.c"],
|
||||||
|
deps = ["@raylib"],
|
||||||
|
data = [
|
||||||
|
"resources/country.mp3",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
cc_binary(
|
||||||
|
name = "audio_raw_stream",
|
||||||
|
srcs = ["audio_raw_stream.c"],
|
||||||
|
deps = ["@raylib"],
|
||||||
|
)
|
||||||
|
cc_binary(
|
||||||
|
name = "audio_sound_loading",
|
||||||
|
srcs = ["audio_sound_loading.c"],
|
||||||
|
deps = ["@raylib"],
|
||||||
|
data = [
|
||||||
|
"resources/sound.wav",
|
||||||
|
"resources/target.ogg",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
cc_binary(
|
||||||
|
name = "audio_sound_multi",
|
||||||
|
srcs = ["audio_sound_multi.c"],
|
||||||
|
deps = ["@raylib"],
|
||||||
|
data = [
|
||||||
|
"resources/sound.wav",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
cc_binary(
|
||||||
|
name = "audio_stream_effects",
|
||||||
|
srcs = ["audio_stream_effects.c"],
|
||||||
|
deps = ["@raylib"],
|
||||||
|
data = [
|
||||||
|
"resources/country.mp3",
|
||||||
|
],
|
||||||
|
)
|
||||||
3
examples/audio/MODULE.bazel
Normal file
3
examples/audio/MODULE.bazel
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
bazel_dep(name = "rules_cc", version = "0.0.9")
|
||||||
|
bazel_dep(name = "raylib")
|
||||||
|
local_path_override(module_name = "raylib", path = "../..")
|
||||||
Loading…
Reference in New Issue
Block a user