mirror of
https://github.com/google/brotli.git
synced 2026-09-22 06:35:52 +00:00
[PR #332] [CLOSED] build: create an encoder and decoder library #929
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/332
Author: @bagder
Created: 3/20/2016
Status: ❌ Closed
Base:
master← Head:libbrotli📝 Commits (1)
1e824cebuild: create an encoder and decoder library📊 Changes
5 files changed (+148 additions, -0 deletions)
View changed files
➕
Makefile.am(+89 -0)➕
autogen.sh(+22 -0)➕
configure.ac(+15 -0)➕
libbrotlidec.pc.in(+11 -0)➕
libbrotlienc.pc.in(+11 -0)📄 Description
Based on commit https://github.com/bagder/libbrotli/commit/e992cce7a17 after initial discussion in issue #326.
First take. This version unfortunately duplicate the list of sources from enc/Makefile and dec/Makefile, which I would rather avoid. It also doesn't use the
shared.mkmagic that the existing Makefiles use.Run
Any feedback on the approach? I decided to put the files in the root dir since that is a common convention. Let me know what you think.
docs
make installputs the headers in $prefix/install/dec and $prefix/install/inc subdirectories to be used for applications.This setup builds one encoder lib and one decoder lib.
libbrotlidec.pcandlibbrotlienc.pcare generated to help applications know how to link with them.The
Makefile.amfile needs to be maintained and state the correct SONAME numbers for the generated shared libraries. They say 1.0.0. for both, but its really up to you guys to decide how to do them.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.