Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider supporting a platform/sdk-level set of xcconfig files for cross-platform projects #27

Open
dempseyatgithub opened this issue Aug 21, 2018 · 4 comments
Assignees
Labels

Comments

@dempseyatgithub
Copy link
Owner

At the moment BSE performs all of its consolidation on the same 'level'. Common settings across multiple build settings at the project or target level are consolidated into a shared setting.

In a project created with targets for a single platform sdk, the project usually contains some consolidated platform-specific settings (such as SDKROOT).

For a project with targets for multiple platforms, it likely makes sense to have common settings for all targets using the same sdk separated out per platform.

This would generate a set of xcconfig files for each platform. (one per build style + shared).
Each target build style xcconfig file would import the platform build style xcconfig file for the appropriate platform.

@dempseyatgithub
Copy link
Owner Author

dempseyatgithub commented Jan 21, 2020

This would likely require moving some settings, at least the SDK setting, from the project down to the SDK-level config file. And the deployment target setting as well.

@dempseyatgithub
Copy link
Owner Author

Does it make sense to do as Xcode does and keep one SDK at the project level? Without it, the setting appears as 'No SDK (macOS)' in the Xcode build settings interface.

@dempseyatgithub
Copy link
Owner Author

In a project with many many targets with various SDKs may want another level of hierarchy:

Config
    Project
          Project-Shared.xconfig
           ...
   SDKs
         iOS
            iOS-Shared.xconfig
             ...
         macOS
            macOS-Shared.xconfig
             ...
    Targets
        MyApp
           MyApp-Shared.xconfig
           ...
        MyAppTests
           MyAppTests-Shared.xconfig
           ...

@schwa
Copy link

schwa commented Mar 10, 2021

👍Yes this would be grand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants