CPP: Make libphonenumber depend on its own base/ when it's used in Chromium.
authorphilip.liard@gmail.com <philip.liard@gmail.com@ee073f10-1060-11df-b6a4-87a95322a99c>
Tue, 30 Apr 2013 12:08:05 +0000 (12:08 +0000)
committerphilip.liard@gmail.com <philip.liard@gmail.com@ee073f10-1060-11df-b6a4-87a95322a99c>
Tue, 30 Apr 2013 12:08:05 +0000 (12:08 +0000)
commitb0506cea3fdd963a604e1d26d0bebe5362237faa
tree4d95c9913ee06717689c136383006faab8b5fc0a
parente3deb144cdd19b9226758607aef665aacd1e89d9
CPP: Make libphonenumber depend on its own base/ when it's used in Chromium.

This is done by adding a USE_BOOST compile time flag that is enabled by default
when the library is compiled with CMake (mainly for external users).

In Chromium, the library will be built without the USE_BOOST compile time flag.
Instead the NO_THREAD_SAFETY flag will have to be provided so that the minimal
non-thread-safe subset of base will be used.
This is possible since libphonenumber is only used from the UI thread in
Chromium.

BUG=http://crbug.com/236272
R=jia.shao.peng@gmail.com

Review URL: https://codereview.appspot.com/8859052

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk@568 ee073f10-1060-11df-b6a4-87a95322a99c
cpp/CMakeLists.txt
cpp/README
cpp/src/phonenumbers/base/logging.h
cpp/src/phonenumbers/base/memory/scoped_ptr.h
cpp/src/phonenumbers/base/memory/singleton.h
cpp/src/phonenumbers/base/synchronization/lock.h
cpp/src/phonenumbers/base/template_util.h [new file with mode: 0644]
cpp/src/phonenumbers/base/thread_safety_check.h [new file with mode: 0644]
tools/cpp/src/base/basictypes.h