From e0bdb6b0966f8c64f1a7da681006802b4b311e14 Mon Sep 17 00:00:00 2001 From: Nick Sarkauskas Date: Mon, 14 Oct 2024 13:29:42 -0700 Subject: [PATCH] BUILD: Add ucc pkg-config --- Makefile.am | 3 +++ configure.ac | 1 + ucc.pc.in | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 ucc.pc.in diff --git a/Makefile.am b/Makefile.am index cd5f9345ed..c3506e26ff 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,6 +28,9 @@ include $(srcdir)/docs/doxygen/doxygen.am .PHONY: docs docs-clean +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = ucc.pc + DOCLIST = docs/doxygen/doxygen-doc/ucc.tag FORMAT = pdf diff --git a/configure.ac b/configure.ac index bd8c27a210..07e1d28920 100644 --- a/configure.ac +++ b/configure.ac @@ -253,6 +253,7 @@ AC_CONFIG_FILES([ cmake/ucc-config-version.cmake cmake/ucc-config.cmake cmake/ucc-targets.cmake + ucc.pc ]) AC_OUTPUT diff --git a/ucc.pc.in b/ucc.pc.in new file mode 100644 index 0000000000..eb1bbd0710 --- /dev/null +++ b/ucc.pc.in @@ -0,0 +1,18 @@ +# +# Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# See file LICENSE for terms. +# + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @exec_prefix@/bin +libdir = @libdir@ +includedir = @includedir@ + +Name: @PACKAGE@ +Description: Unified Collective Communication Library +Version: @VERSION@ +Cflags: -I${includedir} +Libs: -L${libdir} -lucc +Libs.private: -Wl