Compile netlist and lua only if used (nw)

This commit is contained in:
Miodrag Milanovic 2016-08-12 15:03:45 +02:00
parent b64b470c32
commit b966180061
5 changed files with 12 additions and 5 deletions

View File

@ -431,6 +431,7 @@ end
--------------------------------------------------
-- LUA library objects
--------------------------------------------------
if (STANDALONE~=true) then
if not _OPTIONS["with-system-lua"] then
project "lua"
@ -565,6 +566,7 @@ project "lualibs"
MAME_DIR .. "3rdparty/luafilesystem/src/lfs.c",
}
end
--------------------------------------------------
-- portmidi library objects
--------------------------------------------------

View File

@ -41,7 +41,6 @@ function devicesProject(_target, _subtarget)
GEN_DIR .. "emu",
GEN_DIR .. "emu/layout",
ext_includedir("expat"),
ext_includedir("lua"),
ext_includedir("flac"),
}
@ -72,7 +71,6 @@ if #disasm_files > 0 then
MAME_DIR .. "3rdparty",
GEN_DIR .. "emu",
ext_includedir("expat"),
ext_includedir("lua"),
}
files {

View File

@ -30,7 +30,6 @@ includedirs {
includedirs {
ext_includedir("expat"),
ext_includedir("lua"),
ext_includedir("zlib"),
ext_includedir("flac"),
ext_includedir("jpeg"),

View File

@ -427,6 +427,7 @@ project "formats"
MAME_DIR .. "src/lib/formats/itt3030_dsk.h",
}
if (MACHINES["NETLIST"]~=null or _OPTIONS["with-tools"]) then
-- netlist now defines a project
dofile("netlist.lua")
end

View File

@ -197,8 +197,12 @@ if (STANDALONE~=true) then
"frontend",
}
end
if (MACHINES["NETLIST"]~=null) then
links {
"netlist",
}
end
links {
"optional",
"emu",
"formats",
@ -214,10 +218,13 @@ end
"softfloat",
ext_lib("jpeg"),
"7z",
}
if (STANDALONE~=true) then
links {
ext_lib("lua"),
"lualibs",
}
end
if _OPTIONS["USE_LIBUV"]=="1" then
links {
ext_lib("uv"),