thrift/build/cmake
2015-04-20 22:31:12 +02:00
..
config.h.in THRIFT-2962:Docker Thrift env for development and testing 2015-02-18 23:25:54 -05:00
ConfigureChecks.cmake CMake: fix path due to move of cmake folder 2015-02-19 17:27:53 +01:00
CPackConfig.cmake THRIFT-2962:Docker Thrift env for development and testing 2015-02-18 23:25:54 -05:00
DefineCMakeDefaults.cmake THRIFT-3103 cmake is missing RPATH on MacOSX. 2015-04-20 22:31:12 +02:00
DefineInstallationPaths.cmake THRIFT-2962:Docker Thrift env for development and testing 2015-02-18 23:25:54 -05:00
DefineOptions.cmake THRIFT-3099 cmake build is broken on FreeBSD 2015-04-16 22:23:27 +02:00
DefinePlatformSpecifc.cmake THRIFT-3099 cmake build is broken on FreeBSD 2015-04-16 22:23:27 +02:00
FindAnt.cmake THRIFT-2962:Docker Thrift env for development and testing 2015-02-18 23:25:54 -05:00
FindGLIB.cmake THRIFT-2962:Docker Thrift env for development and testing 2015-02-18 23:25:54 -05:00
FindLibevent.cmake THRIFT-2850 CMake for Apache Thrift 2015-04-12 16:10:35 +02:00
README.md THRIFT-2850 CMake for Apache Thrift 2015-04-12 16:10:35 +02:00
ThriftMacros.cmake THRIFT-2962:Docker Thrift env for development and testing 2015-02-18 23:25:54 -05:00

Apache Thrift - CMake build

Goal

Extend Apache Thrift's make cross approach to the build system.

Due to growing the field of operating system support, a proper executable and library detection mechanism running on as much platforms as possible becomes required. The other aspect to simplify the release process and package generation process.

As nice side benefit of CMake is the generation of development environment specific soultion files. => No solution files within source tree.

Usage

just do this:

mkdir build
cmake ${THRIFT_SRC}

if you use a specific toolchain pass it to cmake, the same for options:

cmake -DCMAKE_TOOLCHAIN_FILE=${THRIFT_SRC}/contrib/mingw32-toolchain.cmake ${THRIFT_SRC}
cmake -DCMAKE_C_COMPILER=clang-3.5 -DCMAKE_CXX_COMPILER=clang++-3.5 ${THRIFT_SRC}
cmake -DTHRIFT_COMPILER_HS=OFF ${THRIFT_SRC}
cmake -DWITH_ZLIB=ON ${THRIFT_SRC}

and open the development environment you like with the solution or do this:

make
make check
make cross
make dist

to generate an installer and distribution package do this:

cpack

TODO

  • git hash or tag based versioning depending on source state
  • build tutorial
  • build test
  • with/without language lib//
  • enable/disable
  • make cross
  • make dist (create an alias to make package_source)
  • make doc
  • cpack (C++ and make dist only ?)
    • thrift-compiler
    • libthrift
    • tutorial
    • test
  • merge into /README.md