Bright Chen
271b98fef7
Refactor NULL with nullptr in example ( #3466 )
2026-08-19 23:06:40 +08:00
darion-yaphet
f094566f54
build(example): extract shared CMake dependency helper for examples ( #3391 )
...
Example CMakeLists duplicated the same dependency discovery and link
setup. Move that into brpc_example_find_common_deps in
BrpcExample.cmake, migrate MySQL and other examples to use it, and
implement the helper as a macro so CMAKE_PREFIX_PATH, include paths,
and DYNAMIC_LIB propagate to the caller scope.
Example-specific deps stay local (e.g. readline/ncurses/thriftnb for
MySQL, gperftools for redis/http). LINK_SO behavior is unchanged.
2026-07-21 09:26:06 +08:00
darion-yaphet
82a6819297
build(cmake): Modernize target-scoped CMake configuration ( #3377 )
...
* build(cmake): keep modern CMake policy compatibility
Raise the minimum CMake version range to 3.16...3.28 so CMake 4.x no longer treats the project as relying on removed pre-3.5 policy compatibility. The range preserves a conservative 3.16 runtime floor while documenting policy validation through 3.28.
* build(cmake): modernize target-scoped CMake configuration
Move shared compile definitions, include paths, options, and link dependencies onto interface targets so top-level, src, tools, tests, and standalone examples consume consistent build settings without relying on global directory state.
Examples now share a small CMake helper, and the gtest download path is updated to configure with modern CMake while keeping downloaded gtest headers ahead of Homebrew's C++17-only installation.
2026-07-12 00:02:52 +08:00
Bright Chen
12fb539a1c
Use monotonic time instead of wall time ( #3268 )
2026-04-13 14:14:03 +08:00
Bright Chen
0608aa1e13
Fix gflag namespace of example and tools ( #2879 )
2025-01-19 21:28:55 +08:00
GreateCode
c4cd404310
support stats print
2024-08-29 23:22:41 +08:00
GreateCode
7874a4aef0
fix Darwin mallctl
2024-08-15 22:00:02 +08:00
Bright Chen
09141d4d87
Opt contention: support tcmalloc GetStackTrace and reduce hash calculations ( #2488 )
2024-01-17 10:28:21 +08:00
day253
2a42a26296
remove unnecessary libthriftnb
2023-07-24 00:17:02 +08:00
Ran Miller
6ebe2e98f2
delete deprecated logoff_ms gflag in example folder ( #2064 )
2022-12-27 10:26:37 +08:00
果冻虾仁
581c7b1aaa
remove unnecessary semicolon ( #2004 )
...
* example
* src,tool
2022-11-21 10:18:51 +08:00
wangweibing
87e18c6a15
Fix __const__ compile error in gcc version >= 11.2.0
2022-06-07 14:51:21 +08:00
jamesge
e93e0c2afe
fix CMakeList.txt in examples and rename BUILD to BUILD.bazel to avoid conflict with cmake
2020-12-05 14:51:40 +08:00
zhujiashun
f26bb9c476
insert_apache_header: update
2019-10-28 14:59:55 +08:00
zhujiashun
2b96d08e94
insert_apache_header
2019-10-25 18:01:21 +08:00
zhujiashun
1b90ea18d9
unify dynamic link option in make and cmake
2019-08-26 14:32:29 +08:00
Weibing Wang
078051f9bf
Update license header to Apache
2019-06-20 14:22:57 +08:00
gejun
c813572db1
Fix compilation issues in examples
2018-09-07 17:00:32 +08:00
Qihe Bian
d42f35109a
Fix cmake build issue when use this project as a submodule. ( #428 )
...
* Fix cmake build issue when use this project as a submodule.
* Add ignore.
2018-08-19 10:07:11 +08:00
zyearn
06eb03560a
- Remove weak symbol _RegisterThriftProtocol in CMakeLists.txt
...
- find libthrift* in example when using brpc with thrift protocol
enabled
2018-07-06 08:43:32 +08:00
zhujiashun
d2e549af44
add weak symbols _RegisterThriftProtocol compile option to all examples
2018-05-16 17:06:07 +08:00
zhujiashun
3a7e8ec67a
Update example/*/CMakeLists.txt as well
2018-04-28 12:30:24 +08:00
zhujiashun
5654319b2a
Fix explicit type conversion from bthread_t to pthread_t in mac
2018-04-13 16:08:53 +08:00
zyearn
91530efc77
Merge branch 'master' of github.com:brpc/brpc into cmake_support
2018-04-12 23:22:37 +08:00
zyearn
694b0290c9
make examples can be compiled and run
2018-04-08 09:26:45 +08:00
Zhangyi Chen
32719a43f6
Renam libbrpc_static.a to libbrpc.a
2018-01-24 22:57:33 -08:00
zhujiashun
d9ea91cbfb
remove unnecessary code in example
2018-01-15 10:13:20 +08:00
Ge Jun
50b8e99955
Merge pull request #191 from brpc/cmake_support
...
make lib include bin into $PWD/output & make all example be able to be compiled by default
2018-01-10 11:11:33 +08:00
zhujiashun
b0d31fb6ac
make lib include bin into /home/zhujiashun/brpc/output & make all example be able to be compiled by default
2018-01-09 19:40:01 +08:00
gejun
4642392abc
Replace -std=gnu++11 with -std=c++11
2018-01-07 20:07:54 +08:00
zhujiashun
4eeeeb1964
make all examples compiled alone
2018-01-06 23:06:41 -08:00
zhujiashun
d71fb5e3fe
Improve compatibility & set flags for test
2018-01-05 15:29:42 +08:00
zhujiashun
5a170fe56c
add flag EXAMPLE_LINK_SO
2018-01-02 15:53:25 +08:00
zhujiashun
997522bce8
remove unnecessary find protobuf
2017-12-26 14:47:17 +08:00
zhujiashun
b87dfdbff2
support all compilation features
2017-12-07 15:18:47 +08:00
zhujiashun
27643b648d
add example support
2017-12-05 07:04:22 -08:00
gejun
778e15edd1
Pass full options to the _schan inside DynamicPartitionChannel
2017-11-09 11:42:54 +08:00
gejun
8ae7b0c898
Decide namespace of gflags in config_brpc.sh
2017-09-19 20:38:38 +08:00
gejun
c3ae57a09f
Fixes on docs and comments
2017-09-14 17:10:56 +08:00
gejun
80f9f2f160
Rename base to butil to avoid potential naming conflicts
2017-09-08 17:17:35 +08:00
gejun
023371e643
Change copyright to Baidu, Inc
2017-09-05 19:44:12 +08:00
gejun
8d4e0d814d
Patch svn r35203 r35204
2017-09-02 17:48:41 +08:00
gejun
83507a6b99
Remove build_time related code; Replace test/COMAKE with test/Makefile; Unify most Makefile in examples
2017-08-18 18:46:37 +08:00
gejun
e14cf3f063
Patch svn r35075 & Add back -fno-omit-frame-pointer in all Makefiles to support perf
...
Change-Id: I029ad0029c4e08649da381a87d0bc40a59ffa039
2017-08-17 17:33:01 +08:00
gejun
4c2c780209
support dynamic linking of deps
...
Change-Id: Ifb03869fddec3e67f10f0aa7efd7d28a49b2b260
2017-07-31 15:46:55 +08:00
gejun
ca2c262510
fix the bootstraping hang when program is linked with libunwind
...
Change-Id: I381c6cec791f6015d6e2183f05c7269bf814a184
2017-07-28 14:20:07 +08:00
gejun
2b5ae996a3
Compilable in linux-mint 17.3 gcc 4.8/5.4, programs hang after being linked with libunwind
...
Change-Id: Ie49d643b5f53d393bedc79496ca252631bedffac
2017-07-27 19:27:03 +08:00
gejun
3a8c079f2a
Add config_brpc.sh to make deps customizable
...
Change-Id: I6fccbb87c29bee9d57ab28fc663f358a1009a4fd
2017-07-27 13:32:01 +08:00
gejun
b279d07615
Replace COMAKEs with Makefile
...
Change-Id: I2f3f4ee769e4b682690b97cf7aa7030d2bcd2eea
2017-07-27 00:49:37 +08:00
gejun
7998155962
first working CI
...
Change-Id: I68c0cafba040debefd660c5213f21e6fc702a4a6
2017-07-25 23:02:28 +08:00