Top | ![]() |
![]() |
![]() |
![]() |
GQuark | ide_runtime_error_quark () |
gboolean | ide_runtime_contains_program_in_path () |
IdeSubprocessLauncher * | ide_runtime_create_launcher () |
IdeRunner * | ide_runtime_create_runner () |
void | ide_runtime_prepare_configuration () |
IdeRuntime * | ide_runtime_new () |
const gchar * | ide_runtime_get_id () |
void | ide_runtime_set_id () |
const gchar * | ide_runtime_get_display_name () |
void | ide_runtime_set_display_name () |
GFile * | ide_runtime_translate_file () |
gchar ** | ide_runtime_get_system_include_dirs () |
gchar * | ide_runtime_get_arch () |
IdeTriplet * | ide_runtime_get_triplet () |
gboolean | ide_runtime_supports_toolchain () |
enum | IdeRuntimeError |
#define | IDE_TYPE_RUNTIME |
#define | IDE_RUNTIME_ERROR |
struct | IdeRuntimeClass |
IdeRuntime |
gboolean ide_runtime_contains_program_in_path (IdeRuntime *self
,const gchar *program
,GCancellable *cancellable
);
IdeSubprocessLauncher * ide_runtime_create_launcher (IdeRuntime *self
,GError **error
);
Creates a launcher for the runtime.
This can be used to execute a command within a runtime.
It is important that this function can be run from a thread without side effects.
IdeRunner * ide_runtime_create_runner (IdeRuntime *self
,IdeBuildTarget *build_target
);
Creates a new runner that can be used to execute the build target within the runtime. This should be used to implement such features as "run target" or "run unit test" inside the target runtime.
If build_target
is NULL
, the runtime should create a runner that allows
the caller to specify the binary using the IdeRunner API.
void ide_runtime_prepare_configuration (IdeRuntime *self
,IdeConfiguration *configuration
);
IdeRuntime * ide_runtime_new (IdeContext *context
,const gchar *id
,const gchar *title
);
void ide_runtime_set_display_name (IdeRuntime *self
,const gchar *display_name
);
GFile * ide_runtime_translate_file (IdeRuntime *self
,GFile *file
);
Translates the file from a path within the runtime to a path that can be accessed from the host system.
gchar **
ide_runtime_get_system_include_dirs (IdeRuntime *self
);
Gets the system include dirs for the runtime. Usually, this is just "/usr/include", but more complex runtimes may include additional.
A newly allocated string containing the include dirs.
[transfer full][array zero-terminated=1]
Since: 3.28
gchar *
ide_runtime_get_arch (IdeRuntime *self
);
Gets the architecture of the runtime.
This can be used to ensure we're compiling for the right architecture given the current device.
This is strictly equivalent to calling ide_triplet_get_arch on the result of ide_runtime_get_triplet.
Since: 3.28
IdeTriplet *
ide_runtime_get_triplet (IdeRuntime *self
);
Gets the architecture triplet of the runtime.
This can be used to ensure we're compiling for the right architecture given the current device.
Since: 3.30
gboolean ide_runtime_supports_toolchain (IdeRuntime *self
,IdeToolchain *toolchain
);
Informs wether a toolchain is supported by this.
Since: 3.30
struct IdeRuntimeClass { IdeObjectClass parent; gboolean (*contains_program_in_path) (IdeRuntime *self, const gchar *program, GCancellable *cancellable); IdeSubprocessLauncher *(*create_launcher) (IdeRuntime *self, GError **error); void (*prepare_configuration) (IdeRuntime *self, IdeConfiguration *configuration); IdeRunner *(*create_runner) (IdeRuntime *self, IdeBuildTarget *build_target); GFile *(*translate_file) (IdeRuntime *self, GFile *file); gchar **(*get_system_include_dirs) (IdeRuntime *self); IdeTriplet *(*get_triplet) (IdeRuntime *self); gboolean (*supports_toolchain) (IdeRuntime *self, IdeToolchain *toolchain); gpointer _reserved[12]; };