Method
IdeBuildSystemDiscoverydiscover
Declaration
gchar*
ide_build_system_discovery_discover (
IdeBuildSystemDiscovery* self,
GFile* project_file,
GCancellable* cancellable,
gint* priority,
GError** error
)
Description
This virtual method can be used to try to discover the build system to use for a particular project. This might be used in cases like Flatpak where the build system can be determined from the .json manifest rather than auto-discovery by locating project files.
Parameters
project_file
-
Type:
GFile
A
GFile
containing the project file (a directory)The data is owned by the caller of the method. cancellable
-
Type:
GCancellable
A
GCancellable
orNULL
.The argument can be NULL
.The data is owned by the caller of the method. priority
-
Type:
gint*
A location for the priority.
The argument will be set by the function. error
-
Type:
GError **
The return location for a recoverable error.
The argument can be NULL
.If the return location is not NULL
, then you must initialize it to aNULL
GError*
.The argument will be left initialized to NULL
by the method if there are no errors.In case of error, the argument will be set to a newly allocated GError
; the caller will take ownership of the data, and be responsible for freeing it.