added another func
This commit is contained in:
parent
2281726935
commit
1d74cb3e35
|
@ -386,6 +386,12 @@ const char *cmSourceFileGetSourceName(void *arg)
|
||||||
return sf->GetSourceName().c_str();
|
return sf->GetSourceName().c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *cmSourceFileGetFullPath(void *arg)
|
||||||
|
{
|
||||||
|
cmSourceFile *sf = static_cast<cmSourceFile *>(arg);
|
||||||
|
return sf->GetFullPath().c_str();
|
||||||
|
}
|
||||||
|
|
||||||
const char *cmSourceFileGetProperty(void *arg,const char *prop)
|
const char *cmSourceFileGetProperty(void *arg,const char *prop)
|
||||||
{
|
{
|
||||||
cmSourceFile *sf = static_cast<cmSourceFile *>(arg);
|
cmSourceFile *sf = static_cast<cmSourceFile *>(arg);
|
||||||
|
@ -508,6 +514,7 @@ cmCAPI cmStaticCAPI =
|
||||||
cmSourceFileGetProperty,
|
cmSourceFileGetProperty,
|
||||||
cmSourceFileGetPropertyAsBool,
|
cmSourceFileGetPropertyAsBool,
|
||||||
cmSourceFileGetSourceName,
|
cmSourceFileGetSourceName,
|
||||||
|
cmSourceFileGetFullPath,
|
||||||
cmSourceFileSetName,
|
cmSourceFileSetName,
|
||||||
cmSourceFileSetName2,
|
cmSourceFileSetName2,
|
||||||
cmSourceFileSetProperty,
|
cmSourceFileSetProperty,
|
||||||
|
|
|
@ -118,6 +118,7 @@ typedef struct
|
||||||
const char *(*SourceFileGetProperty) (void *sf, const char *prop);
|
const char *(*SourceFileGetProperty) (void *sf, const char *prop);
|
||||||
int (*SourceFileGetPropertyAsBool) (void *sf, const char *prop);
|
int (*SourceFileGetPropertyAsBool) (void *sf, const char *prop);
|
||||||
const char *(*SourceFileGetSourceName) (void *sf);
|
const char *(*SourceFileGetSourceName) (void *sf);
|
||||||
|
const char *(*SourceFileGetFullPath) (void *sf);
|
||||||
void (*SourceFileSetName) (void *sf, const char* name, const char* dir,
|
void (*SourceFileSetName) (void *sf, const char* name, const char* dir,
|
||||||
int numSourceExtensions,
|
int numSourceExtensions,
|
||||||
const char **sourceExtensions,
|
const char **sourceExtensions,
|
||||||
|
|
Loading…
Reference in New Issue