| David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 1 | # | 
|  | 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 |  | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 20 | THRIFTCODE= \ | 
| David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 21 | src/Collections/THashSet.cs \ | 
| Jens Geyer | b706b1a | 2013-04-29 22:10:10 +0200 | [diff] [blame] | 22 | src/Collections/TCollections.cs \ | 
| Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 23 | src/Properties/AssemblyInfo.cs \ | 
| Jake Farrell | 146e511 | 2013-04-22 22:28:56 -0400 | [diff] [blame] | 24 | src/Protocol/TAbstractBase.cs \ | 
| David Reiss | 80a44e7 | 2009-02-03 22:16:46 +0000 | [diff] [blame] | 25 | src/Protocol/TBase.cs \ | 
| Bryan Duxbury | fd32d79 | 2010-09-18 20:51:25 +0000 | [diff] [blame] | 26 | src/Protocol/TBase64Utils.cs \ | 
|  | 27 | src/Protocol/TJSONProtocol.cs \ | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 28 | src/Protocol/TProtocolException.cs \ | 
|  | 29 | src/Protocol/TProtocolFactory.cs \ | 
|  | 30 | src/Protocol/TList.cs \ | 
|  | 31 | src/Protocol/TSet.cs \ | 
|  | 32 | src/Protocol/TMap.cs \ | 
|  | 33 | src/Protocol/TProtocolUtil.cs \ | 
|  | 34 | src/Protocol/TMessageType.cs \ | 
|  | 35 | src/Protocol/TProtocol.cs \ | 
| Jens Geyer | 7203424 | 2013-05-08 18:46:57 +0200 | [diff] [blame] | 36 | src/Protocol/TProtocolDecorator.cs \ | 
|  | 37 | src/Protocol/TMultiplexedProtocol.cs \ | 
|  | 38 | src/Protocol/TMultiplexedProcessor.cs \ | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 39 | src/Protocol/TType.cs \ | 
|  | 40 | src/Protocol/TField.cs \ | 
|  | 41 | src/Protocol/TMessage.cs \ | 
|  | 42 | src/Protocol/TStruct.cs \ | 
|  | 43 | src/Protocol/TBinaryProtocol.cs \ | 
| Jake Farrell | 510ecae | 2012-10-11 00:20:00 +0000 | [diff] [blame] | 44 | src/Protocol/TCompactProtocol.cs \ | 
| David Reiss | 80a44e7 | 2009-02-03 22:16:46 +0000 | [diff] [blame] | 45 | src/Server/TThreadedServer.cs \ | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 46 | src/Server/TThreadPoolServer.cs \ | 
|  | 47 | src/Server/TSimpleServer.cs \ | 
|  | 48 | src/Server/TServer.cs \ | 
| David Reiss | 670cb0f | 2009-02-03 21:20:55 +0000 | [diff] [blame] | 49 | src/Transport/TBufferedTransport.cs \ | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 50 | src/Transport/TTransport.cs \ | 
|  | 51 | src/Transport/TSocket.cs \ | 
|  | 52 | src/Transport/TTransportException.cs \ | 
|  | 53 | src/Transport/TStreamTransport.cs \ | 
| Esteve Fernandez | 7948a66 | 2009-11-11 18:32:25 +0000 | [diff] [blame] | 54 | src/Transport/TFramedTransport.cs \ | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 55 | src/Transport/TServerTransport.cs \ | 
|  | 56 | src/Transport/TServerSocket.cs \ | 
|  | 57 | src/Transport/TTransportFactory.cs \ | 
| Bryan Duxbury | 6235947 | 2010-06-24 20:34:34 +0000 | [diff] [blame] | 58 | src/Transport/THttpClient.cs \ | 
| Jake Farrell | 6f1e992 | 2011-04-13 21:09:02 +0000 | [diff] [blame] | 59 | src/Transport/THttpHandler.cs \ | 
| Jake Luciani | 938e640 | 2013-04-25 17:53:08 -0400 | [diff] [blame] | 60 | src/Transport/TMemoryBuffer.cs \ | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 61 | src/TProcessor.cs \ | 
|  | 62 | src/TApplicationException.cs | 
|  | 63 |  | 
| Henrique Mendonça | da7982e | 2013-05-31 18:20:42 +0200 | [diff] [blame^] | 64 | THRIFTTESTCODE = \ | 
|  | 65 | test/ThriftTest/Program.cs \ | 
|  | 66 | test/ThriftTest/TestClient.cs \ | 
|  | 67 | test/ThriftTest/TestServer.cs \ | 
|  | 68 | test/ThriftTest/RoundTripTest.cs \ | 
|  | 69 | test/ThriftTest/Thrift/Test/*.cs | 
|  | 70 |  | 
| David Reiss | cfb23bb | 2008-04-02 22:09:03 +0000 | [diff] [blame] | 71 | CSC=gmcs | 
| Henrique Mendonça | da7982e | 2013-05-31 18:20:42 +0200 | [diff] [blame^] | 72 | NUNIT=nunit-console | 
|  | 73 | THRIFT=../../compiler/cpp/thrift | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 74 |  | 
| David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 75 | if NET_2_0 | 
|  | 76 | MONO_DEFINES=/d:NET_2_0 | 
|  | 77 | endif | 
|  | 78 |  | 
| David Reiss | 3de1c4e | 2008-02-24 17:45:03 +0000 | [diff] [blame] | 79 | all-local: Thrift.dll | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 80 |  | 
|  | 81 | Thrift.dll: $(THRIFTCODE) | 
| Jake Farrell | daca359 | 2011-04-14 01:42:12 +0000 | [diff] [blame] | 82 | $(CSC) $(THRIFTCODE) /out:Thrift.dll /target:library /reference:System.Web $(MONO_DEFINES) | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 83 |  | 
| Henrique Mendonça | da7982e | 2013-05-31 18:20:42 +0200 | [diff] [blame^] | 84 | test/ThriftTest/Thrift/Test/*.cs: ../../test/ThriftTest.thrift | 
|  | 85 | $(THRIFT) -gen csharp:hashcode -out test/ThriftTest ../../test/ThriftTest.thrift | 
|  | 86 |  | 
|  | 87 | ThriftTest.exe: Thrift.dll $(THRIFTTESTCODE) | 
|  | 88 | $(CSC) $(THRIFTTESTCODE) /out:ThriftTest.exe /target:exe /reference:nunit.framework /reference:Thrift.dll $(MONO_DEFINES) | 
|  | 89 |  | 
|  | 90 | check-local: ThriftTest.exe | 
|  | 91 | $(NUNIT) ThriftTest.exe | 
|  | 92 |  | 
| David Reiss | 1fdb592 | 2008-02-06 22:10:12 +0000 | [diff] [blame] | 93 | clean-local: | 
|  | 94 | $(RM) Thrift.dll | 
| David Reiss | 3160971 | 2008-02-06 22:10:26 +0000 | [diff] [blame] | 95 |  | 
| Jens Geyer | 379c277 | 2013-05-09 15:23:48 +0200 | [diff] [blame] | 96 | # run csharp tests? | 
|  | 97 | # check: | 
|  | 98 | # 	cd test/ThriftTest && ./maketest.sh | 
|  | 99 | # 	cd test/Multiplex && ./maketest.sh | 
|  | 100 |  | 
| David Reiss | 3160971 | 2008-02-06 22:10:26 +0000 | [diff] [blame] | 101 | EXTRA_DIST = \ | 
|  | 102 | $(THRIFTCODE) \ | 
|  | 103 | ThriftMSBuildTask \ | 
|  | 104 | src/Thrift.csproj \ | 
| Jake Farrell | 510ecae | 2012-10-11 00:20:00 +0000 | [diff] [blame] | 105 | src/Thrift.sln \ | 
|  | 106 | src/Thrift.WP7.csproj \ | 
| Jens Geyer | 379c277 | 2013-05-09 15:23:48 +0200 | [diff] [blame] | 107 | src/Properties/AssemblyInfo.WP7.cs \ | 
|  | 108 | test |