Conan-center-index: [question] qr-code-generator creating 2 libraries with same file name

Created on 28 Aug 2020  路  1Comment  路  Source: conan-io/conan-center-index

Hello!

I have a package requiring qr-code-generator.
As you can see, it has both a c and c++ version.
The recipe on cci currently only packages the c++ version.

But I need the c version.

How would you fix this?
The problem is that qr-code-generator builds all its libraries with the same name: qrcodegen (with no postfix).

  1. Add a enable_c option and build either the c or c++ version
  2. build the c++ library as qrcodegen++/qrcodegenpp`and build both (c library asqrcodegen`)
  3. add a qr-code-generator-c recipe

Solution 1 does allow to have both the c and c++ in the build tree, because options are global.

Solution 2 requires patches to all dependencies.

Solution 3 is the easiest because it does not need any patches to any recipes needing the c version. Also it allows to combine the c and c++ versions without patching. The only downside is having to maintain an extra recipe.

What solution do you guys prefer? An alternative of which I didn't think of?

question

>All comments

Was this page helpful?
0 / 5 - 0 ratings