|
Boost-Build : |
Subject: [Boost-build] [Locale] Help Needed with Boost-Build
From: Artyom (artyomtnk_at_[hidden])
Date: 2010-09-10 06:24:19
Hello All,
Help From Community Needed
==========================
Today Boost.Locale can be build only using CMake,
I need to port it to Boost.Build. Unfortunalty It is
very complicated task for me for two reasons:
- Quite complicated build requirements
- Lack of documentation
- Lack of my experience with BBv2
I've tried but I had no progress, even with previous,
much simpler version of Boost.Locale which didn't depended
on iconv and had ICU must to build option and so on.
Can some body please help me with build scripts?
The build requirements are generally following:
-----------------------------------------------
Input Options:
- with icu - turned on by default.
- with iconv (turned off by default in Windows and Solaris)
- with posix-backend (turned on by default on Linux and Mac)
- with winapi-backend (turned on on windows and cygwin)
- with std-backend (turned off by default with SunStudio/stlport)
Pre-Build Checks:
- if with icu is on, but no icu found, turn it on
Note, when building under MSVC/Debug; search for icuXXXd library
rather then for icuXXX library.
- if with iconv is on
if iconv is a part of standard C library, use it
Otherwise find libiconv, if not found, turn iconv off.
- if not on Windows and both iconv and icu are off rise
a error, no - charset conversion tool is given
- if building under SunStudion make sure it uses -library=stlport4
flag
- Ensure threading on
Build Defines:
- Add BOOST_ALL_NO_LIB
- if icu is enabled:
Define BOOST_LOCALE_WITH_ICU
- if iconv enabled and found
Define BOOST_LOCALE_WITH_ICONV
else
Define BOOST_LOCALE_NO_ICONV
- if posix backend is NOT enabled
Define BOOST_LOCALE_NO_POSIX_BACKEND
- if std backend is not enabled
Define BOOST_LOCALE_NO_STD_BACKEND
- if winapi backend is not enabled
Define BOOST_LOCALE_NO_WINAPI_BACKEND
Build:
- add shared source files and tests
- if with icu and icu found add ICU sources and tests
- if buiding with gcc and have icu sources add
-O0 option for test_formatting test
- if with posix add POSIX sources and tests
- if with std add STD sources and tests
Optionally:
If using boost<= 1.43 link with thread library
I would really appreciate any help
Artyom
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk