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

Compile sdk #62

Merged
merged 48 commits into from
Sep 10, 2024
Merged

Compile sdk #62

merged 48 commits into from
Sep 10, 2024

Conversation

Cre3per
Copy link

@Cre3per Cre3per commented Aug 27, 2024

Closes #59
Depends on #58

  • The generated SDK can be compiled without changes (CMake)
  • The generated SDK contains static_assertions for type sizes and field offsets where possible, which pass (Tested with CS2 9035763 on Linux)

Additionally, for testing purposes, I added a conan recipe to the SDK. The generated conan package works, but there are some properties we should set dynamically. There's a TODO in the recipe and conan isn't advertised in the README, so we can do it that a follow-up issue.

Cre3per added 30 commits July 27, 2024 12:54
detect indirect dependency cycles
- escape class names
- decay type names for lookup
- not done: generate includes
code never activated (in CS2)
to prevent the case where both resolvers don't resolve a dependency
sdk compiles!
code never triggers in CS2
@Cre3per
Copy link
Author

Cre3per commented Aug 27, 2024

Marked as draft until #58 is merged.

There is 1 open TOOD comment (not a typo) that is already being considered by @es3n1n, thanks buddy!

This branch is otherwise complete and ready to use, I have not planned any further changes.

@es3n1n es3n1n mentioned this pull request Aug 27, 2024
@Redict
Copy link

Redict commented Aug 31, 2024

@es3n1n merge?

@es3n1n
Copy link
Collaborator

es3n1n commented Aug 31, 2024

@es3n1n merge?

Hi, there is still some work that we have to do first before merging. I will take a look at it next week hopefully 🫣

@Cre3per Cre3per marked this pull request as ready for review September 1, 2024 16:00
@es3n1n es3n1n mentioned this pull request Sep 10, 2024
@es3n1n
Copy link
Collaborator

es3n1n commented Sep 10, 2024

Tweaked a few things, add some missing types and now it works as expected on my machine too.
Tested with:

  • MSVC 19.37.32824
  • clang 18 (windows)
  • clang 17 (linux)
  • gcc 11.4.0 (linux)

Looks like we're good to go.

@es3n1n es3n1n requested a review from cpz September 10, 2024 19:11
@es3n1n
Copy link
Collaborator

es3n1n commented Sep 10, 2024

yay

@es3n1n es3n1n merged commit 209b85c into neverlosecc:main Sep 10, 2024
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.

Generated SDK does not compile
4 participants