[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gnu-libiconv] Support for cross-platform builds via CMake
From: |
Markus Rickert |
Subject: |
[bug-gnu-libiconv] Support for cross-platform builds via CMake |
Date: |
Sun, 31 May 2020 23:22:10 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 |
Hello,
would there be an interest in improving support for cross-platform
builds by adding CMake build files to libiconv?
libiconv is one of the dependency of libxml2, which has recently added
CMake files to simplify support for cross-platform builds. Its other
dependencies zlib and liblzma, together with libxslt support CMake as
well, therefore it would be great if libiconv could be built in a
similar fashion.
I've created a fork to show how this would look like [1]. It enables
building the libiconv and libcharset libraries via the following commands:
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A x64 ..
cmake --build . --config Release
This includes generating files via genaliases, genaliases2, genflags,
and gentranslit. The iconv program is not built at the moment. Binary
archives, Debian and RPM packages, as well as NSIS and WIX installers
can be generated via CPack.
The build requires the gperf executable for generating the aliases, a
CMake port for this is also available [2].
Best regards,
Markus Rickert
[1] https://github.com/roboticslibrary/libiconv/tree/cmake
[2] https://github.com/roboticslibrary/gperf/tree/cmake
smime.p7s
Description: S/MIME cryptographic signature
- [bug-gnu-libiconv] Support for cross-platform builds via CMake,
Markus Rickert <=