DefaultSwiftBinaryTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Introduce separate configurations for path resolution of native binaries

Using the same configuration for dependency declaration and resolution

is now deprecated.

  1. … 3 more files in changeset.
Introduce separate configurations for path resolution of native binaries

Using the same configuration for dependency declaration and resolution

is now deprecated.

  1. … 3 more files in changeset.
WIP - split up concerns in multiple configurations in native

  1. … 4 more files in changeset.
WIP - split up concerns in multiple configurations in native

  1. … 4 more files in changeset.
WIP - split up concerns in multiple configurations in native

  1. … 4 more files in changeset.
Address code review comment

  1. … 57 more files in changeset.
Revert `SwiftTargetMachine` to `SwiftPlatform`

  1. … 22 more files in changeset.
Move Swift source compatibility to `SwiftTargetMachine` on `SwiftBinary`

This commit still doesn't consider the source compatibility when

selecting the tool chain.

  1. … 24 more files in changeset.
Break association between current and software model type

Move `NativePlatform` getter to internal type.

  1. … 68 more files in changeset.
Replace all usages of the property factory methods on `ProjectLayout` and `DefaultTask` with the factory methods on `ObjectFactory`.

  1. … 44 more files in changeset.
Expose the variant name and header directories for each C++ binary in the C++ tooling model.

Rework construction of the native binary models so that the binary names are not formatted and parsed a bunch of times during construction and so do not lose information.

  1. … 36 more files in changeset.
Fix failing unit tests

  1. … 3 more files in changeset.
Fix tests and share code between C++ and Swift

  1. … 15 more files in changeset.
Rename source compatibility property and fix CI failures

Signed-off-by: Daniel Lacasse <daniel@gradle.com>

  1. … 19 more files in changeset.
Added methods to the various native component types to allow implementation and API dependencies to be declared on the component instance instead of on the project's `dependencies` block, for consistency with the binaries.

  1. … 32 more files in changeset.
Added an (internal for now) `names` property to each C++ and Swift binary, which code that needs to construct names for the binary can use instead of reverse engineering this from the name of the binary. This allows for different binaries to use different schemes (which they already do but communicate this through special names).

  1. … 21 more files in changeset.
Add support for configuring Swift language support of a component

Signed-off-by: Daniel Lacasse <daniel@gradle.com>

  1. … 32 more files in changeset.
Fixing tests

Signed-off-by: Daniel Lacasse <daniel@gradle.com>

  1. … 31 more files in changeset.
Move module map generation to the consumer side

  1. … 24 more files in changeset.
Add support for debuggable release variant for Swift projects

  1. … 40 more files in changeset.
Wire together Swift modules at compile time using the `.swiftmodule` files rather than using the directories containing such files.

- The module file is exposed as the artifact shared between projects, rather than its parent directory.

- `SwiftBinary.compileImportPath` is replaced with `compileModules`.

- `SwiftComile.includes` is replaced with `modules`.

- Swift source is now correctly recompiled when an upstream module's API changes, as the module files are now treated as inputs to compilation. Previously they were not.

  1. … 11 more files in changeset.
Pushed handling of the `-enable-testing` flag for Swift compilation down to the base plugin.

  1. … 13 more files in changeset.
Add queryable properties to Swift binaries

  1. … 21 more files in changeset.
Native plugins use configurations.maybeCreate(name) instead of .create()

So that their application don't fail the build at configuration time

if a configuration with the same name happen to already exist.

  1. … 13 more files in changeset.
Changed the Swift plugins so that `Configuration` instances are created and wired up as the convention plugins register components and binaries, rather than assuming that exactly one variant of exactly one component is produced by a project and that the project has exactly one variant of exactly one test suite.

This change doesn't add any public mechanism for registering components or binaries, it simply removes some assumptions from the various plugins.

    • -0
    • +49
    ./DefaultSwiftBinaryTest.groovy
  1. … 19 more files in changeset.