Skip to content

Conversation

brentleyjones
Copy link
Contributor

Part of #73.

This updates linker_input_files to be a proper DTO, moves link avoidance into it, removes the manual collection of dynamic frameworks in favor of using ObjcProvider, manually removes collection of frameworks into extra_files until that is rewritten, and sets up support for objc_import.

Comment on lines -115 to +119
["-filelist", "\(linkFileList),$(BUILD_DIR)".quoted]
["-filelist", linkFileList.quoted]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change was to setup support for cc_import and objc_import. Both of those will have PROJECT_DIR relative paths.

Comment on lines +94 to +96
elif ctx.rule.kind == "objc_import":
xcode_targets = {}
excluded = ("archives")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All changes in here are temporary, until this is rewritten to default to under-collecting instead of over-collecting.

Comment on lines +115 to +116
def _get_static_libraries(linker_inputs):
"""Returns the static libraries needed to link the target.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want to remove this in the future. It's duplicative of work done in _to_dto, and it's only used by the required_merges calculations.

This updates `linker_input_files` to be a proper DTO, moves link avoidance into it, removes the manual collection of dynamic frameworks in favor of using `ObjcProvider`, manually removes collection of frameworks into `extra_files` until that is rewritten, and sets up support for `objc_import`.
@brentleyjones brentleyjones force-pushed the bj/better-framework-handling branch from ad3739e to cf8a11f Compare April 25, 2022 21:18
@brentleyjones brentleyjones enabled auto-merge (squash) April 25, 2022 21:18
@brentleyjones brentleyjones merged commit eb670fe into main Apr 25, 2022
@brentleyjones brentleyjones deleted the bj/better-framework-handling branch April 25, 2022 21:25
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.

2 participants