chore: add bazel core examples
This commit is contained in:
parent
8fc27c43c7
commit
e9d536b8a1
1 changed files with 202 additions and 1 deletions
21
BUILD.bazel
21
BUILD.bazel
|
|
@ -46,7 +46,7 @@ cc_library(
|
|||
":bundled_glfw",
|
||||
":bundled_external_misc",
|
||||
],
|
||||
local_defines = select({
|
||||
defines = select({
|
||||
"@platforms//os:android": ["PLATFORM_ANDROID"],
|
||||
"@platforms//os:wasi": ["PLATFORM_WEB"],
|
||||
"@platforms//os:emscripten": ["PLATFORM_WEB"],
|
||||
|
|
@ -58,8 +58,18 @@ cc_library(
|
|||
name = "raylib",
|
||||
visibility = ["//visibility:public"],
|
||||
strip_include_prefix = "src",
|
||||
srcs = [
|
||||
"src/rglfw.c",
|
||||
"src/rtext.c",
|
||||
"src/utils.c",
|
||||
"src/rshapes.c",
|
||||
"src/rtextures.c",
|
||||
"src/raudio.c",
|
||||
"src/rmodels.c",
|
||||
],
|
||||
hdrs = [
|
||||
"src/raylib.h",
|
||||
"src/rcamera.h",
|
||||
"src/raymath.h",
|
||||
"src/rlgl.h",
|
||||
],
|
||||
|
|
@ -69,6 +79,12 @@ cc_library(
|
|||
":bundled_glfw_sources",
|
||||
":bundled_external_misc",
|
||||
],
|
||||
linkopts = select({
|
||||
"@platforms//os:windows": [
|
||||
"/DEFAULTLIB:winmm",
|
||||
],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
)
|
||||
|
||||
cc_binary(
|
||||
|
|
@ -78,6 +94,9 @@ cc_binary(
|
|||
target_compatible_with = [
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
linkopts = [
|
||||
"/DEFAULTLIB:winmm",
|
||||
],
|
||||
deps = [
|
||||
":rcore",
|
||||
":bundled_glfw",
|
||||
|
|
|
|||
Loading…
Reference in a new issue