[*] 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:
Reece Wilson 2021-10-02 17:05:04 +01:00
parent 72cc7744a3
commit 8244bd83c3
3 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,9 @@
require("Utils.utils")
if (not auLibPrefix) then
auLibPrefix = ""
end
-------------------------------------------------------
-- globals
-------------------------------------------------------