blob: 7d2d0e9cb0bcbeca5c19315e28eeb8dc4fbdc1bb [file] [log] [blame]
David Reissea2cba82009-03-30 21:35:00 +00001#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
Roger Meier41ad4342015-03-24 22:30:40 +010020SUBDIRS = . test/ThriftTest
21
David Reiss1fdb5922008-02-06 22:10:12 +000022THRIFTCODE= \
David Reissd831a212009-02-13 03:09:52 +000023 src/Collections/THashSet.cs \
Jens Geyerb706b1a2013-04-29 22:10:10 +020024 src/Collections/TCollections.cs \
Jake Farrelle0c53162011-11-16 12:58:36 +000025 src/Properties/AssemblyInfo.cs \
Jake Farrell146e5112013-04-22 22:28:56 -040026 src/Protocol/TAbstractBase.cs \
David Reiss80a44e72009-02-03 22:16:46 +000027 src/Protocol/TBase.cs \
Bryan Duxburyfd32d792010-09-18 20:51:25 +000028 src/Protocol/TBase64Utils.cs \
29 src/Protocol/TJSONProtocol.cs \
David Reiss1fdb5922008-02-06 22:10:12 +000030 src/Protocol/TProtocolException.cs \
31 src/Protocol/TProtocolFactory.cs \
32 src/Protocol/TList.cs \
33 src/Protocol/TSet.cs \
34 src/Protocol/TMap.cs \
35 src/Protocol/TProtocolUtil.cs \
36 src/Protocol/TMessageType.cs \
37 src/Protocol/TProtocol.cs \
Jens Geyer72034242013-05-08 18:46:57 +020038 src/Protocol/TProtocolDecorator.cs \
39 src/Protocol/TMultiplexedProtocol.cs \
40 src/Protocol/TMultiplexedProcessor.cs \
David Reiss1fdb5922008-02-06 22:10:12 +000041 src/Protocol/TType.cs \
42 src/Protocol/TField.cs \
43 src/Protocol/TMessage.cs \
44 src/Protocol/TStruct.cs \
45 src/Protocol/TBinaryProtocol.cs \
Jake Farrell510ecae2012-10-11 00:20:00 +000046 src/Protocol/TCompactProtocol.cs \
David Reiss80a44e72009-02-03 22:16:46 +000047 src/Server/TThreadedServer.cs \
David Reiss1fdb5922008-02-06 22:10:12 +000048 src/Server/TThreadPoolServer.cs \
49 src/Server/TSimpleServer.cs \
50 src/Server/TServer.cs \
Randy Abernethy0e86f1f2014-07-13 09:50:19 -070051 src/Server/TServerEventHandler.cs \
David Reiss670cb0f2009-02-03 21:20:55 +000052 src/Transport/TBufferedTransport.cs \
David Reiss1fdb5922008-02-06 22:10:12 +000053 src/Transport/TTransport.cs \
54 src/Transport/TSocket.cs \
55 src/Transport/TTransportException.cs \
56 src/Transport/TStreamTransport.cs \
Esteve Fernandez7948a662009-11-11 18:32:25 +000057 src/Transport/TFramedTransport.cs \
David Reiss1fdb5922008-02-06 22:10:12 +000058 src/Transport/TServerTransport.cs \
59 src/Transport/TServerSocket.cs \
60 src/Transport/TTransportFactory.cs \
Bryan Duxbury62359472010-06-24 20:34:34 +000061 src/Transport/THttpClient.cs \
Jake Farrell6f1e9922011-04-13 21:09:02 +000062 src/Transport/THttpHandler.cs \
Nobuaki Sukegawa73d16372016-03-19 23:32:11 +090063 src/Transport/THttpTaskAsyncHandler.cs \
Jake Luciani938e6402013-04-25 17:53:08 -040064 src/Transport/TMemoryBuffer.cs \
Jens Geyerfd62df72014-03-20 00:52:18 +020065 src/Transport/TNamedPipeClientTransport.cs \
66 src/Transport/TNamedPipeServerTransport.cs \
Jens Geyerc1d79432014-04-22 22:52:43 +020067 src/Transport/TTLSSocket.cs \
68 src/Transport/TTLSServerSocket.cs \
Nobuaki Sukegawa73d16372016-03-19 23:32:11 +090069 src/TAsyncProcessor.cs \
David Reiss1fdb5922008-02-06 22:10:12 +000070 src/TProcessor.cs \
Jonathan Heard2bfd7df2015-10-28 17:34:27 +000071 src/TProcessorFactory.cs \
72 src/TSingletonProcessorFactory.cs \
73 src/TPrototypeProcessorFactory.cs \
74 src/TControllingHandler.cs \
Jens Geyere549a802013-06-20 21:48:21 +020075 src/TException.cs \
David Reiss1fdb5922008-02-06 22:10:12 +000076 src/TApplicationException.cs
77
Jens Geyer96d80202015-09-03 21:14:30 +020078if MONO_MCS
79CSC=mcs
80else
David Reisscfb23bb2008-04-02 22:09:03 +000081CSC=gmcs
Jens Geyer96d80202015-09-03 21:14:30 +020082endif
David Reiss1fdb5922008-02-06 22:10:12 +000083
David Reissd831a212009-02-13 03:09:52 +000084if NET_2_0
85MONO_DEFINES=/d:NET_2_0
86endif
87
David Reiss3de1c4e2008-02-24 17:45:03 +000088all-local: Thrift.dll
David Reiss1fdb5922008-02-06 22:10:12 +000089
90Thrift.dll: $(THRIFTCODE)
Jens Geyer196c5af2014-10-03 21:12:58 +020091 $(CSC) $(THRIFTCODE) /out:Thrift.dll /target:library /reference:System.Web $(MONO_DEFINES)
David Reiss1fdb5922008-02-06 22:10:12 +000092
93clean-local:
Jens Geyer196c5af2014-10-03 21:12:58 +020094 $(RM) Thrift.dll
David Reiss31609712008-02-06 22:10:26 +000095
Jens Geyer178b8132015-09-30 23:16:45 +020096precross: all-local
Roger Meier41ad4342015-03-24 22:30:40 +010097 $(MAKE) -C test/ThriftTest precross
98
Jens Geyer379c2772013-05-09 15:23:48 +020099# run csharp tests?
100# check:
Jens Geyer196c5af2014-10-03 21:12:58 +0200101# cd test/ThriftTest && ./maketest.sh
102# cd test/Multiplex && ./maketest.sh
jfarrell8fd8c632014-07-10 09:14:51 -0400103
David Reiss31609712008-02-06 22:10:26 +0000104EXTRA_DIST = \
105 $(THRIFTCODE) \
106 ThriftMSBuildTask \
107 src/Thrift.csproj \
Nobuaki Sukegawa73d16372016-03-19 23:32:11 +0900108 src/Thrift.45.csproj \
Jake Farrell510ecae2012-10-11 00:20:00 +0000109 src/Thrift.sln \
Jens Geyer8fcc82b2014-05-26 23:39:47 +0200110 src/Transport/TSilverlightSocket.cs \
jfarrell8fd8c632014-07-10 09:14:51 -0400111 test \
jfarrellf13e4312015-08-25 00:39:29 -0400112 coding_standards.md \
jfarrell8fd8c632014-07-10 09:14:51 -0400113 README.md