generated from zpervan/ImguiSFMLBazel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
executable file
·52 lines (46 loc) · 1.02 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
load("@rules_cc//cc:defs.bzl", "cc_binary")
# Game rules
cc_binary(
name = "main",
srcs = ["Game/main.cpp"],
data = ["//Assets:copy_fonts"],
deps = [
"//:game",
"@spdloglib//:spdlog",
],
)
cc_library(
name = "game",
srcs = ["Game/game.cpp"],
hdrs = ["Game/game.h"],
linkopts = select({
"@platforms//os:windows": ["-DEFAULTLIB:user32.lib"],
"@platforms//os:linux": [
"-pthread",
"-lX11",
],
}),
visibility = ["//visibility:public"],
deps = [
"//Game/Entities:entities",
"//Game/GUI:gui",
"@spdloglib//:spdlog",
],
)
cc_library(
name = "game-bootstrap",
srcs = ["Game/constants.h"],
visibility = ["//visibility:public"],
)
# Map editor rules
cc_binary(
name = "map-editor",
srcs = ["MapEditor/main.cpp"],
deps = [
"//MapEditor/Core:core",
"//MapEditor/GUI:gui",
"//MapEditor/Map:map",
"@imguilib//:imgui",
"@spdloglib//:spdlog",
],
)