Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

[apple]: expose apple.use_short_names_for_targets_in_xcode. #2604

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/com/facebook/buck/apple/AppleConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ public boolean shouldGenerateMissingUmbrellaHeaders() {
return delegate.getBooleanValue(APPLE_SECTION, "generate_missing_umbrella_headers", false);
}

public boolean shouldUseShortNamesForTargetsInXcodeProject() {
return delegate.getBooleanValue(APPLE_SECTION, "use_short_names_for_targets_in_xcode", true);
}

public boolean shouldUseSwiftDelegate() {
// TODO(mgd): Remove Swift delegation from Apple rules
return delegate.getBooleanValue(APPLE_SECTION, "use_swift_delegate", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ private ExitCode runXcodeProjectGenerator(
.setShouldUseShortNamesForTargets(true)
.setShouldCreateDirectoryStructure(combinedProject)
.setShouldGenerateProjectSchemes(createProjectSchemes)
.setShouldUseShortNamesForTargets(appleConfig.shouldUseShortNamesForTargetsInXcodeProject())
.build();

LOG.debug("Xcode project generation: Generates workspaces for targets");
Expand Down