nokeedev / gradle-native

The home of anything about Gradle support for natively compiled languages
https://nokee.dev
Apache License 2.0
47 stars 8 forks source link

Validate Xcode build adapter against Signal-iOS build #821

Open lacasseio opened 1 year ago

lacasseio commented 1 year ago

As a user of the Xcode build adapter, I want to build a project with similar complexity as Signal-iOS build so that I can prove the build adapter works as advertised.

Acceptance Criteria

lacasseio commented 1 year ago

The Signal build has the following particularities:

There is also a particular behaviour that is triggered by Xcode when building the whole workspace, that is, the use of Clang vfsoverlay. It needs to be clarified why this particular behaviour is only triggered during a workspace build. The solution generates and passes the overlays to the target build. We are still validating the solution.

lacasseio commented 1 year ago

The vfsoverlay should be something that is composed into the build adapter. This means we need a task that creates the overlay data, exports the data, another task that merges the overlay data into a usable file, and finally then passes it to the build settings. We need to merge the overlay because -ivfsoverlay (clang) can only be specified once as opposed to -vfsoverlay (swiftc).