Adding Debugging Capabilities
This release is all about adding the capability to create packages for Windows (NuGet) and macOS (xcframework) that include debugging symbols.
Oh and also I introduced some unrelated breaking changes, which is why this is a major release! 🙈
To see in detail how this new version should be used, please consult jothepro/djinni-library-template.
Added
- When a debugging symbols framework directory (
.framework.dSYM
) is detected on macOS/iOS builds, it is included in the resulting .xcframework. (dcf9fe4) - When debugging symbols (
.pdb
) are detected on a Windows build, in addition to a normal.nupkg
, also a.symbols.nupkg
is created, that includes the.pdb
files for each target architecture (e1def3f). This will become useful for debugging once .NET 7 is released: dotnet/sdk#27580
Changed
- Packages are not built in-source any more. Instead, the required package files are copied from
lib/platform/<platform>/package
to the build directory and enriched with the C++ binaries there. This way the source directory stays clean. (1cc2d15) - The configuration parameter
nupkg_net_version
has been removed because the script can now automatically determine the target .NET version by parsing the.nuspec
file (1cc2d15). Make sure to define the .NET version like so in<metadata>
:<dependencies> <group targetFramework="net6.0" /> </dependencies>
- The configuration parameter
version
was removed, because the version is now retrieved automatically through the Conan API. Make sure to specify a version in yourconanfile.py
! (1cc2d15) - No
.nuspec.template
file is required anymore. Instead, the.nuspec
file should contain$version$
placeholders for setting the package version. Those parameters are automatically populated by the nuget CLI. (e1def3f)
Removed
- The CLI-option
--clean
was removed. It is not needed anymore because no artifacts will be copied to the source directory. (1cc2d15)
Full Changelog: v1.0.0...v2.0.0