File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ inherit : [cmake]
2+
3+ metaEnvironment :
4+ PKG_DESCRIPTION : " Google Protocol Buffers"
5+ PKG_LICENSE : " BSD-3-Clause"
6+ PKG_VERSION : " 31.1"
7+
8+ checkoutSCM :
9+ scm : url
10+ url : ${GITHUB_MIRROR}/protocolbuffers/protobuf/releases/download/v${PKG_VERSION}/protobuf-${PKG_VERSION}.tar.gz
11+ digestSHA256 : 12bfd76d27b9ac3d65c00966901609e020481b9474ef75c7ff4601ac06fa0b82
12+ stripComponents : 1
13+
14+ depends :
15+ - libs::abseil-dev
16+ - libs::googletest-dev
17+ - libs::zlib-dev
18+ - use : []
19+ depends :
20+ - libs::abseil-tgt
21+ - libs::googletest-tgt
22+ - libs::zlib-tgt
23+
24+ buildScript : |
25+ CONFIG_OPTS=("-Dprotobuf_LOCAL_DEPENDENCIES_ONLY=ON")
26+ CONFIG_OPTS+=("-Dprotobuf_BUILD_TESTS=OFF")
27+ if [ ${BOB_TOOL_PATHS[protoc]+abc} ]; then
28+ CONFIG_OPTS+=("-DWITH_PROTOC=${BOB_TOOL_PATHS[protoc]}/protoc")
29+ fi
30+ cmakeBuild $1 ${CONFIG_OPTS[@]}
31+
32+ multiPackage :
33+ dev :
34+ buildTools : [protoc]
35+ provideDeps : ['*-dev']
36+ packageScript : cmakePackageDev
37+ tgt :
38+ buildTools : [protoc]
39+ provideDeps : ['*-tgt']
40+ packageScript : cmakePackageTgt
41+ " " :
42+ packageScript : |
43+ cmakePackageTgt
44+ provideTools :
45+ protoc : " usr/bin"
You can’t perform that action at this time.
0 commit comments