Skip to content

Commit

Permalink
Add Bazel build rules for CloudABI headers.
Browse files Browse the repository at this point in the history
These rules have no use on their own, except that they make it easier
for Bazel based applications to include these headers.
  • Loading branch information
EdSchouten committed Dec 26, 2018
1 parent cd2ad12 commit 2a847ed
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.*
!.gitignore
/bazel-*
__pycache__
1 change: 1 addition & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
workspace(name = "com_github_nuxinl_cloudabi")
24 changes: 24 additions & 0 deletions headers/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cc_library(
name = "cloudabi_syscalls",
hdrs = ["cloudabi_syscalls.h"],
strip_include_prefix = ".",
visibility = ["//visibility:public"],
deps = [":cloudabi_types"],
)

cc_library(
name = "cloudabi_syscalls_info",
hdrs = ["cloudabi_syscalls_info.h"],
strip_include_prefix = ".",
visibility = ["//visibility:public"],
)

cc_library(
name = "cloudabi_types",
hdrs = [
"cloudabi_types.h",
"cloudabi_types_common.h",
],
strip_include_prefix = ".",
visibility = ["//visibility:public"],
)

0 comments on commit 2a847ed

Please sign in to comment.