-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
42 lines (38 loc) · 991 Bytes
/
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
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/naoto0822/zetasql-server
# gazelle:exclude parse_query.cc
# gazelle:exclude parse_query.h
gazelle(name = "gazelle")
go_binary(
name = "zetasql-server",
cdeps = [
":zetasql-parser",
],
embed = [":zetasql-server_lib"],
pure = "off",
visibility = ["//visibility:public"],
)
cc_library(
name = "zetasql-parser",
srcs = [
"parse_query.cc",
"parse_query.h",
],
deps = [
"@com_google_zetasql//zetasql/public:parse_helpers",
"@com_google_zetasql//zetasql/public:sql_formatter",
],
)
go_library(
name = "zetasql-server_lib",
srcs = [
"main.go",
"zetasql.go",
],
cgo = True,
importpath = "github.com/naoto0822/zetasql-server",
visibility = ["//visibility:private"],
deps = ["//pkg"],
)