Top | ![]() |
![]() |
![]() |
![]() |
GFile * | ide_build_target_get_install_directory () |
gchar * | ide_build_target_get_name () |
gint | ide_build_target_get_priority () |
gchar ** | ide_build_target_get_argv () |
gchar * | ide_build_target_get_cwd () |
gchar * | ide_build_target_get_language () |
gboolean | ide_build_target_compare () |
GFile *
ide_build_target_get_install_directory
(IdeBuildTarget *self
);
gint
ide_build_target_get_priority (IdeBuildTarget *self
);
Gets the priority of the build target. This is used to sort build targets by their importance. The lowest value (negative values are allowed) will be run as the default run target by Builder.
Since: 3.28
gchar **
ide_build_target_get_argv (IdeBuildTarget *self
);
Gets the arguments used to run the target.
Since: 3.28
gchar *
ide_build_target_get_cwd (IdeBuildTarget *self
);
For build systems and build target providers that insist to be run in a specific place, this method gets the correct working directory.
If this method returns NULL
, the runtime will pick a default working
directory for the spawned process (usually, the user home directory
in the host system, or the flatpak sandbox home under flatpak).
Since: 3.28
gchar *
ide_build_target_get_language (IdeBuildTarget *self
);
Return the main programming language that was used to write this build target.
This method is primarily used to choose an appropriate debugger. Therefore, if a build target is composed of components in multiple language (eg. a GJS app with GObject Introspection libraries, or a Java app with JNI libraries), this should return the language that is most likely to be appropriate for debugging.
The default implementation returns "asm", which indicates an unspecified language that compiles to native code.
Since: 3.28
gboolean ide_build_target_compare (const IdeBuildTarget *left
,const IdeBuildTarget *right
);
struct IdeBuildTargetInterface { GTypeInterface parent_iface; GFile *(*get_install_directory) (IdeBuildTarget *self); gchar *(*get_name) (IdeBuildTarget *self); gint (*get_priority) (IdeBuildTarget *self); gchar **(*get_argv) (IdeBuildTarget *self); gchar *(*get_cwd) (IdeBuildTarget *self); gchar *(*get_language) (IdeBuildTarget *self); };