-
Notifications
You must be signed in to change notification settings - Fork 6k
Adjust the GLFW build options #17704
Adjust the GLFW build options #17704
Conversation
- Adds an explicit option for not building the GLFW embedding. - Disables GLFW by default on Windows, where it's no longer the uploaded embedding. - Move the X11 pkg-config, which is only used by the GLFW embedding, behind the GLFW build flag.
@@ -340,8 +339,10 @@ def parse_args(args): | |||
help='The IDE files to generate using GN. Use `gn gen help` and look for the --ide flag to' + | |||
' see supported IDEs. If this flag is not specified, a platform specific default is selected.') | |||
|
|||
parser.add_argument('--build-glfw-shell', dest='build_glfw_shell', default=False, action='store_true', | |||
help='Force building the GLFW shell on desktop platforms where it is not built by default.') | |||
parser.add_argument('--build-glfw-shell', action='store_const', const=True, |
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.
I thought argparse implicitly added a no-
flag variant?
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.
I'm definitely not an argparse expert, but we're manually adding no-
for stripped
below already, and some quick searching turns up SO questions suggesting that it doesn't.
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.
I am not sure either, but if this pattern has been followed before, thats fine by me (I did not notice it in the initial review).
@@ -340,8 +339,10 @@ def parse_args(args): | |||
help='The IDE files to generate using GN. Use `gn gen help` and look for the --ide flag to' + | |||
' see supported IDEs. If this flag is not specified, a platform specific default is selected.') | |||
|
|||
parser.add_argument('--build-glfw-shell', dest='build_glfw_shell', default=False, action='store_true', | |||
help='Force building the GLFW shell on desktop platforms where it is not built by default.') | |||
parser.add_argument('--build-glfw-shell', action='store_const', const=True, |
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.
I am not sure either, but if this pattern has been followed before, thats fine by me (I did not notice it in the initial review).
- Adds an explicit option for not building the GLFW embedding. - Disables GLFW by default on Windows, where it's no longer the uploaded embedding. - Moves the X11 pkg-config, which is only used by the GLFW embedding, behind the GLFW build flag.
uploaded embedding.
behind the GLFW build flag.