-
Notifications
You must be signed in to change notification settings - Fork 119
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 event config for starboard #4228
base: main
Are you sure you want to change the base?
Add event config for starboard #4228
Conversation
619815b
to
ce35f9e
Compare
With this change in, can you build PS5 locally ? @MSoliankoLuxoft @kaidokert , @andrewsavage1 : Maybe a good way to handle this is to introduce a macro USE_STARBOARD_3P - which is set by 3P owners instead of our USE_STARBOARD or maybe there's a better way to handle this . wdyt ? |
I don't think we should be accepting this kind of change at al unless it ends up being necessary for evergreen builds. Pretty much all customizations for 3pp should be maintained downstream |
@MSoliankoLuxoft can you somehow fix this via setting buildflags/ defines in GN in the PS5 gn files ? not these common files. |
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.
My recommendation:
In PS5 port, create a directory
internal/third_party/libevent
- put this modified file there. add internal/
to root include paths.
Then make sure that this added internal
include path comes before the other include paths - so that compiler always finds it before this file.
ce35f9e
to
073fa3d
Compare
Updated `#include` for `event-config.h` to support platform-specific configurations. Now, if `LIBEVENT_CONFIG_PLATFORM_HEADER` is defined, it includes the specified platform config file; otherwise, it defaults to `event-config.h`. b/372056053 Signed-off-by: Mykola Solianko <[email protected]>
073fa3d
to
28a77e4
Compare
Unfortunately, the proposed approach does not work because the I also tried using the following define in the PS5 GN file: I decided to use an alternative approach, similar to what is used in Please let me know if this approach would be acceptable. |
@@ -38,7 +38,12 @@ | |||
extern "C" { | |||
#endif | |||
|
|||
#if defined LIBEVENT_CONFIG_PLATFORM_HEADER |
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.
This is a better approach, but maybe this block fits better inside of the "event-config.h" at the top before the other conditions ?
That change could even be sent to upstream and be accepted, i think ?
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.
For what it's worth, it's not really an upstreaming concern for us much longer, Chromium removed libevent
entirely: https://issues.chromium.org/issues/40057013
b/372056053