ronin.sdl
¶
-
class
ronin.sdl.
SDL
(command=None, static=None, prefix=None, exec_prefix=None)¶ Bases:
ronin.extensions.Extension
The SDL library, configured using the sdl2-config tool that comes with SDL’s development distribution. Supports gcc-like executors.
Note that you may also use
Package
to use SDL. However, this tool offers some special options you might need.Parameters: - command (str or FunctionType) –
sdl-config
command; defaults to the context’ssdl.config_command
- static (bool) – whether to link statically; defaults to the context’s
sdl.config_static
- prefix (str or FunctionType) – sdl-config prefix; defaults to the context’s
sdl.prefix
- exec_prefix (str or FunctionType) – sdl-config exec-prefix; defaults to the context’s
sdl.exec_prefix
-
apply_to_executor_gcc_compile
(executor)¶
-
apply_to_executor_gcc_link
(executor)¶
- command (str or FunctionType) –
-
ronin.sdl.
configure_sdl
(config_command=None, static=None, prefix=None, exec_prefix=None)¶ Configures the current context’s SDL support.
Parameters: - config_command (str or FunctionType) – config command; defaults to “sdl2-config”
- static (bool) – whether to link statically; defaults to False
- prefix (str or FunctionType) – sdl-config prefix
- exec_prefix (str or FunctionType) – sdl-config exec-prefix