blob: facee11dd52f45ad42662663f8203f55fe107312 [file] [log] [blame]
Volodymyr Gotrab587a122016-09-14 19:18:48 -05001#
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
20SUBDIRS = .
21
22THRIFT = $(top_builddir)/compiler/cpp/thrift
23
24TESTDIR = Tests/Thrift.PublicInterfaces.Compile.Tests
25GENDIR = $(TESTDIR)/gen-netcore
26
27THRIFTCODE = \
Jens Geyerf3a29742017-11-30 22:30:03 +010028 Thrift/Thrift.csproj \
Volodymyr Gotrab587a122016-09-14 19:18:48 -050029 Thrift/ITAsyncProcessor.cs \
30 Thrift/ITProcessorFactory.cs \
31 Thrift/SingletonTProcessorFactory.cs \
32 Thrift/TApplicationException.cs \
33 Thrift/TBaseClient.cs \
34 Thrift/TException.cs \
35 Thrift/TMultiplexedProcessor.cs \
36 Thrift/Collections/TCollections.cs \
37 Thrift/Collections/THashSet.cs \
38 Thrift/Properties/AssemblyInfo.cs \
39 Thrift/Protocols/ITProtocolFactory.cs \
40 Thrift/Protocols/TAbstractBase.cs \
41 Thrift/Protocols/TBase.cs \
42 Thrift/Protocols/TBinaryProtocol.cs \
43 Thrift/Protocols/TCompactProtocol.cs \
44 Thrift/Protocols/TJSONProtocol.cs \
45 Thrift/Protocols/TMultiplexedProtocol.cs \
46 Thrift/Protocols/TProtocol.cs \
47 Thrift/Protocols/TProtocolDecorator.cs \
48 Thrift/Protocols/TProtocolException.cs \
49 Thrift/Protocols/Entities/TField.cs \
50 Thrift/Protocols/Entities/TList.cs \
51 Thrift/Protocols/Entities/TMap.cs \
52 Thrift/Protocols/Entities/TMessage.cs \
53 Thrift/Protocols/Entities/TMessageType.cs \
54 Thrift/Protocols/Entities/TSet.cs \
55 Thrift/Protocols/Entities/TStruct.cs \
56 Thrift/Protocols/Entities/TType.cs \
57 Thrift/Protocols/Utilities/TBase64Utils.cs \
58 Thrift/Protocols/Utilities/TProtocolUtil.cs \
59 Thrift/Server/AsyncBaseServer.cs \
60 Thrift/Server/TBaseServer.cs \
61 Thrift/Server/TServerEventHandler.cs \
62 Thrift/Transports/TClientTransport.cs \
63 Thrift/Transports/TServerTransport.cs \
64 Thrift/Transports/TTransportException.cs \
65 Thrift/Transports/TTransportFactory.cs \
66 Thrift/Transports/Client/TBufferedClientTransport.cs \
67 Thrift/Transports/Client/TFramedClientTransport.cs \
68 Thrift/Transports/Client/THttpClientTransport.cs \
69 Thrift/Transports/Client/TMemoryBufferClientTransport.cs \
70 Thrift/Transports/Client/TNamedPipeClientTransport.cs \
71 Thrift/Transports/Client/TSocketClientTransport.cs \
72 Thrift/Transports/Client/TStreamClientTransport.cs \
73 Thrift/Transports/Client/TTlsSocketClientTransport.cs \
74 Thrift/Transports/Server/THttpServerTransport.cs \
75 Thrift/Transports/Server/TNamedPipeServerTransport.cs \
Jens Geyerf3a29742017-11-30 22:30:03 +010076 Thrift/Transports/Server/TServerFramedTransport.cs \
Volodymyr Gotrab587a122016-09-14 19:18:48 -050077 Thrift/Transports/Server/TServerSocketTransport.cs \
78 Thrift/Transports/Server/TTlsServerSocketTransport.cs
79
80all-local: \
81 Thrift.dll
82
83Thrift.dll: $(THRIFTCODE)
84 $(MKDIR_P) $(GENDIR)
85 $(THRIFT) -gen netcore:wcf -r -out $(GENDIR) $(TESTDIR)/CassandraTest.thrift
86 $(THRIFT) -gen netcore:wcf -r -out $(GENDIR) $(top_srcdir)/test/ThriftTest.thrift
87 $(THRIFT) -gen netcore:wcf -r -out $(GENDIR) $(top_srcdir)/contrib/fb303/if/fb303.thrift
88 $(DOTNETCORE) --info
89 $(DOTNETCORE) restore
James E. King, IIIb6287362017-09-28 11:57:42 +000090 $(DOTNETCORE) build
Volodymyr Gotrab587a122016-09-14 19:18:48 -050091
92clean-local:
93 $(RM) Thrift.dll
94 $(RM) -r $(GENDIR)
95 $(RM) -r Thrift/bin
96 $(RM) -r Thrift/obj
97 $(RM) -r Tests/Thrift.PublicInterfaces.Compile.Tests/bin
98 $(RM) -r Tests/Thrift.PublicInterfaces.Compile.Tests/obj
99
100EXTRA_DIST = \
101 $(THRIFTCODE) \
Volodymyr Gotrab587a122016-09-14 19:18:48 -0500102 Thrift.sln \
Volodymyr Gotrab587a122016-09-14 19:18:48 -0500103 Tests \
104 README.md
105