[ 
https://issues.apache.org/jira/browse/THRIFT-2571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14026491#comment-14026491
 ] 

ASF GitHub Bot commented on THRIFT-2571:
----------------------------------------

Github user henrique commented on the pull request:

    https://github.com/apache/thrift/pull/137#issuecomment-45619994
  
    Hi Pascal,
    Thanks a lot for the request. This is a great step towards simplifying 
cross platform support as you have already said.
    Would you document the indicated building steps in the root or the compiler 
Readme.md as you have already done in the ticket? Perhaps we can mark it as 
experimental or alternative as it still only covers the Thrift compiler. 
    
    Cheers!


> Simplify cross compilation using CMake
> --------------------------------------
>
>                 Key: THRIFT-2571
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2571
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (General)
>    Affects Versions: 1.0
>            Reporter: Pascal Bach
>            Priority: Minor
>
> Using CMake would simplify cross compilation.
> The for example the same build script can be used to build:
> - Native for Linux using GCC
> - Native for Windows using Visual Studio
> - Cross compile for ARM on Linux
> - Cross compile for Windows form Linux using mingw32
> It also makes it easy to generate project files for Eclipse or Visual Studio.
> h2. Some examples:
> {code:title=Create an eclipse project|borderStyle=solid}
> mkdir build_ec && cd build_ec
> cmake -G "Eclipse CDT4 - Unix Makefiles" ../compiler/cpp
> make
> {code} 
> Now open the folder build_ec using eclipse.
> {code:title=Create a Visual Studio project (Windows only)|borderStyle=solid}
> mkdir build_vs && cd build_vs
> cmake -G "Visual Studio 12" ../compiler/cpp
> {code} 
> Now open the folder build_vs using Visual Studio.
> {code:title=Cross compile using mingw32|borderStyle=solid}
> mkdir build_mingw32 && cd build_mingw32
> cmake -DCMAKE_TOOLCHAIN_FILE=../contrib/mingw32-toolchain.cmake 
> ../compiler/cpp
> make
> {code} 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to