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

Source options #119

Merged
merged 2 commits into from
Oct 31, 2017
Merged

Source options #119

merged 2 commits into from
Oct 31, 2017

Conversation

yonaskolb
Copy link
Owner

@yonaskolb yonaskolb commented Oct 31, 2017

This adds a new Source struct to replace the previous String model. This sets the stage to add various options to a targets sources by using a more expanded definition of a source.
Some possible we could build on top of this are:

  • name - an optional override for the name of the file/directory
  • compilerFlags
  • excludes - maybe using a glob pattern
  • group - could specify which group this sits in, defaults to the top level
  • type - group or folder reference (defaults to group)
  • buildPhase - overrides the guessing of what build phase files are for

These are now all valid ways to define a list of sources and are parsed into the same [Source] array:

sources: MySources
sources:
  - MySources
sources:
  - path: MySources

@yonaskolb yonaskolb merged commit f51894e into master Oct 31, 2017
@yonaskolb yonaskolb deleted the source_options branch November 1, 2017 19:46
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.

1 participant