[*] Drop the -utf-8 flag when building under linux
[*] Use auLibPrefix in the post build copy command [+] Set target to auLibPrefix
This commit is contained in:
parent
72cc7744a3
commit
8244bd83c3
@ -42,14 +42,14 @@ end
|
||||
|
||||
local postBuildCmdsCopyLinux = function(name, type, cfgHack, dir)
|
||||
if (type == "SharedLib") then
|
||||
postbuildcommands({LonixFmt1("lib" .. name, type, dir, "")})
|
||||
postbuildcommands({commonFmt("lib" .. name, type, dir, ".so", false, cfgHack:lower(), name)})
|
||||
postbuildcommands({LonixFmt1(auLibPrefix .. name, type, dir, "")})
|
||||
postbuildcommands({commonFmt(auLibPrefix .. name, type, dir, ".so", false, cfgHack:lower(), name)})
|
||||
elseif (
|
||||
(type == "WindowedApp") or
|
||||
(type == "ConsoleApp")
|
||||
) then
|
||||
postbuildcommands({LonixFmt1(name, type, dir, "")})
|
||||
postbuildcommands({commonFmt(name, type, dir, "", false, cfgHack:lower(), name)})
|
||||
postbuildcommands({LonixFmt1(auLibPrefix .. name, type, dir, "")})
|
||||
postbuildcommands({commonFmt(auLibPrefix .. name, type, dir, "", false, cfgHack:lower(), name)})
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -79,8 +79,11 @@ local boilerplateProject = function(name, projectType, src, inc, dest, root)
|
||||
|
||||
kind(projectType)
|
||||
|
||||
buildoptions {"-utf-8"}
|
||||
targetprefix ""
|
||||
if (usingMSVC) then
|
||||
buildoptions {"-utf-8"}
|
||||
end
|
||||
|
||||
targetprefix(auLibPrefix)
|
||||
|
||||
if (not _G.win32) then
|
||||
if ((projectType == "SharedLib") or
|
||||
|
@ -1,5 +1,9 @@
|
||||
require("Utils.utils")
|
||||
|
||||
if (not auLibPrefix) then
|
||||
auLibPrefix = ""
|
||||
end
|
||||
|
||||
-------------------------------------------------------
|
||||
-- globals
|
||||
-------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user