CarVac / librtprocess

A project to make RawTherapee's processing algorithms more readily available.
Other
53 stars 24 forks source link

Build the shared library optionally #53

Closed Vincent-FA closed 4 years ago

Vincent-FA commented 4 years ago

There is an option to build the static library, but the shared library is always built now. Would it be possible to deactivate the build of the shared library with an option? I don't need it and it takes a long time to compile. Thank you

Vincent-FA commented 4 years ago

I actually found a simple way, specifying the target instead of using the default all:

$ make rtprocess_static

So maybe nothing more is required.

CarVac commented 4 years ago

Is that all that's required to make a static build? Or is there a cmake flag? I'm far from an expert on building.

If you'd like, I could add instructions to the readme.

Vincent-FA commented 4 years ago

It can be useful to document it indeed, I got the info privately: -DWITH_STATIC_LIB=ON must be passed to cmake to activate the build of the static library.