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

Add Swift Macro Support #108

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Add Swift Macro Support #108

wants to merge 6 commits into from

Conversation

STREGA
Copy link
Contributor

@STREGA STREGA commented Dec 11, 2024

Adds support for Macros served by any target and introduces a @PlaydateMain macro to handle setting up the not so user-friendly eventHandler SDK entry point.

  • Convert PlaydateGame to GameDelegate
  • Add PlaydateMain Macro
  • Add support for Swift Macros to PDCPlugin
    • Compile macro to executable
    • Pass executable to swiftc with -load-plugin-executable

Ran into some issues. Discussion:
https://forums.swift.org/t/command-plugin-dependencies-wrong-when-macro-target-present/76605/4

@STREGA STREGA marked this pull request as draft December 11, 2024 21:47
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