-
Notifications
You must be signed in to change notification settings - Fork 209
Expand file tree
/
Copy pathBUILD.bazel
More file actions
19 lines (18 loc) · 758 Bytes
/
BUILD.bazel
File metadata and controls
19 lines (18 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cc_binary(
name = "melon",
srcs = glob(["src/*.c"]),
includes = ["include"],
visibility = ["//visibility:public"],
linkshared = True,
copts = ["-DMLN_ROOT=\\\"/usr/local\\\"", "-DMLN_LANG_LIB=\\\"/usr/local/lib/melang\\\"", "-DMLN_LANG_DYLIB=\\\"/usr/local/lib/melang_dynamic\\\"", "-DMLN_NULL=\\\"/dev/null\\\""],
deps = [":melon_static"],
)
cc_library(
name = "melon_static",
srcs = glob(["src/*.c"]),
hdrs = glob(["include/**/*.h"]),
includes = ["include"],
visibility = ["//visibility:public"],
linkstatic = True,
copts = ["-DMLN_ROOT=\\\"/usr/local\\\"", "-DMLN_LANG_LIB=\\\"/usr/local/lib/melang\\\"", "-DMLN_LANG_DYLIB=\\\"/usr/local/lib/melang_dynamic\\\"", "-DMLN_NULL=\\\"/dev/null\\\""],
)