You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by ww...@apache.org on 2022/01/26 06:24:28 UTC

[incubator-brpc] branch master updated: Add rpc_replay BUILD file

This is an automated email from the ASF dual-hosted git repository.

wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d078e1  Add rpc_replay BUILD file
     new a844ce8  Merge pull request #1677 from 372046933/bazel_rpc_replay
9d078e1 is described below

commit 9d078e1c9797cf35a3e3b36352d5605ee395f0b4
Author: taoxu <ta...@bilibili.com>
AuthorDate: Wed Jan 19 14:49:41 2022 +0800

    Add rpc_replay BUILD file
---
 tools/BUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/tools/BUILD b/tools/BUILD
new file mode 100644
index 0000000..99f472f
--- /dev/null
+++ b/tools/BUILD
@@ -0,0 +1,49 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+COPTS = [
+    "-D__STDC_FORMAT_MACROS",
+    "-DBTHREAD_USE_FAST_PTHREAD_MUTEX",
+    "-D__const__=",
+    "-D_GNU_SOURCE",
+    "-DUSE_SYMBOLIZE",
+    "-DNO_TCMALLOC",
+    "-D__STDC_LIMIT_MACROS",
+    "-D__STDC_CONSTANT_MACROS",
+    "-fPIC",
+    "-Wno-unused-parameter",
+    "-fno-omit-frame-pointer",
+    "-DGFLAGS_NS=google",
+] + select({
+    "//:with_glog": ["-DBRPC_WITH_GLOG=1"],
+    "//conditions:default": ["-DBRPC_WITH_GLOG=0"],
+})
+
+cc_binary(
+    name = "rpc_replay",
+    srcs = [
+        "rpc_replay/info_thread.h",
+        "rpc_replay/rpc_replay.cpp",
+        "rpc_replay/info_thread.cpp",
+    ],
+    includes = [
+        "rpc_replay",
+    ],
+    deps = [
+        "//:brpc",
+    ],
+    copts = COPTS,
+)
+

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org