-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFFmpegKit.Mac.Example.csproj
More file actions
56 lines (49 loc) · 2.63 KB
/
Copy pathFFmpegKit.Mac.Example.csproj
File metadata and controls
56 lines (49 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<Project Sdk="Microsoft.NET.Sdk">
<!--
A native AppKit sample for the macOS bindings - the counterpart of the MAUI samples in the
iOS and Android repositories, which cannot cover this platform: MAUI's "Mac" is Mac Catalyst,
and no native FFmpegKit Catalyst slice is published anywhere.
Deliberately NOT in FFmpegKit.sln: it consumes the packed NuGet from ./artifacts (see below),
so a solution restore on a fresh clone would fail before anything was built.
-->
<PropertyGroup>
<!--
One target framework per SDK band, selected by SampleSdkBand, so the CI sample matrix can
build the net8 and net10 extremes each on its own band. Unset locally it is the net9 dev
band, so `dotnet build` just works. The macOS platform version is pinned per band to match
the package's lib/ folders.
-->
<SampleSdkBand Condition=" '$(SampleSdkBand)' == '' ">net9</SampleSdkBand>
<TargetFrameworks Condition=" '$(SampleSdkBand)' == 'net8' ">net8.0-macos14.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(SampleSdkBand)' == 'net9' ">net9.0-macos15.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(SampleSdkBand)' == 'net10' ">net10.0-macos26.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<ApplicationId>com.sbokatuk.ffmpegkit.mac.example</ApplicationId>
<ApplicationTitle>FFmpegKit.Mac Example</ApplicationTitle>
<ApplicationVersion>1</ApplicationVersion>
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<!-- 12.0 is the floor the .NET 9 macOS SDK enforces. -->
<SupportedOSPlatformVersion>12.0</SupportedOSPlatformVersion>
<!--
Which build of the FFmpegKit package to demo. Defaults to the repository's own version, so
it tracks a local `BuildNugets.sh` automatically; pass -p:FFmpegKitVersion=8.1.2.1-beta.4
to try a specific build. Resolved from ./artifacts through the local feed in NuGet.config,
not from nuget.org, so it always exercises your local build.
-->
<FFmpegKitVersion Condition=" '$(FFmpegKitVersion)' == '' ">$(VersionPrefix)</FFmpegKitVersion>
</PropertyGroup>
<ItemGroup>
<!--
Full (LGPL) deliberately - swapping to a -gpl variant would make the sample itself
GPL-3.0. See the License section of the README.
-->
<PackageReference Include="FFmpegKit.Net.Full.Mac" Version="$(FFmpegKitVersion)" />
</ItemGroup>
<ItemGroup>
<!-- The clip the conversions run on, copied into the app bundle's Resources. -->
<BundleResource Include="Resources/sample.mp4" />
</ItemGroup>
</Project>