Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
ffbf054d
Commit
ffbf054d
authored
Nov 30, 2020
by
Zhangyi Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add zlib as an external dependency
parent
3feb6d0c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
BUILD
BUILD
+1
-3
WORKSPACE
WORKSPACE
+6
-0
openssl.BUILD
openssl.BUILD
+1
-1
zlib.BUILD
zlib.BUILD
+8
-0
No files found.
BUILD
View file @
ffbf054d
...
@@ -78,9 +78,6 @@ COPTS = [
...
@@ -78,9 +78,6 @@ COPTS = [
LINKOPTS = [
LINKOPTS = [
"-lpthread",
"-lpthread",
"-ldl",
"-ldl",
"-lz",
# "-lssl",
# "-lcrypto",
] + select({
] + select({
":darwin": [
":darwin": [
"-framework CoreFoundation",
"-framework CoreFoundation",
...
@@ -340,6 +337,7 @@ cc_library(
...
@@ -340,6 +337,7 @@ cc_library(
deps = [
deps = [
"@com_google_protobuf//:protobuf",
"@com_google_protobuf//:protobuf",
"@com_github_gflags_gflags//:gflags",
"@com_github_gflags_gflags//:gflags",
"@zlib//:zlib",
] + select({
] + select({
":with_glog": ["@com_github_google_glog//:glog"],
":with_glog": ["@com_github_google_glog//:glog"],
"//conditions:default": [],
"//conditions:default": [],
...
...
WORKSPACE
View file @
ffbf054d
...
@@ -87,3 +87,9 @@ bind(
...
@@ -87,3 +87,9 @@ bind(
name = "ssl_macos",
name = "ssl_macos",
actual = "@openssl_macos//:ssl"
actual = "@openssl_macos//:ssl"
)
)
new_local_repository(
name = "zlib",
build_file = "//:zlib.BUILD",
path = "/usr",
)
openssl.BUILD
View file @
ffbf054d
...
@@ -26,7 +26,7 @@ cc_library(
...
@@ -26,7 +26,7 @@ cc_library(
name = "ssl",
name = "ssl",
hdrs = select({
hdrs = select({
":macos": glob(["include/openssl/*.h"]),
":macos": glob(["include/openssl/*.h"]),
"//conditions:default": [
"lib/libssl.so"
]
"//conditions:default": []
}),
}),
srcs = select ({
srcs = select ({
":macos": ["lib/libssl.dylib"],
":macos": ["lib/libssl.dylib"],
...
...
zlib.BUILD
0 → 100644
View file @
ffbf054d
package(
default_visibility=["//visibility:public"]
)
cc_library(
name = "zlib",
linkopts = ["-lz"],
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment