blob: 81ce5b4472b9aff2807959115650b50754a59a89 [file] [log] [blame]
Hasnain Lakhani4afb7d92025-08-25 16:09:41 -07001// swift-tools-version:5.5
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
19import PackageDescription
20
21let package = Package(
22 name: "ThriftFuzzTesting",
23 dependencies: [
24 .package(name: "Thrift", path: "../")
25 ],
26 targets: [
27 // Generated code from Thrift definitions
28 .target(
29 name: "Fuzz",
30 dependencies: ["Thrift"],
31 path: "Sources/Fuzz"
32 ),
33 // Common utilities for fuzzing
34 .target(
35 name: "FuzzCommon",
36 dependencies: ["Thrift", "Fuzz"],
37 path: "Sources/FuzzCommon"
38 ),
39 .executableTarget(
40 name: "FuzzParseBinary",
41 dependencies: ["FuzzCommon", "Thrift", "Fuzz"],
42 path: "Sources/FuzzParseBinary",
43 linkerSettings: [
44 .unsafeFlags(["-sanitize=fuzzer"])
45 ]
46 ),
47 .executableTarget(
48 name: "FuzzRoundtripBinary",
49 dependencies: ["FuzzCommon", "Thrift", "Fuzz"],
50 path: "Sources/FuzzRoundtripBinary",
51 linkerSettings: [
52 .unsafeFlags(["-sanitize=fuzzer"])
53 ]
54 ),
55 .executableTarget(
56 name: "FuzzParseCompact",
57 dependencies: ["FuzzCommon", "Thrift", "Fuzz"],
58 path: "Sources/FuzzParseCompact",
59 linkerSettings: [
60 .unsafeFlags(["-sanitize=fuzzer"])
61 ]
62 ),
63 .executableTarget(
64 name: "FuzzRoundtripCompact",
65 dependencies: ["FuzzCommon", "Thrift", "Fuzz"],
66 path: "Sources/FuzzRoundtripCompact",
67 linkerSettings: [
68 .unsafeFlags(["-sanitize=fuzzer"])
69 ]
70 ),
71 .executableTarget(
72 name: "FuzzParseJSON",
73 dependencies: ["FuzzCommon", "Thrift", "Fuzz"],
74 path: "Sources/FuzzParseJSON",
75 linkerSettings: [
76 .unsafeFlags(["-sanitize=fuzzer"])
77 ]
78 ),
79 .executableTarget(
80 name: "FuzzRoundtripJSON",
81 dependencies: ["FuzzCommon", "Thrift", "Fuzz"],
82 path: "Sources/FuzzRoundtripJSON",
83 linkerSettings: [
84 .unsafeFlags(["-sanitize=fuzzer"])
85 ]
86 )
87 ]
88)