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

[SR-12052] Dynamic build settings #4621

Open
davedelong opened this issue Jan 18, 2020 · 2 comments
Open

[SR-12052] Dynamic build settings #4621

davedelong opened this issue Jan 18, 2020 · 2 comments

Comments

@davedelong
Copy link

Previous ID SR-12052
Radar rdar://problem/58861177
Original Reporter @davedelong
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels New Feature
Assignee None
Priority Medium

md5: 7b6ebea921e1e11e0b3c9d76f4f35683

Issue Description:

In an xcconfig file, I can define build settings via nested substitutions. For example:

_SYZ_EXTENSION_YES = BUILDING_FOR_EXTENSION
_SYZ_EXTENSION_NO = BUILDING_FOR_APP
SYZ_EXTENSION = $(_SYZ_EXTENSION_$(APPLICATION_EXTENSION_API_ONLY)) 

This particular case is useful, because not all APIs are available in app extensions that are in apps (especially UIApplication). If I'm building a package that depends on these things, I need to know at compile time whether to expose certain portions of functionality.

@davedelong
Copy link
Author

I realize that the specific example given in the description can be accomplished another way (using availability annotations). However, the broader question of "how do I define build settings whose values are relative to other settings" remains.

@beccadax
Copy link
Contributor

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants