Top | ![]() |
![]() |
![]() |
![]() |
gchar * | app-id | Read / Write |
gchar * | append-path | Read / Write |
GStrv | build-commands | Read / Write |
GFile * | build-commands-dir | Read / Write |
gchar * | config-opts | Read / Write |
gboolean | debug | Read / Write |
gboolean | dirty | Read / Write |
gchar * | display-name | Read / Write |
GStrv | environ | Read |
gchar * | id | Read / Write / Construct Only |
IdeBuildLocality | locality | Read / Write |
gint | parallelism | Read / Write |
GStrv | post-install-commands | Read / Write |
gchar * | prefix | Read / Write |
gboolean | ready | Read |
gchar * | run-opts | Read / Write |
IdeRuntime * | runtime | Read / Write |
gchar * | runtime-id | Read / Write |
IdeToolchain * | toolchain | Read / Write |
gchar * | toolchain-id | Read / Write |
#define | IDE_TYPE_CONFIGURATION |
enum | IdeBuildLocality |
struct | IdeConfigurationClass |
IdeConfiguration |
GFlags ╰── IdeBuildLocality GObject ╰── IdeObject ╰── IdeConfiguration ╰── IdeBuildconfigConfiguration
const gchar *
ide_configuration_get_append_path (IdeConfiguration *self
);
void ide_configuration_set_append_path (IdeConfiguration *self
,const gchar *append_path
);
const gchar *
ide_configuration_get_runtime_id (IdeConfiguration *self
);
void ide_configuration_set_runtime_id (IdeConfiguration *self
,const gchar *runtime_id
);
const gchar *
ide_configuration_get_toolchain_id (IdeConfiguration *self
);
Gets the toolchain id for the configuration.
Since: 3.30
void ide_configuration_set_toolchain_id (IdeConfiguration *self
,const gchar *toolchain_id
);
Sets the toolchain id for the configuration.
Since: 3.30
void ide_configuration_set_dirty (IdeConfiguration *self
,gboolean dirty
);
const gchar *
ide_configuration_get_display_name (IdeConfiguration *self
);
void ide_configuration_set_display_name (IdeConfiguration *self
,const gchar *display_name
);
IdeBuildLocality
ide_configuration_get_locality (IdeConfiguration *self
);
void ide_configuration_set_locality (IdeConfiguration *self
,IdeBuildLocality locality
);
gboolean
ide_configuration_get_ready (IdeConfiguration *self
);
Determines if the configuration is ready for use.
IdeRuntime *
ide_configuration_get_runtime (IdeConfiguration *self
);
Gets the runtime for the configuration.
void ide_configuration_set_runtime (IdeConfiguration *self
,IdeRuntime *runtime
);
IdeToolchain *
ide_configuration_get_toolchain (IdeConfiguration *self
);
Gets the toolchain for the configuration.
Since: 3.30
void ide_configuration_set_toolchain (IdeConfiguration *self
,IdeToolchain *toolchain
);
Sets the toolchain for the configuration.
Since: 3.30
gchar **
ide_configuration_get_environ (IdeConfiguration *self
);
Gets the environment to use when spawning processes.
const gchar * ide_configuration_getenv (IdeConfiguration *self
,const gchar *key
);
void ide_configuration_setenv (IdeConfiguration *self
,const gchar *key
,const gchar *value
);
void ide_configuration_set_debug (IdeConfiguration *self
,gboolean debug
);
const gchar *
ide_configuration_get_prefix (IdeConfiguration *self
);
void ide_configuration_set_prefix (IdeConfiguration *self
,const gchar *prefix
);
const gchar *
ide_configuration_get_config_opts (IdeConfiguration *self
);
void ide_configuration_set_config_opts (IdeConfiguration *self
,const gchar *config_opts
);
const gchar *
ide_configuration_get_run_opts (IdeConfiguration *self
);
Gets the command line options to use when running the target application.
The result should be parsed with g_shell_parse_argv()
to convert the run
options to an array suitable for use in argv.
A string containing the run options
or NULL
if none have been set.
[transfer none][nullable]
Since: 3.26
void ide_configuration_set_run_opts (IdeConfiguration *self
,const gchar *run_opts
);
Sets the run options to use when running the target application.
See ide_configuration_get_run_opts()
for more information.
Since: 3.26
const gchar * const *
ide_configuration_get_build_commands (IdeConfiguration *self
);
void ide_configuration_set_build_commands (IdeConfiguration *self
,const gchar *const *build_commands
);
GFile *
ide_configuration_get_build_commands_dir
(IdeConfiguration *self
);
void ide_configuration_set_build_commands_dir (IdeConfiguration *self
,GFile *build_commands_dir
);
const gchar * const *
ide_configuration_get_post_install_commands
(IdeConfiguration *self
);
void ide_configuration_set_post_install_commands (IdeConfiguration *self
,const gchar *const *post_install_commands
);
gint
ide_configuration_get_parallelism (IdeConfiguration *self
);
void ide_configuration_set_parallelism (IdeConfiguration *self
,gint parallelism
);
IdeEnvironment *
ide_configuration_get_environment (IdeConfiguration *self
);
void ide_configuration_set_environment (IdeConfiguration *self
,IdeEnvironment *environment
);
guint
ide_configuration_get_sequence (IdeConfiguration *self
);
This returns a sequence number for the configuration. This is useful for build systems that want to clear the "dirty" bit on the configuration so that they need not bootstrap a second time. This should be done by checking the sequence number before executing the bootstrap, and only cleared if the sequence number matches after performing the bootstrap. This indicates no changes have been made to the configuration in the mean time.
const gchar *
ide_configuration_get_app_id (IdeConfiguration *self
);
Gets the application ID for the configuration.
void ide_configuration_set_app_id (IdeConfiguration *self
,const gchar *app_id
);
void ide_configuration_apply_path (IdeConfiguration *self
,IdeSubprocessLauncher *launcher
);
gboolean ide_configuration_supports_runtime (IdeConfiguration *self
,IdeRuntime *runtime
);
const gchar * ide_configuration_get_internal_string (IdeConfiguration *self
,const gchar *key
);
void ide_configuration_set_internal_string (IdeConfiguration *self
,const gchar *key
,const gchar *value
);
const gchar * const * ide_configuration_get_internal_strv (IdeConfiguration *self
,const gchar *key
);
void ide_configuration_set_internal_strv (IdeConfiguration *self
,const gchar *key
,const gchar *const *value
);
gboolean ide_configuration_get_internal_boolean (IdeConfiguration *self
,const gchar *key
);
void ide_configuration_set_internal_boolean (IdeConfiguration *self
,const gchar *key
,gboolean value
);
gint ide_configuration_get_internal_int (IdeConfiguration *self
,const gchar *key
);
void ide_configuration_set_internal_int (IdeConfiguration *self
,const gchar *key
,gint value
);
gint64 ide_configuration_get_internal_int64 (IdeConfiguration *self
,const gchar *key
);
void ide_configuration_set_internal_int64 (IdeConfiguration *self
,const gchar *key
,gint64 value
);
gpointer ide_configuration_get_internal_object (IdeConfiguration *self
,const gchar *key
);
Gets the value associated with key
if it is a GObject.
void ide_configuration_set_internal_object (IdeConfiguration *self
,const gchar *key
,gpointer instance
);
Sets the value for key
to instance
.
struct IdeConfigurationClass { IdeObjectClass parent; IdeRuntime *(*get_runtime) (IdeConfiguration *self); void (*set_runtime) (IdeConfiguration *self, IdeRuntime *runtime); gboolean (*supports_runtime) (IdeConfiguration *self, IdeRuntime *runtime); };
“app-id”
property “app-id” gchar *
The application ID (such as org.gnome.Builder).
Flags: Read / Write
Default value: NULL
“append-path”
property “append-path” gchar *
Append to PATH environment variable.
Flags: Read / Write
Default value: NULL
“build-commands-dir”
property “build-commands-dir” GFile *
Directory to run build commands from.
Flags: Read / Write
“config-opts”
property “config-opts” gchar *
Parameters to bootstrap the project.
Flags: Read / Write
Default value: NULL
“dirty”
property “dirty” gboolean
If the configuration has been changed.
Flags: Read / Write
Default value: FALSE
“display-name”
property “display-name” gchar *
Display Name.
Flags: Read / Write
Default value: NULL
“locality”
property“locality” IdeBuildLocality
Where the build may occur.
Flags: Read / Write
Default value: IDE_BUILD_LOCALITY_IN_TREE | IDE_BUILD_LOCALITY_OUT_OF_TREE
“parallelism”
property “parallelism” gint
Parallelism.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“post-install-commands”
property “post-install-commands” GStrv
Post install commands.
Flags: Read / Write
“ready”
property “ready” gboolean
If the configuration can be used for building.
Flags: Read
Default value: FALSE
“run-opts”
property “run-opts” gchar *
The options for running the target application.
Flags: Read / Write
Default value: NULL
“runtime-id”
property “runtime-id” gchar *
The identifier of the runtime.
Flags: Read / Write
Default value: "host"
“changed”
signalvoid user_function (IdeConfiguration *ideconfiguration, gpointer user_data)
Flags: Run Last