Skip to content

Commit

Permalink
Starting this from scratch
Browse files Browse the repository at this point in the history
-) Basic workspace
-) Basic BUILD file with macros
  • Loading branch information
nicolasnoble committed Oct 20, 2016
1 parent 70ee74c commit 31d11db
Show file tree
Hide file tree
Showing 7 changed files with 250 additions and 2,083 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,10 @@ artifacts/

# IDE specific folder for JetBrains IDEs
.idea/

# Blaze files
bazel-bin
bazel-genfiles
bazel-grpc
bazel-out
bazel-testlogs
1,958 changes: 132 additions & 1,826 deletions BUILD

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
bind(
name = "nanopb",
actual = "//third_party/nanopb",
)

bind(
name = "libssl",
actual = "@submodule_boringssl//:ssl",
)

bind(
name = "zlib",
actual = "@submodule_zlib//:z",
)

bind(
name = "protobuf_clib",
actual = "@submodule_protobuf//:protoc_lib",
)

bind(
name = "protobuf_compiler",
actual = "@submodule_protobuf//:protoc_lib",
)

new_local_repository(
name = "submodule_boringssl",
path = "third_party/boringssl",
build_file = "third_party/boringssl/BUILD",
)

new_local_repository(
name = "submodule_zlib",
path = "third_party/zlib",
build_file = "third_party/zlib.BUILD",
)

new_local_repository(
name = "submodule_protobuf",
path = "third_party/protobuf",
build_file = "third_party/protobuf/BUILD",
)
31 changes: 31 additions & 0 deletions grpc-build-system.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
def grpc_cc_library(name, srcs = [], hdrs = [], deps = [], standalone = False, language = "C++"):
copts = []
if language == "C":
copts = ["-std=c99"]
native.cc_library(
name = name,
srcs = srcs,
hdrs = hdrs,
deps = deps,
copts = copts,
includes = [
"include"
]
)


def nanopb():
native.cc_library(
name = "nanopb",
srcs = [
'//third_party/nanopb/pb_common.c',
'//third_party/nanopb/pb_decode.c',
'//third_party/nanopb/pb_encode.c',
],
hdrs = [
'//third_party/nanopb/pb.h',
'//third_party/nanopb/pb_common.h',
'//third_party/nanopb/pb_decode.h',
'//third_party/nanopb/pb_encode.h',
]
)
256 changes: 0 additions & 256 deletions templates/BUILD.template

This file was deleted.

2 changes: 1 addition & 1 deletion third_party/boringssl
Submodule boringssl updated 3715 files
37 changes: 37 additions & 0 deletions third_party/zlib.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
cc_library(
name = "z",
linkstatic = 1,
srcs = [
'adler32.c',
'compress.c',
'crc32.c',
'deflate.c',
'infback.c',
'inffast.c',
'inflate.c',
'inftrees.c',
'trees.c',
'uncompr.c',
'zutil.c',
],
hdrs = [
'crc32.h',
'deflate.h',
'gzguts.h',
'inffast.h',
'inffixed.h',
'inflate.h',
'inftrees.h',
'trees.h',
'zconf.h',
'zlib.h',
'zutil.h',
],
includes = [
'include',
],
visibility = [
"//visibility:public",
],
)

0 comments on commit 31d11db

Please sign in to comment.