forked from google-deepmind/lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
99 lines (92 loc) · 2.28 KB
/
BUILD
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
# Description:
# The open source, cross platform level editor for idtech games.
package(default_visibility = ["//visibility:private"])
licenses(["restricted"]) # GPL v2 or later, portions BSD
cc_library(
name = "ddslib",
srcs = glob(["libs/ddslib/*.c"]) + ["libs/ddslib.h"],
copts = ["-fno-strict-aliasing"],
includes = ["libs"],
)
cc_library(
name = "mathlib",
srcs = glob(["libs/mathlib/*.c"]) + ["libs/bytebool.h"],
hdrs = ["libs/mathlib.h"],
includes = ["libs"],
)
cc_library(
name = "l_net",
srcs = [
"libs/l_net/l_net.c",
"libs/l_net/l_net_berkeley.c",
],
hdrs = ["libs/l_net/l_net.h"],
copts = ["-fno-strict-aliasing"],
includes = ["libs"],
textual_hdrs = ["libs/l_net/l_net_wins.h"],
)
cc_library(
name = "picomodel",
srcs = glob([
"libs/picomodel/*.c",
"libs/picomodel/lwo/*.c",
]) + [
"libs/picomodel/picointernal.h",
"libs/picomodel/pm_fm.h",
],
copts = [
"-Iq3map2/libs",
"-Wno-error",
"-w",
],
textual_hdrs = [
"libs/picomodel.h",
"libs/picomodel/lwo/lwo2.h",
],
)
cc_binary(
name = "q3map2",
srcs = glob(
[
"common/*.c",
"common/*.h",
"q3map2/*.c",
"q3map2/*.h",
"include/*.h",
],
exclude = [
"common/bspfile.*",
"common/l3dslib.c",
"q3map2/light_shadows.c",
"q3map2/lightmaps.c",
],
),
copts = [
"-fno-strict-aliasing",
"-Iq3map2/common",
"-Iq3map2/include",
"-Iq3map2/q3map2",
"-Iexternal/glib_archive/glib",
"-w",
"-DMD4_Final=MD4Final",
"-DMD4_Init=MD4Init",
"-DMD4_Update=MD4Update",
"-DMD5(data,len,out)=\"{ MD5_CTX ctx; MD5Init(&ctx); MD5Update(&ctx, data, len); MD5Final(out, &ctx); }\"",
],
visibility = [
"//:__pkg__",
"//deepmind/level_generation:__pkg__",
],
deps = [
":ddslib",
":l_net",
":mathlib",
":picomodel",
"//third_party/md:md4",
"//third_party/md:md5",
"@glib_archive//:glib",
"@jpeg_archive//:jpeg",
"@libxml_archive//:libxml",
"@png_archive//:png",
],
)