-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
detect re2, protoc, grpc_cpp_plugin, protobuf library and add grpc build dependencies Individual lib or app can use GRPC as follows for library use: lib_deps += DAO_EXT_DEPS_GRPC for application use: app_deps += DAO_EXT_DEPS_GRPC Signed-off-by: Nitin Saxena <nsaxena@marvell.com> Change-Id: I5cabd877461000d8a8ed1dcce8a39a27bf3bd8f0 Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/dataplane/dpu-offload/+/141618 Reviewed-by: Ashwin Sekhar T K <asekhar@marvell.com> Tested-by: sa_ip-toolkits-Jenkins <sa_ip-toolkits-jenkins@marvell.com>
- Loading branch information
Showing
5 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SPDX-License-Identifier: Marvell-MIT | ||
# Copyright (c) 2025 Marvell. | ||
|
||
protoc = find_program('protoc', required:false) | ||
grpc_cpp_plugin = find_program('grpc_cpp_plugin', required:false) | ||
re2_dep = dependency('re2', method : 'pkg-config', version: '>=11.0.0', required:false) | ||
grpcplus_dep = dependency('grpc++', method : 'pkg-config', version: '>=1.65.0', required:false) | ||
protobuf_dep = dependency('protobuf', method : 'pkg-config', version:'>=27.2.0', required:false) | ||
|
||
if not protoc.found() | ||
message('protobuf compiler (protoc) not found') | ||
subdir_done() | ||
endif | ||
|
||
if not grpc_cpp_plugin.found() | ||
message('grpc_cpp_plugin not found') | ||
subdir_done() | ||
endif | ||
|
||
if not re2_dep.found() | ||
message('re2 not found') | ||
subdir_done() | ||
endif | ||
|
||
if not protobuf_dep.found() | ||
message('protobuf pkgconfig not exported') | ||
subdir_done() | ||
endif | ||
|
||
if not grpcplus_dep.found() | ||
message('grpcplus pkgconfig not exported') | ||
subdir_done() | ||
endif | ||
|
||
DAO_BUILD_CONF.set('DAO_GRPC_DEP', '1') | ||
DAO_EXT_DEPS_GRPC += grpcplus_dep | ||
DAO_EXT_DEPS_GRPC += protobuf_dep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
|
||
subdir('dpdk') | ||
subdir('libnl') | ||
subdir('grpc') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters