]> git.ipfire.org Git - thirdparty/curl.git/commit
src: omit hugehelp and ca-embed from libcurltool
authorViktor Szakats <commit@vsz.me>
Tue, 21 Jan 2025 16:11:45 +0000 (17:11 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 22 Jan 2025 10:21:43 +0000 (11:21 +0100)
commit96843f4ef74e02452972fd97fe15d8ff656f46ec
tree4a641f70f79ea0123b74adf6cd8a88db023bcc5a
parent8dfd271c352318b98749ee66a860a54a95e761c3
src: omit hugehelp and ca-embed from libcurltool

CMake builds using the Xcode generator broke with an error saying it
doesn't support multiple targets depending on the same custom commands.
These custom commands are generating `tool_hugehelp.c` and
`tool_c_embed.c` for the curl tool and libcurltool.

`unit1394` and `unit1604` tests use libcurltool to test tool-specific
functions. They don't need hugehelp and ca-embed. It's thus safe to
disable and exclude them when compiling the sources for libcurltool.
Use the `UNITTESTS` macro to detect a libcurltool build within C.

After this patch these sources are solely used for building the curl
tool. Making the build compatible with the CMake Xcode generator.

Apply the change to autotools too to keep build systems synchronized.

Follow-up to 12a6de2f660dd692cce93cb65ce6e3ec126bb531 #16043
Closes #16068
src/CMakeLists.txt
src/Makefile.am
src/Makefile.inc
src/tool_help.c
src/tool_operate.c