Bug 2790865: SharedLib on OSX (actually a patch by Ash Berlin)
This commit is contained in:
parent
724498ad9d
commit
d20ce6c62c
@ -18,6 +18,7 @@
|
||||
- Bug 2564404: FatalWarnings has no effect with gmake target
|
||||
- Bug 2550759: pchheader option has wrong type
|
||||
- Bug 1900333: Parentheses in build path
|
||||
- Bug 2790865: SharedLib on OSX fixes (Ash Berlin)
|
||||
|
||||
|
||||
-----
|
||||
|
@ -398,7 +398,7 @@
|
||||
dir = path.join(dir, name .. ".app/Contents/MacOS")
|
||||
elseif kind == "SharedLib" then
|
||||
prefix = "lib"
|
||||
suffix = ".so"
|
||||
suffix = iif(system == "macosx", ".dylib", ".so")
|
||||
elseif kind == "StaticLib" then
|
||||
prefix = "lib"
|
||||
suffix = ".a"
|
||||
|
File diff suppressed because one or more lines are too long
@ -314,7 +314,7 @@
|
||||
function T.targets.SharedLib_Linux_Build_MacOSX()
|
||||
cfg.kind = "SharedLib"
|
||||
result = premake.gettarget(cfg, "build", "linux", "macosx")
|
||||
test.isequal([[../bin/libMyProject.so]], result.fullpath)
|
||||
test.isequal([[../bin/libMyProject.dylib]], result.fullpath)
|
||||
end
|
||||
|
||||
function T.targets.SharedLib_Linux_Link_Windows()
|
||||
@ -332,7 +332,7 @@
|
||||
function T.targets.SharedLib_Linux_Link_MacOSX()
|
||||
cfg.kind = "SharedLib"
|
||||
result = premake.gettarget(cfg, "link", "linux", "macosx")
|
||||
test.isequal([[../bin/libMyProject.so]], result.fullpath)
|
||||
test.isequal([[../bin/libMyProject.dylib]], result.fullpath)
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user