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

James E. King, III commented on THRIFT-2850:
--------------------------------------------

I have a set of changes that I used to build a bunch of stuff successfully on 
Windows:
{noformat}C:\Users\Jim\workspace\thrift-build>dir bin\*.exe
 Volume in drive C is OS

 Directory of C:\Users\Jim\workspace\thrift-build\bin

04/21/2015  01:05 AM           262,144 AllProtocolsTest.exe
04/21/2015  01:05 AM         2,657,280 Benchmark.exe
04/21/2015  01:07 AM           910,848 concurrency_test.exe
04/21/2015  01:06 AM         2,721,792 DebugProtoTest.exe
04/21/2015  01:06 AM         1,681,920 EnumTest.exe
04/21/2015  01:06 AM         2,826,240 JSONProtoTest.exe
04/21/2015  01:07 AM            42,496 link_test.exe
04/21/2015  01:06 AM         1,825,792 OpenSSLManualInitTest.exe
04/21/2015  01:06 AM           580,096 OptionalRequiredTest.exe
04/21/2015  01:06 AM           335,872 RecursiveTest.exe
04/21/2015  01:06 AM         2,747,392 SpecializationTest.exe
04/21/2015  01:06 AM           139,776 TFDTransportTest.exe
04/21/2015  01:03 AM         6,411,776 thrift.exe
04/21/2015  01:06 AM           173,056 TPipedTransportTest.exe
04/21/2015  01:06 AM         2,808,832 TransportTest.exe
04/21/2015  01:07 AM         3,996,160 UnitTests.exe
04/21/2015  01:07 AM         1,786,880 ZlibTest.exe
              17 File(s)     31,908,352 bytes
               0 Dir(s)  57,334,652,928 bytes free

C:\Users\Jim\workspace\thrift-build>dir lib
 Volume in drive C is OS

 Directory of C:\Users\Jim\workspace\thrift-build\lib

04/21/2015  01:07 AM    <DIR>          .
04/21/2015  01:07 AM    <DIR>          ..
04/21/2015  12:45 AM    <DIR>          cpp
04/21/2015  01:02 AM         6,516,332 libparsed.lib
04/21/2015  01:05 AM        53,386,360 testgencppd.lib
04/21/2015  01:07 AM           907,678 testgencpp_cobd.lib
04/21/2015  01:04 AM        28,138,136 thriftmdd.lib
04/21/2015  01:04 AM           729,324 thriftzmdd.lib
               5 File(s)     89,677,830 bytes
               3 Dir(s)  57,334,652,928 bytes free

C:\Users\Jim\workspace\thrift-build>{noformat}

Do you want me to submit it as part of this open item?
I could only get static libraries to build and work properly because building 
thrift.dll produces no /IMPLIB output file.
As such I added a link macro that will honor WITH_SHARED_LIB and 
WITH_STATIC_LIB settings, preferring to link the tests against shared, and if 
that is disabled then against static.  Previously, all unit tests linked only 
against shared libraries.
I'll make sure it builds on linux before I send in a pull request.

> CMake for Apache Thrift
> -----------------------
>
>                 Key: THRIFT-2850
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2850
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Build Process
>         Environment: all platforms
>            Reporter: Roger Meier
>            Assignee: Roger Meier
>              Labels: cmake, travis
>         Attachments: 0001-THRIFT-2850-CMake-for-Apache-Thrift.patch
>
>
> 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 is simplify the release process and
> package generation process.
> As nice side benefit of CMake is the generation of development environment
> specific solution files(VisualStudio, Eclipse, Xcode, etc. ). => No solution 
> files within source tree.
> We are already building Apache Thrift with CMake for Linux-ARM, Linux-x86, 
> Windows CE and Windows.
> We are in preparation phase for a pull request here:
> https://github.com/siemens/thrift/commits/cmake-master



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to