-
Notifications
You must be signed in to change notification settings - Fork 480
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
split plugin lua macros to separate header #5161
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to get rid of those lines I just added in Plugins.cmake
:
# since PluginManager currently uses Lua headers, even when Lua is not used
get_target_property(lua_INCLUDES lua INTERFACE_INCLUDE_DIRECTORIES)
target_include_directories(${PLUGIN_NAME} PRIVATE ${lua_INCLUDES})
Maybe also add a comment to |
my base branch for this PR is before that was merged, so i either have to rebase, or cherry-pick that commit so i can reverse it. it'll be a bit |
you can also merge develop into this branch |
i tried that but it made a mess of the PR |
af802e2
to
20246c4
Compare
need to add lua include to
i can't figure out how to get |
If it's just if(BUILD_PLUGINS)
# remove when VTableInterpose.h no longer has a dependency on DataFuncs.h
get_target_property(lua_INCLUDES lua INTERFACE_INCLUDE_DIRECTORIES)
target_include_directories(add-spatter PRIVATE ${lua_INCLUDES})
endif() can be added just after |
this will reduce the number of translation units that require the includes from the lua dependency
19c0c01
to
88b84a7
Compare
now only add-spatter and spectate, due to `VTableInterpose.h` VTableInterpose.h needs `return_type<T>::is_method` whch is defined in `DataFuncs.h` which requires lua headers due to using `Lua::Push` in an inlined method
accomplished by moving the `return_type` trait definition from `DataFuncs.h` to `DataDefs.h` also fixed a few minor style issues
solely so the skeleton compiles without requiring lua libraries also expanded the comment
this will reduce the number of translation units that require the includes from the lua dependency