Repository navigation
fix: Installed pkg-config metadata with Make. - #922
Conversation
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
| build/libllhttp.pc: libllhttp.pc.in package.json | ||
| mkdir -p build | ||
| sed -e 's|@CMAKE_INSTALL_PREFIX@|$(PREFIX)|g' \ | ||
| -e 's|@CMAKE_INSTALL_FULL_BINDIR@|$(BINDIR)|g' \ | ||
| -e 's|@CMAKE_INSTALL_FULL_LIBDIR@|$(LIBDIR)|g' \ | ||
| -e 's|@CMAKE_INSTALL_FULL_INCLUDEDIR@|$(INCLUDEDIR)|g' \ | ||
| -e "s|@PROJECT_VERSION@|$$(node -p "require('./package.json').version")|g" \ | ||
| $< > $@ |
There was a problem hiding this comment.
Hum but why would you do that instead of using CMake? That feels brittle
aduh95
left a comment
There was a problem hiding this comment.
I guess that's fine, but IMO we'd better simply remove the install target in the Makefile to keep a single supported installation method (CMake)
|
@aduh95 The two build paths currently serve different contexts: Make generates the C sources from TypeScript and builds from the development checkout, while CMake builds the pre-generated C sources shipped in releases. CMake does not work directly from the development checkout as-is: it expects the release layout and a substituted That explains keeping both build systems, though not necessarily both installation paths. I agree that having a single supported installation method would reduce maintenance; deprecating |
Summary
Generate and install
libllhttp.pcwithmake install, matching the pkg-config support provided by CMake.Changes
libllhttp.pc.inwith the package version and Make installation paths.$(LIBDIR)/pkgconfigwith mode 644.DESTDIRout of its contents.Additional Informations
AI-assisted work. All changes reviewed by a human.
Fixes #883.