blob: d811c9ad8c399331df8a535934d4e700a7e563ee [file]
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
SUBDIRS = .
all-local:
$(DOTNETCORE) build -c Release
check-local: precompile-fuzzers
$(DOTNETCORE) test Tests/Thrift.Compile.Tests/Thrift.Compile.net8/Thrift.Compile.net8.csproj
$(DOTNETCORE) test Tests/Thrift.Compile.Tests/Thrift.Compile.net9/Thrift.Compile.net9.csproj
$(DOTNETCORE) test Tests/Thrift.Compile.Tests/Thrift.Compile.netstd2/Thrift.Compile.netstd2.csproj
$(DOTNETCORE) test Tests/Thrift.Tests/Thrift.Tests.csproj
$(DOTNETCORE) test Tests/Thrift.IntegrationTests/Thrift.IntegrationTests.csproj
# Compile-only build of the 12 fuzzer variants, without SharpFuzz
# IL rewriting. Wired into check-local so CI catches source changes
# that would break the fuzzer build — the actual fuzzing tooling
# (SharpFuzz.CommandLine global tool, libfuzzer-dotnet) is a dev-only
# dependency not present in CI.
precompile-fuzzers:
./buildfuzzers.sh --no-instrument
# Opt-in full build: compiles and instruments the 12 fuzzer variants
# for actual fuzzing. Requires the SharpFuzz.CommandLine global tool
# and libfuzzer-dotnet binary. Run manually: `make build-fuzzers`.
build-fuzzers:
./buildfuzzers.sh
clean-local:
$(RM) -r Thrift/bin
$(RM) -r Thrift/obj
$(RM) -r Thrift.AspNetCore/bin
$(RM) -r Thrift.AspNetCore/obj
$(RM) -r Benchmarks/Thrift.Benchmarks/bin
$(RM) -r Benchmarks/Thrift.Benchmarks/obj
$(RM) -r Tests/Thrift.Tests/bin
$(RM) -r Tests/Thrift.Tests/obj
$(RM) -r Tests/Thrift.IntegrationTests/bin
$(RM) -r Tests/Thrift.IntegrationTests/obj
$(RM) -r Tests/Thrift.Compile.Tests/Thrift.Compile.net8/bin
$(RM) -r Tests/Thrift.Compile.Tests/Thrift.Compile.net8/obj
$(RM) -r Tests/Thrift.Compile.Tests/Thrift.Compile.net9/bin
$(RM) -r Tests/Thrift.Compile.Tests/Thrift.Compile.net9/obj
$(RM) -r Tests/Thrift.Compile.Tests/Thrift.Compile.netstd2/bin
$(RM) -r Tests/Thrift.Compile.Tests/Thrift.Compile.netstd2/obj
$(RM) -r Tests/Thrift.FuzzTests/bin
$(RM) -r Tests/Thrift.FuzzTests/obj
$(RM) -r Tests/Thrift.FuzzTests/gen-netstd
distdir:
$(MAKE) $(AM_MAKEFLAGS) distdir-am
# Several test/benchmark projects ship as whole directories; strip the build
# output and generated code that a built tree leaves behind.
dist-hook:
find $(distdir) -type d \( -name bin -o -name obj -o -name gen-netstd \) -prune -exec rm -rf {} +
EXTRA_DIST = \
README.md \
Directory.Build.props \
Benchmarks/Thrift.Benchmarks \
Tests/codegen/run-NetStd-Codegen-Tests.ps1 \
Tests/Thrift.IntegrationTests/Protocols \
Tests/Thrift.IntegrationTests/Thrift.IntegrationTests.csproj \
Tests/Thrift.Compile.Tests \
Tests/Thrift.Compile.Tests/CassandraTest.thrift \
Tests/Thrift.Compile.Tests/optional_required_default.thrift \
Tests/Thrift.Compile.Tests/Thrift.Compile.net8/Thrift.Compile.net8.csproj \
Tests/Thrift.Compile.Tests/Thrift.Compile.net9/Thrift.Compile.net9.csproj \
Tests/Thrift.Compile.Tests/Thrift.Compile.netstd2/Thrift.Compile.netstd2.csproj \
Tests/Thrift.FuzzTests \
Tests/Thrift.Tests/Collections \
Tests/Thrift.Tests/DataModel \
Tests/Thrift.Tests/Protocols \
Tests/Thrift.Tests/Transports \
Tests/Thrift.Tests/Thrift.Tests.csproj \
Thrift/.editorconfig \
Thrift/Collections \
Thrift/Processor \
Thrift/Properties \
Thrift/Protocol \
Thrift/Server \
Thrift/GlobalSuppressions.cs \
Thrift/TApplicationException.cs \
Thrift/TBaseClient.cs \
Thrift/TConfiguration.cs \
Thrift/TException.cs \
Thrift/Thrift.csproj \
Thrift/Transport \
Thrift/*.snk \
Thrift.AspNetCore/.editorconfig \
Thrift.AspNetCore/Transport \
Thrift.AspNetCore/Thrift.AspNetCore.csproj \
Thrift.slnx \
build.cmd \
build.sh \
buildfuzzers.sh \
runfuzzer.sh \
runtests.cmd \
runtests.sh