pupnp / pupnp

libupnp: Build UPnP-compliant control points, devices, and bridges on several operating systems.
https://pupnp.github.io/pupnp
BSD 3-Clause "New" or "Revised" License
352 stars 115 forks source link

Visibility changes #376

Closed Vollstrecker closed 2 years ago

Vollstrecker commented 2 years ago

As discussed in #372 here are some changes for review

Vollstrecker commented 2 years ago

Looks like it's done. Although I prefer closing brackets on a line of their own when over multiple lines.

whyman commented 2 years ago

Does autotools also need updating?

whyman commented 2 years ago

Does autotools also need updating?

Vollstrecker commented 2 years ago

I don't think so. I hardly guess the LIBUPNP_EXPORTS and UPNP_STATIC_LIB comes from them, or was set there already, as otherwise noone ever would have used them. And libtool works different, they intercept the linker calls, grep for the regex the functions to export must match and give a map to the linker to tell him what to export.

atm. I'm searching through their scripts where the version arithmetic's are done, if I can replicate this in the configure script, at least libtool can be dropped from the deps.

Vollstrecker commented 2 years ago

k, just for update: libtool is not removeable. I can let automake create the libs without lt, but then it doesn't allow to install it in lib/. It could work if I bypass automake also, but this would result in some kind of self-written configure to make it really useable. In this case all autotools would be gone, but an additional script has to be maintained.

So it's cmake and autotools or cmake-only, but this is nothing to think about in a stable-branch.