mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed dynamic Beef libs on Linux/macOS
This commit is contained in:
parent
455a0d0b46
commit
6e5b6694a1
10 changed files with 139 additions and 34 deletions
|
@ -313,7 +313,9 @@ namespace IDE
|
|||
testProjectInfo = gApp.mTestManager.GetProjectInfo(project);
|
||||
|
||||
bool isExe = (project.mGeneralOptions.mTargetType != Project.TargetType.BeefLib) || (testProjectInfo != null);
|
||||
if (isExe)
|
||||
bool isDynLib = project.mGeneralOptions.mTargetType == Project.TargetType.BeefDynLib;
|
||||
|
||||
if (isExe || isDynLib)
|
||||
{
|
||||
CopyLibFiles(targetPath, workspaceOptions, options);
|
||||
|
||||
|
@ -335,6 +337,11 @@ namespace IDE
|
|||
linkLine.Append(" ");
|
||||
}*/
|
||||
|
||||
if (isDynLib)
|
||||
{
|
||||
linkLine.Append("-shared ");
|
||||
}
|
||||
|
||||
if ((mPlatformType == .Windows) &&
|
||||
((project.mGeneralOptions.mTargetType == Project.TargetType.BeefGUIApplication) ||
|
||||
(project.mGeneralOptions.mTargetType == Project.TargetType.C_GUIApplication)))
|
||||
|
@ -1092,10 +1099,8 @@ namespace IDE
|
|||
absOutputDir.Append(projectBuildDir);
|
||||
outputDir = absOutputDir;
|
||||
targetPath.Append(outputDir, "/", project.mProjectName);
|
||||
#if BF_PLATFORM_WINDOWS
|
||||
targetPath.Append(".exe");
|
||||
#endif
|
||||
|
||||
if (mPlatformType == .Windows)
|
||||
targetPath.Append(".exe");
|
||||
Debug.Assert(testProjectInfo.mTestExePath == null);
|
||||
testProjectInfo.mTestExePath = new String(targetPath);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue