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
ed28de70
Commit
ed28de70
authored
Dec 12, 2017
by
donghuixu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add workspace.bzl and bazel.rc
parent
39a1c44b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
25 deletions
+28
-25
WORKSPACE
WORKSPACE
+3
-19
README_bazel_build.md
bazel/README_bazel_build.md
+0
-2
workspace.bzl
bazel/workspace.bzl
+24
-0
leveldb.BUILD
leveldb.BUILD
+0
-4
bazel.rc
tools/bazel.rc
+1
-0
No files found.
WORKSPACE
View file @
ed28de70
workspace(name = "brpc")
http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-b04e5cba356212e4e8c66c61bbe0c3a20537c5b9",
url = "https://github.com/google/protobuf/archive/b04e5cba356212e4e8c66c61bbe0c3a20537c5b9.tar.gz",
)
load("//:bazel/workspace.bzl", "brpc_workspace")
http_archive(
name = "com_github_gflags_gflags",
strip_prefix = "gflags-46f73f88b18aee341538c0dfc22b1710a6abedef",
url = "https://github.com/gflags/gflags/archive/46f73f88b18aee341538c0dfc22b1710a6abedef.tar.gz",
)
new_http_archive(
name = "com_github_google_leveldb",
build_file = "leveldb.BUILD",
strip_prefix = "leveldb-a53934a3ae1244679f812d998a4f16f2c7f309a6",
url = "https://github.com/google/leveldb/archive/a53934a3ae1244679f812d998a4f16f2c7f309a6.tar.gz"
)
brpc_workspace()
bazel/README_bazel_build.md
deleted
100644 → 0
View file @
39a1c44b
bazel build --copt -DHAVE_ZLIB=1 ...
bazel/workspace.bzl
0 → 100644
View file @
ed28de70
# brpc external dependencies
def brpc_workspace():
native.http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-b04e5cba356212e4e8c66c61bbe0c3a20537c5b9",
url = "https://github.com/google/protobuf/archive/b04e5cba356212e4e8c66c61bbe0c3a20537c5b9.tar.gz",
)
native.http_archive(
name = "com_github_gflags_gflags",
strip_prefix = "gflags-46f73f88b18aee341538c0dfc22b1710a6abedef",
url = "https://github.com/gflags/gflags/archive/46f73f88b18aee341538c0dfc22b1710a6abedef.tar.gz",
)
native.new_http_archive(
name = "com_github_google_leveldb",
build_file = str(Label("//:leveldb.BUILD")),
strip_prefix = "leveldb-a53934a3ae1244679f812d998a4f16f2c7f309a6",
url = "https://github.com/google/leveldb/archive/a53934a3ae1244679f812d998a4f16f2c7f309a6.tar.gz"
)
leveldb.BUILD
View file @
ed28de70
...
...
@@ -66,9 +66,5 @@ cc_library(
"-DOS_LINUX",
"-DLEVELDB_PLATFORM_POSIX=1",
"-DLEVELDB_ATOMIC_PRESENT",
"-fno-builtin-memcmp",
"-DOS_LINUX",
"-DLEVELDB_PLATFORM_POSIX=1",
"-DLEVELDB_ATOMIC_PRESENT",
],
)
tools/bazel.rc
0 → 100644
View file @
ed28de70
build --copt -DHAVE_ZLIB=1
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