forked from enlightenment/edi
35 lines
709 B
C
35 lines
709 B
C
|
#ifdef HAVE_CONFIG_H
|
||
|
# include "config.h"
|
||
|
#endif
|
||
|
|
||
|
#include "Edi.h"
|
||
|
#include "edi_build_provider.h"
|
||
|
|
||
|
#include "edi_private.h"
|
||
|
|
||
|
extern Edi_Build_Provider _edi_build_provider_make;
|
||
|
|
||
|
EAPI Edi_Build_Provider *edi_build_provider_for_project_get()
|
||
|
{
|
||
|
return edi_build_provider_for_project_path_get(edi_project_get());
|
||
|
}
|
||
|
|
||
|
EAPI Edi_Build_Provider *edi_build_provider_for_project_path_get(const char *path)
|
||
|
{
|
||
|
if (!path)
|
||
|
return NULL;
|
||
|
|
||
|
if (_edi_build_provider_make.path_supported_is(path))
|
||
|
return &_edi_build_provider_make;
|
||
|
|
||
|
return NULL;
|
||
|
}
|
||
|
|
||
|
EAPI Edi_Build_Provider *edi_build_provider_for_id_get(const char *id)
|
||
|
{
|
||
|
if (!strcmp("make", id))
|
||
|
return &_edi_build_provider_make;
|
||
|
|
||
|
return NULL;
|
||
|
}
|