mkdir cmake-build && cd cmake-build cmake .. make
mkdir cmake-ec && cd cmake-ec cmake -G "Eclipse CDT4 - Unix Makefiles" .. make
Now open the folder cmake-ec using eclipse.
brew install cmake brew install bison
mkdir cmake-build && cd cmake-build cmake -G "Xcode" .. cmake --build .
Please check list of supported IDE
cmake --help
Git Bash provides flex and bison
mkdir cmake-vs && cd cmake-vs cmake -DWITH_SHARED_LIB=off .. cmake --build .
mkdir cmake-vs cd cmake-vs cmake -G "Visual Studio 15 2017" ..
mkdir cmake-mingw32 && cd cmake-mingw32 cmake -DCMAKE_TOOLCHAIN_FILE=../build/cmake/mingw32-toolchain.cmake -DBUILD_COMPILER=ON -DBUILD_LIBRARIES=OFF -DBUILD_TESTING=OFF .. cpack
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 work properly.
Download flex & bison as described above.
Place these binaries somewhere in the path and rename win_flex.exe and win_bison.exe to flex.exe and bison.exe respectively.
If this doesn't work on a system, try these manual pre-build steps.
Open compiler.sln and remove the Pre-build commands under the project's: Properties -> Build Events -> Pre-Build Events.
From a command prompt:
cd thrift/compiler/cpp flex -o src\thrift\thriftl.cc src\thrift\thriftl.ll
In the generated thriftl.cc, comment out #include <unistd.h>
Place a copy of bison.simple in thrift/compiler/cpp
bison -y -o "src/thrift/thrifty.cc" --defines src/thrift/thrifty.yy move src\thrift\thrifty.cc.hh src\thrift\thrifty.hh
Bison might generate the yacc header file “thrifty.cc.h” with just one h “.h” extension; in this case you'll have to rename to “thrifty.h”.
move src\thrift\version.h.in src\thrift\version.h
Download inttypes.h from the interwebs and place it in an include path location (e.g. thrift/compiler/cpp/src).
Build the compiler in Visual Studio.
Added generic way to cover code by tests for many languages (you just need to make a correct header file for generator for your language - example in netstd implementation)