blob: 637e4ed992592190a76819c97e9b92da11e8a924 [file] [log] [blame]
Jens Geyer07f4bb52022-09-03 14:50:06 +02001library SerializerData;
2(*
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *)
20
21uses
22 Classes,
23 Windows,
24 SysUtils,
25 Generics.Collections,
26 Thrift in '..\..\src\Thrift.pas',
27 Thrift.Exception in '..\..\src\Thrift.Exception.pas',
28 Thrift.Socket in '..\..\src\Thrift.Socket.pas',
29 Thrift.Transport in '..\..\src\Thrift.Transport.pas',
30 Thrift.Protocol in '..\..\src\Thrift.Protocol.pas',
31 Thrift.Protocol.JSON in '..\..\src\Thrift.Protocol.JSON.pas',
32 Thrift.Protocol.Compact in '..\..\src\Thrift.Protocol.Compact.pas',
33 Thrift.Collections in '..\..\src\Thrift.Collections.pas',
34 Thrift.Configuration in '..\..\src\Thrift.Configuration.pas',
35 Thrift.Server in '..\..\src\Thrift.Server.pas',
36 Thrift.Utils in '..\..\src\Thrift.Utils.pas',
37 Thrift.Serializer in '..\..\src\Thrift.Serializer.pas',
38 Thrift.Stream in '..\..\src\Thrift.Stream.pas',
39 Thrift.WinHTTP in '..\..\src\Thrift.WinHTTP.pas',
40 Thrift.TypeRegistry in '..\..\src\Thrift.TypeRegistry.pas',
41 System_ in 'gen-delphi\System_.pas',
42 SysUtils_ in 'gen-delphi\SysUtils_.pas',
Jens Geyere9f63e02024-11-23 01:01:13 +010043 test.ExceptionStruct in 'gen-delphi\test.ExceptionStruct.pas',
44 test.SimpleException in 'gen-delphi\test.SimpleException.pas',
Jens Geyer07f4bb52022-09-03 14:50:06 +020045 DebugProtoTest in 'gen-delphi\DebugProtoTest.pas',
46 TestSerializer.Data in 'TestSerializer.Data.pas';
47
48{$R *.res}
49
50function CreateOneOfEach : IOneOfEach; stdcall;
51begin
52 result := Fixtures.CreateOneOfEach;
53end;
54
55
56function CreateNesting : INesting; stdcall;
57begin
58 result := Fixtures.CreateNesting;
59end;
60
61
62function CreateHolyMoley : IHolyMoley; stdcall;
63begin
64 result := Fixtures.CreateHolyMoley;
65end;
66
67
68function CreateCompactProtoTestStruct : ICompactProtoTestStruct; stdcall;
69begin
70 result := Fixtures.CreateCompactProtoTestStruct;
71end;
72
73
Jens Geyere9f63e02024-11-23 01:01:13 +010074function CreateBatchGetResponse : IBatchGetResponse; stdcall;
75begin
76 result := Fixtures.CreateBatchGetResponse;
77end;
78
79
80function CreateSimpleException : IError; stdcall;
81begin
82 result := Fixtures.CreateSimpleException;
83end;
84
85
Jens Geyer07f4bb52022-09-03 14:50:06 +020086exports
87 CreateOneOfEach,
88 CreateNesting,
89 CreateHolyMoley,
Jens Geyere9f63e02024-11-23 01:01:13 +010090 CreateCompactProtoTestStruct,
91 CreateBatchGetResponse,
92 CreateSimpleException;
93
Jens Geyer07f4bb52022-09-03 14:50:06 +020094
95begin
96 IsMultiThread := TRUE;
97 ASSERT( cDebugProtoTest_Option_COM_types);
98 ASSERT( cSystem__Option_COM_types);
99end.