-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-) Basic workspace -) Basic BUILD file with macros
- Loading branch information
1 parent
70ee74c
commit 31d11db
Showing
7 changed files
with
250 additions
and
2,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
] | ||
) |
This file was deleted.
Oops, something went wrong.
Submodule boringssl
updated
3715 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
], | ||
) | ||
|