File tree Expand file tree Collapse file tree 6 files changed +102
-1
lines changed Expand file tree Collapse file tree 6 files changed +102
-1
lines changed Original file line number Diff line number Diff line change 1+ module (
2+ name = "websocketpp" ,
3+ version = "0.8.2.bcr.5" ,
4+ bazel_compatibility = [">=7.2.1" ],
5+ compatibility_level = 1 ,
6+ )
7+
8+ bazel_dep (name = "asio" , version = "1.28.2" )
9+ bazel_dep (name = "bazel_skylib" , version = "1.8.2" )
10+ bazel_dep (name = "boost.asio" , version = "1.89.0.bcr.1" )
11+ bazel_dep (name = "platforms" , version = "1.0.0" )
12+ bazel_dep (name = "rules_cc" , version = "0.2.4" )
13+ bazel_dep (name = "zlib" , version = "1.3" )
Original file line number Diff line number Diff line change 1+ load ("@bazel_skylib//rules:common_settings.bzl" , "bool_flag" )
2+ load ("@rules_cc//cc:defs.bzl" , "cc_library" )
3+
4+ bool_flag (
5+ name = "use_boost" ,
6+ build_setting_default = False ,
7+ )
8+
9+ config_setting (
10+ name = "use_boost_setting" ,
11+ flag_values = {":use_boost" : "True" },
12+ )
13+
14+ cc_library (
15+ name = "websocketpp" ,
16+ hdrs = glob (["websocketpp/**/*.hpp" ]),
17+ defines = select ({
18+ ":use_boost_setting" : ["_WEBSOCKETPP_CPP11_STL_" ],
19+ "//conditions:default" : [
20+ "_WEBSOCKETPP_CPP11_STL_" ,
21+ "ASIO_STANDALONE" ,
22+ ],
23+ }),
24+ includes = ["." ],
25+ linkopts = select ({
26+ "@platforms//os:osx" : [
27+ "-lpthread" ,
28+ ],
29+ "//conditions:default" : [
30+ "-lpthread" ,
31+ "-lrt" ,
32+ ],
33+ }),
34+ visibility = ["//visibility:public" ],
35+ deps = [
36+ "@zlib" ,
37+ ] + select ({
38+ ":use_boost_setting" : ["@boost.asio" ],
39+ "//conditions:default" : ["@asio" ],
40+ }),
41+ )
Original file line number Diff line number Diff line change 1+ module (
2+ name = "websocketpp" ,
3+ version = "0.8.2.bcr.5" ,
4+ bazel_compatibility = [">=7.2.1" ],
5+ compatibility_level = 1 ,
6+ )
7+
8+ bazel_dep (name = "asio" , version = "1.28.2" )
9+ bazel_dep (name = "bazel_skylib" , version = "1.8.2" )
10+ bazel_dep (name = "boost.asio" , version = "1.89.0.bcr.1" )
11+ bazel_dep (name = "platforms" , version = "1.0.0" )
12+ bazel_dep (name = "rules_cc" , version = "0.2.4" )
13+ bazel_dep (name = "zlib" , version = "1.3" )
Original file line number Diff line number Diff line change 1+ matrix :
2+ platform :
3+ - debian10
4+ - ubuntu2004
5+ - macos
6+ - macos_arm64
7+ bazel :
8+ - 7.x
9+ tasks :
10+ verify_targets :
11+ name : Verify build targets
12+ platform : ${{ platform }}
13+ bazel : ${{ bazel }}
14+ build_targets :
15+ - " @websocketpp"
16+ verify_targets_boost :
17+ name : Verify build targets using boost asio
18+ platform : ${{ platform }}
19+ bazel : ${{ bazel }}
20+ build_targets :
21+ - " @websocketpp"
22+ build_flags :
23+ - ' --@websocketpp//:use_boost=true'
Original file line number Diff line number Diff line change 1+ {
2+ "url" : " https://github.com/zaphoyd/websocketpp/archive/refs/tags/0.8.2.tar.gz" ,
3+ "integrity" : " sha256-bOiJ2F7Nwtj6B0CNZ4fnNSUQdQ2qZrWtRKrLR76nZ1U=" ,
4+ "strip_prefix" : " websocketpp-0.8.2" ,
5+ "overlay" : {
6+ "BUILD.bazel" : " sha256-Awc0CFGb0fJhuWFn/zl7DUM/95rnuXc+k8YN7D5QQWE=" ,
7+ "MODULE.bazel" : " sha256-tRMhLszM73Px34nq14eqDhn0VSV6Z9ZHv+j0PoZLlUc="
8+ },
9+ "patch_strip" : 0
10+ }
Original file line number Diff line number Diff line change 1414 " 0.8.2.bcr.1" ,
1515 " 0.8.2.bcr.2" ,
1616 " 0.8.2.bcr.3" ,
17- " 0.8.2.bcr.4"
17+ " 0.8.2.bcr.4" ,
18+ " 0.8.2.bcr.5"
1819 ],
1920 "yanked_versions" : {}
2021}
You can’t perform that action at this time.
0 commit comments