-
Notifications
You must be signed in to change notification settings - Fork 6
/
WORKSPACE
152 lines (129 loc) · 4.57 KB
/
WORKSPACE
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
######################################################################
# gflags
######################################################################
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
#load("//rules:patched_http_archive.bzl", "patched_http_archive")
load(
"@bazel_tools//tools/build_defs/repo:git.bzl",
"git_repository",
"new_git_repository",
)
http_archive(
name = "com_github_gflags_gflags",
patches = ["//rules:gflags.patch"],
patch_args = ["-p1"],
strip_prefix = "gflags-2e227c3daae2ea8899f49858a23f3d318ea39b57",
sha256 = "c5554661e7dc413f3c8ed8ae48034c8b34cf77ab13d49ed199821ef5544dd4ef",
urls = ["https://github.com/gflags/gflags/archive/2e227c3daae2ea8899f49858a23f3d318ea39b57.zip"],
)
bind(
name = "gflags",
actual = "@com_github_gflags_gflags//:gflags",
)
######################################################################
# imgui
######################################################################
new_git_repository(
name = "imgui_git",
build_file = "//rules:imgui.BUILD",
remote = "https://github.com/ocornut/imgui.git",
tag = "v1.74",
)
bind(
name = "imgui",
actual = "@imgui_git//:imgui",
)
bind(
name = "imgui_sdl_opengl",
actual = "@imgui_git//:imgui_sdl_opengl",
)
######################################################################
# IconFontCppHeaders
######################################################################
new_git_repository(
name = "iconfonts",
build_file = "//rules:iconfonts.BUILD",
commit = "fda5f470b767f7b413e4a3995fa8cfe47f78b586",
remote = "https://github.com/juliettef/IconFontCppHeaders.git",
)
bind(
name = "fontawesome",
actual = "@iconfonts//:fontawesome",
)
######################################################################
# Abseil
######################################################################
git_repository(
name = "com_google_absl",
commit = "0f86336b6939ea673cc1cbe29189286cae67d63a",
remote = "https://github.com/abseil/abseil-cpp.git",
)
######################################################################
# protobuf
######################################################################
git_repository(
name = "com_google_protobuf",
remote = "https://github.com/google/protobuf.git",
tag = "v3.11.1",
)
# rules_cc defines rules for generating C++ code from Protocol Buffers.
http_archive(
name = "rules_cc",
sha256 = "35f2fb4ea0b3e61ad64a369de284e4fbbdcdba71836a5555abb5e194cf119509",
strip_prefix = "rules_cc-624b5d59dfb45672d4239422fa1e3de1822ee110",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/624b5d59dfb45672d4239422fa1e3de1822ee110.tar.gz",
"https://github.com/bazelbuild/rules_cc/archive/624b5d59dfb45672d4239422fa1e3de1822ee110.tar.gz",
],
)
# rules_proto defines abstract rules for building Protocol Buffers.
http_archive(
name = "rules_proto",
sha256 = "57001a3b33ec690a175cdf0698243431ef27233017b9bed23f96d44b9c98242f",
strip_prefix = "rules_proto-9cd4f8f1ede19d81c6d48910429fe96776e567b1",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/9cd4f8f1ede19d81c6d48910429fe96776e567b1.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/9cd4f8f1ede19d81c6d48910429fe96776e567b1.tar.gz",
],
)
load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies")
rules_cc_dependencies()
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()
######################################################################
# native file dialog
######################################################################
new_git_repository(
name = "nativefiledialog_git",
build_file = "//rules:nfd.BUILD",
commit = "5cfe5002eb0fac1e49777a17dec70134147931e2",
remote = "https://github.com/mlabbe/nativefiledialog.git",
)
bind(
name = "nfd",
actual = "@nativefiledialog_git//:nfd",
)
######################################################################
# compilers for windows
######################################################################
# Local copy for testing
#local_repository(
# name = "mxebzl",
# path = "/home/cfrantz/src/mxebzl",
#)
git_repository(
name = "mxebzl",
remote = "https://github.com/cfrantz/mxebzl.git",
tag = "20191215_RC01",
)
load("@mxebzl//compiler:repository.bzl", "mxe_compiler")
mxe_compiler(
deps = [
"SDL2",
"SDL2-extras",
"compiler",
"pthreads",
"python",
],
)