Skip to content

Commit

Permalink
merge thirdpart
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcchen committed Sep 30, 2022
1 parent a805748 commit dd178bb
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
28 changes: 28 additions & 0 deletions third_party/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,31 @@ cc_library(
"@com_google_leveldb//:leveldb",
],
)

cc_library(
name = "pistache",
deps = [
"@com_google_pistache//:pistache",
],
)

cc_library(
name = "date",
deps = [
"@com_google_date//:date",
],
)

cc_library(
name = "crow",
deps = [
"@com_crowcpp_crow//:crow",
],
)

cc_library(
name = "asio",
deps = [
"@com_chriskohlhoff_asio//:asio",
],
)
19 changes: 19 additions & 0 deletions third_party/asio.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
licenses(["notice"])

exports_files(["LICENSE"])

cc_library(
name = "asio",
srcs = glob([
"asio/**/*.h",
"asio/**/*.hpp",
"asio/**/*.ipp",
]),
hdrs = glob([
"asio/**/*.h",
"asio/**/*.hpp",
"asio/**/*.ipp",
]),
includes = ["asio/include"],
visibility = ["//visibility:public"],
)
19 changes: 19 additions & 0 deletions third_party/crow.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
licenses(["notice"])

exports_files(["LICENSE"])

cc_library(
name = "crow",
srcs = glob([
"include/**/*.h",
"include/**/*.hpp",
]),
hdrs = glob([
"include/**/*.h",
"include/**/*.hpp",
]),
includes = ["include"],
linkopts = ["-lpthread"],
visibility = ["//visibility:public"],
deps = ["//external:asio",],
)
11 changes: 11 additions & 0 deletions third_party/date.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
licenses(["notice"])

exports_files(["LICENSE"])

cc_library(
name = "date",
srcs = glob(["src/**/*.cc"]),
hdrs = glob(["include/**/*.h"]),
includes = ["include"],
visibility = ["//visibility:public"],
)
13 changes: 13 additions & 0 deletions third_party/pistache.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
licenses(["notice"])

exports_files(["LICENSE"])

cc_library(
name = "pistache",
srcs = glob(["src/**/*.cc"]),
hdrs = glob(["include/**/*.h"]),
includes = ["include"],
linkopts = ["-lpthread"],
visibility = ["//visibility:public"],
deps = ["//external:date",],
)

0 comments on commit dd178bb

Please sign in to comment.