Skip to content

Add support for user-defined settings in Xcode build settings - #482

Open
manas-kulkarni wants to merge 3 commits into
ubisoft:mainfrom
manas-kulkarni:xcode-user-build-settings
Open

Add support for user-defined settings in Xcode build settings#482
manas-kulkarni wants to merge 3 commits into
ubisoft:mainfrom
manas-kulkarni:xcode-user-build-settings

Conversation

@manas-kulkarni

Copy link
Copy Markdown

Closes #481

Comment thread Sharpmake/Options.XCode.cs Outdated
/// User defined settings in Xcode build settings
/// Array of string user defined settings in Xcode build settings { "CUSTOM_SETTING = XYZ", "CUSTOM_SETTING_1 = ABC" }
/// </summary>
public class UserDefinedSettings : Strings

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be named CustomBuildSettings since you are putting this into the BuildSettings section

options["LdRunPaths"] = ldRunPaths.Count > 0 ? XCodeUtil.XCodeFormatList(ldRunPaths, 4) : FileGeneratorUtilities.RemoveLineTag;

Strings userDefinedSettings = Options.GetStrings<Options.XCode.Compiler.UserDefinedSettings>(conf);
options["UserDefinedSettings"] = userDefinedSettings.Count > 0 ? string.Join($";{Environment.NewLine}", userDefinedSettings) : FileGeneratorUtilities.RemoveLineTag;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to CustomBuildSettings

@jspelletier

Copy link
Copy Markdown
Collaborator

please modify one of the existing xcode samples to add a custom build setting. we need to insure this works for a real compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Xcode - Support for adding user-defined settings

2 participants