Skip to content

Conversation

@Jarod42
Copy link
Contributor

@Jarod42 Jarod42 commented Sep 22, 2021

What does this PR do?

  • Fix custom rule support (enum case) for gmake2 generator
  • Handle support of CustomRule for Codelite generator

How does this PR change Premake's behavior?

Handling of separator and switch in propertydefinition is coherent with msvc.

Anything else we should know?

The refacto (rule code moved from gmake to rule) is also used to add support of CustomRule for premake-ninja module

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

Copy link
Member

@starkos starkos left a comment

Choose a reason for hiding this comment

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

Thanks for digging into this! The title makes it sounds like you cracked custom rules for Gmake2 and CodeLite — 🎉 — but I'm not seeing any unit tests to back that up?

Copy link
Member

@starkos starkos left a comment

Choose a reason for hiding this comment

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

Looking good, thanks so much for this! Just a couple of small comments inline.

@starkos starkos changed the title CustomRule for gmake2/Codelite Add custom rules for Gmake2 & Codelite Oct 22, 2021
Copy link
Member

@starkos starkos left a comment

Choose a reason for hiding this comment

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

Okay, looking good. Can you squash the commits and rebase against the latest main branch, and I will approve ASAP? Thanks!

- move rule code from gmake2.lua to rule.lua
- Add UTs
- Fix enum case
- uniformise code for list.
- Add support of rules for Codelite.
@Jarod42
Copy link
Contributor Author

Jarod42 commented Oct 28, 2021

rebase and squash done.

@starkos starkos merged commit a2e37e6 into premake:master Oct 28, 2021
@starkos
Copy link
Member

starkos commented Oct 28, 2021

Merged, thanks!

@Jarod42 Jarod42 deleted the ruleRefacto branch October 28, 2021 14:37
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.

3 participants