started reworking linker
This commit is contained in:
@@ -39,6 +39,58 @@ CUtlString Target_t::GetTriplet()
|
||||
return triplet;
|
||||
}
|
||||
|
||||
const char *Target_t::GetExecutableFileFormat()
|
||||
{
|
||||
switch(kernel)
|
||||
{
|
||||
case TARGET_KERNEL_LINUX:
|
||||
case TARGET_KERNEL_ANDROID:
|
||||
case TARGET_KERNEL_DARWIN:
|
||||
case TARGET_KERNEL_IOS:
|
||||
return "%s";
|
||||
break;
|
||||
case TARGET_KERNEL_WINDOWS_MSVC:
|
||||
case TARGET_KERNEL_WINDOWS_GNU:
|
||||
return "%s.exe";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char *Target_t::GetStaticLibraryFileFormat()
|
||||
{
|
||||
switch(kernel)
|
||||
{
|
||||
case TARGET_KERNEL_LINUX:
|
||||
case TARGET_KERNEL_ANDROID:
|
||||
case TARGET_KERNEL_DARWIN:
|
||||
case TARGET_KERNEL_IOS:
|
||||
case TARGET_KERNEL_WINDOWS_GNU:
|
||||
return "lib%s.a";
|
||||
case TARGET_KERNEL_WINDOWS_MSVC:
|
||||
return "%s.lib";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
const char *Target_t::GetDynamicLibraryFileFormat()
|
||||
{
|
||||
switch(kernel)
|
||||
{
|
||||
case TARGET_KERNEL_LINUX:
|
||||
case TARGET_KERNEL_ANDROID:
|
||||
return "lib%s.so";
|
||||
case TARGET_KERNEL_DARWIN:
|
||||
return "lib%s.dylib";
|
||||
case TARGET_KERNEL_WINDOWS_GNU:
|
||||
return "%s.dll";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
// Returns target on which fpc is being run
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user