Index: third_party/libphonenumber/cpp/README |
=================================================================== |
--- third_party/libphonenumber/cpp/README (revision 0) |
+++ third_party/libphonenumber/cpp/README (revision 0) |
@@ -0,0 +1,69 @@ |
+C++ version of the libphonenumber project. |
+Work in progress. |
+ |
+This is a port of the Java version. |
+ |
+This project uses some third-party code: |
+ - src/base/ sources come from Chromium browser. |
+ - src/utf/ sources come from lib9 which is also used in Go. |
+ |
+Requirements: |
+ - CMake build system |
+ http://www.cmake.org |
+ |
+ You can install it very easily on a Debian-based GNU/Linux distribution: |
+ $ sudo apt-get install cmake |
+ |
+ - Protocol Buffers |
+ http://code.google.com/p/protobuf/ |
+ Version 2.4 or more recent is required. |
+ |
+ You can install it very easily on a Debian-based GNU/Linux distribution: |
+ $ sudo apt-get install libprotobuf-dev |
+ |
+ Note: if your GNU/Linux distribution doesn't provide the needed package, |
+ please download and install it manually: |
+ $ tar xjf protobuf-2.4.tar.bz2 |
+ $ cd protobuf-2.4 |
+ $ ./configure && make && sudo make install |
+ |
+ - Google Test |
+ http://code.google.com/p/googletest/ |
+ |
+ You can install it very easily on a Debian-based GNU/Linux distribution: |
+ $ sudo apt-get install libgtest-dev |
+ |
+ - RE2 |
+ http://code.google.com/p/re2/ |
+ |
+ You can install it very easily on Ubuntu Maverick and later: |
+ $ sudo apt-get install libre2-dev |
+ |
+ Otherwise if you use a Debian-based distribution you can fetch the Ubuntu |
+ package which should work: |
+ http://packages.ubuntu.com/maverick/libre2-dev |
+ |
+ If you want to install it manually: |
+ You need Mercurial to checkout its source code: |
+ $ sudo apt-get install mercurial |
+ |
+ Then checkout, build and install it: |
+ $ hg clone https://re2.googlecode.com/hg re2 |
+ $ cd re2 |
+ $ make test |
+ $ make install |
+ $ make testinstall |
+ |
+ - ICU |
+ http://userguide.icu-project.org/ |
+ |
+ You can install it very easily on a Debian-based distribution: |
+ $ sudo apt-get install libicu-dev |
+ |
+ |
+How to build libphonenumber C++: |
+ $ cd libphonenumber |
+ $ mkdir build |
+ $ cd build |
+ $ cmake ../cpp/ |
+ $ make |