You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by he...@apache.org on 2014/06/17 12:38:02 UTC
git commit: THRIFT-2571 doc and speed up travis build
Repository: thrift
Updated Branches:
refs/heads/master 44c9b4411 -> 55087a49d
THRIFT-2571 doc and speed up travis build
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/55087a49
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/55087a49
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/55087a49
Branch: refs/heads/master
Commit: 55087a49d335db7da23e23d8d8a9368e4e5ae7a6
Parents: 44c9b44
Author: henrique <he...@apache.org>
Authored: Tue Jun 17 12:36:39 2014 +0200
Committer: henrique <he...@apache.org>
Committed: Tue Jun 17 12:36:39 2014 +0200
----------------------------------------------------------------------
.travis.yml | 9 ++++-----
compiler/cpp/README.md | 35 +++++++++++++++++++++++++++++++++--
2 files changed, 37 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/55087a49/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index d54acc4..4ab649a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -68,10 +68,9 @@ install:
script:
# TODO: fix these languages
- sh configure --without-erlang --without-haskell --without-python --without-go --without-lua
- - make -j2 && make dist
- - make cross -j2
- - sh bootstrap.sh ; sh contrib/mingw-cross-compile.sh
- - mkdir build_native && cd build_native && cmake ../compiler/cpp/ && make; cd ..
- - mkdir build_mingw32 && cd build_mingw32 && cmake -DCMAKE_TOOLCHAIN_FILE=../contrib/mingw32-toolchain.cmake ../compiler/cpp/ && make; cd ..
+ - make -j4 && make dist
+ - make cross -j4
+ - mkdir build_native && cd build_native && cmake ../compiler/cpp/ && make -j4; cd ..
+ - mkdir build_mingw32 && cd build_mingw32 && cmake -DCMAKE_TOOLCHAIN_FILE=../contrib/mingw32-toolchain.cmake ../compiler/cpp/ && make -j4; cd ..
# TODO: add these steps
# - sh bootstrap.sh ; dpkg-buildpackage -tc
http://git-wip-us.apache.org/repos/asf/thrift/blob/55087a49/compiler/cpp/README.md
----------------------------------------------------------------------
diff --git a/compiler/cpp/README.md b/compiler/cpp/README.md
index 8d9eb50..7e74b89 100644
--- a/compiler/cpp/README.md
+++ b/compiler/cpp/README.md
@@ -1,15 +1,33 @@
# Build compiler using CMake
-Use the following steps to build using cmake
+Use the following steps to build using cmake:
mkdir build
cd build
cmake ..
make
+
+### Create an eclipse project
+
+ mkdir build_ec && cd build_ec
+ cmake -G "Eclipse CDT4 - Unix Makefiles" ..
+ make
+
+Now open the folder build_ec using eclipse.
+
+
+### Cross compile using mingw32
+
+ mkdir build_mingw32 && cd build_mingw32
+ cmake -DCMAKE_TOOLCHAIN_FILE=../../../contrib/mingw32-toolchain.cmake ..
+ make
+
+
+
## Build on windows
-In order to build on windows a few additional steps are necessary
+In order to build on windows a few additional steps are necessary:
1. Download winflexbison from http://sourceforge.net/projects/winflexbison/
2. Extract the winflex bison files to for e.g. C:\winflexbison
@@ -17,8 +35,21 @@ In order to build on windows a few additional steps are necessary
* FLEX_EXECUTBALE = C:/winbuild/win_flex.exe
* BISON_EXECUTBALE = C:/winbuild/win_bison.exe
+
+### Create a Visual Studio project
+
+ mkdir build_vs && cd build_vs
+ cmake -G "Visual Studio 12" ..
+
+Now open the folder build_vs using Visual Studio 2013.
+
+
+
+
# Building the Thrift IDL compiler in Windows
+If you don't want to use CMake you can use the already available Visual Studio
+2010 solution.
The Visual Studio project contains pre-build commands to generate the
thriftl.cc, thrifty.cc and thrifty.hh files which are necessary to build
the compiler. These depend on bison, flex and their dependencies to