Skip to content

Commit

Permalink
Bazel: Add python3 target.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxq committed Jan 14, 2020
1 parent 8df0e9d commit cf7d24a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 51 deletions.
6 changes: 0 additions & 6 deletions WORKSPACE.in
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,6 @@ new_local_repository(
path = "/usr",
)

new_local_repository(
name = "python3",
build_file = "third_party/python3.BUILD",
path = "/usr",
)

# PyTorch
new_local_repository(
name = "pytorch",
Expand Down
10 changes: 5 additions & 5 deletions cyber/py_wrapper/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cc_library(
defines = ["PY_MAJOR_VERSION=3"],
deps = [
"//cyber:cyber_core",
"@python3",
"//third_party:python3",
],
)

Expand Down Expand Up @@ -86,7 +86,7 @@ cc_library(
deps = [
"//cyber/message:py_message",
"//cyber/record",
"@python3",
"//third_party:python3",
],
)

Expand Down Expand Up @@ -136,8 +136,8 @@ cc_library(
defines = ["PY_MAJOR_VERSION=3"],
deps = [
"//cyber:cyber_core",
"//third_party:python3",
"@fastrtps",
"@python3",
],
)

Expand Down Expand Up @@ -174,7 +174,7 @@ cc_library(
defines = ["PY_MAJOR_VERSION=3"],
deps = [
"//cyber:cyber_core",
"@python3",
"//third_party:python3",
],
)

Expand Down Expand Up @@ -213,7 +213,7 @@ cc_library(
deps = [
":py3_cyber",
"//cyber:cyber_core",
"@python3",
"//third_party:python3",
],
)

Expand Down
23 changes: 15 additions & 8 deletions third_party/BUILD
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package(default_visibility = ["//visibility:public"])

cc_library(
name = "uuid",
linkopts = ["-luuid"],
)
# Libs provided by the system.

cc_library(
name = "rt",
linkopts = ["-lrt"],
name = "ncurses",
linkopts = ["-lncurses"],
)

cc_library(
Expand All @@ -16,6 +13,16 @@ cc_library(
)

cc_library(
name = "ncurses",
linkopts = ["-lncurses"],
name = "python3",
linkopts = ["-lpython3.6m"],
)

cc_library(
name = "rt",
linkopts = ["-lrt"],
)

cc_library(
name = "uuid",
linkopts = ["-luuid"],
)
32 changes: 0 additions & 32 deletions third_party/python3.BUILD

This file was deleted.

0 comments on commit cf7d24a

Please sign in to comment.