Boost logo

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
- Ensure threading on

Build Defines:

- if icu is enabled:
- if iconv enabled and found
- if posix backend is NOT enabled
- if std backend is not enabled
- if winapi backend is not enabled


- 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


If using boost<= 1.43 link with thread library

I would really appreciate any help



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at