| Pascal Bach | d5f87e1 | 2014-12-12 15:59:17 +0100 | [diff] [blame] | 1 | # Apache Thrift - CMake build |
| 2 | |
| 3 | ## Goal |
| 4 | Extend Apache Thrift's *make cross* approach to the build system. |
| 5 | |
| 6 | Due to growing the field of operating system support, a proper executable |
| 7 | and library detection mechanism running on as much platforms as possible |
| 8 | becomes required. The other aspect to simplify the release process and |
| 9 | package generation process. |
| 10 | |
| 11 | As nice side benefit of CMake is the generation of development environment |
| 12 | specific soultion files. => No solution files within source tree. |
| 13 | |
| 14 | |
| 15 | ## Usage |
| 16 | just do this: |
| 17 | |
| 18 | mkdir build |
| 19 | cmake ${THRIFT_SRC} |
| 20 | |
| 21 | if you use a specific toolchain pass it to cmake, the same for options: |
| 22 | |
| 23 | cmake -DCMAKE_TOOLCHAIN_FILE=${THRIFT_SRC}/contrib/mingw32-toolchain.cmake ${THRIFT_SRC} |
| 24 | cmake -DTHRIFT_COMPILER_HS=OFF ${THRIFT_SRC} |
| 25 | cmake -DWITH_ZLIB=ON ${THRIFT_SRC} |
| 26 | |
| 27 | and open the development environment you like with the solution or do this: |
| 28 | |
| 29 | make |
| 30 | make check |
| 31 | make cross |
| 32 | make dist |
| 33 | |
| 34 | to generate an installer and distribution package do this: |
| 35 | |
| 36 | cpack |
| 37 | |
| 38 | ## TODO |
| 39 | * git hash or tag based versioning depending on source state |
| 40 | * build tutorial |
| 41 | * build test |
| 42 | * with/without language lib/<lang>/ |
| 43 | * enable/disable |
| 44 | * make check (QUESTION: Is test the default CMake target?) |
| 45 | * make cross |
| 46 | * make dist (create an alias to make package_source) |
| 47 | * make doc |
| 48 | * cpack (C++ and make dist only ?) |
| 49 | * thrift-compiler |
| 50 | * libthrift |
| 51 | * tutorial |
| 52 | * test |
| 53 | * merge into /README.md |
| 54 | |