Interface
IdeBuildSystem
Prerequisite
In order to implement BuildSystem, your type must inherit fromIdeObject
.
Functions
ide_build_system_from_context
Gets the build system for the context. If no build system has been
registered, then this returns NULL
.
Instance methods
ide_build_system_get_build_flags_for_files_async
This function will get build flags for all files and returns
map of file and its build flags as GHashTable
.
ide_build_system_get_project_version
If the build system supports it, gets the project version as configured in the build system’s configuration files.
ide_build_system_prepare_tooling
This should prepare an environment for developer tooling such as a language server.
since: 44
ide_build_system_supports_language
Returns TRUE
if self
in it’s current configuration is known to support language
.
Interface structure
struct IdeBuildSystemInterface {
GTypeInterface parent_iface;
gint (* get_priority) (
IdeBuildSystem* self
);
void (* get_build_flags_async) (
IdeBuildSystem* self,
GFile* file,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gchar** (* get_build_flags_finish) (
IdeBuildSystem* self,
GAsyncResult* result,
GError** error
);
void (* get_build_flags_for_files_async) (
IdeBuildSystem* self,
GPtrArray* files,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
GHashTable* (* get_build_flags_for_files_finish) (
IdeBuildSystem* self,
GAsyncResult* result,
GError** error
);
gchar* (* get_builddir) (
IdeBuildSystem* self,
IdePipeline* pipeline
);
gchar* (* get_id) (
IdeBuildSystem* self
);
gchar* (* get_display_name) (
IdeBuildSystem* self
);
gboolean (* supports_toolchain) (
IdeBuildSystem* self,
IdeToolchain* toolchain
);
gchar* (* get_project_version) (
IdeBuildSystem* self
);
gboolean (* supports_language) (
IdeBuildSystem* self,
const char* language
);
char* (* get_srcdir) (
IdeBuildSystem* self
);
void (* prepare_tooling) (
IdeBuildSystem* self,
IdeRunContext* run_context
);
}
Interface members
parent_iface |
|
No description available. | |
get_priority |
|
No description available. | |
get_build_flags_async |
|
No description available. | |
get_build_flags_finish |
|
No description available. | |
get_build_flags_for_files_async |
|
No description available. | |
get_build_flags_for_files_finish |
|
No description available. | |
get_builddir |
|
No description available. | |
get_id |
|
No description available. | |
get_display_name |
|
No description available. | |
supports_toolchain |
|
No description available. | |
get_project_version |
|
No description available. | |
supports_language |
|
No description available. | |
get_srcdir |
|
No description available. | |
prepare_tooling |
|
No description available. |
Virtual methods
Ide.BuildSystem.get_build_flags_for_files_async
This function will get build flags for all files and returns
map of file and its build flags as GHashTable
.
Ide.BuildSystem.get_project_version
If the build system supports it, gets the project version as configured in the build system’s configuration files.
Ide.BuildSystem.prepare_tooling
This should prepare an environment for developer tooling such as a language server.
since: 44
Ide.BuildSystem.supports_language
Returns TRUE
if self
in it’s current configuration is known to support language
.