mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
Compile netlist and lua only if used (nw)
This commit is contained in:
parent
b64b470c32
commit
b966180061
@ -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
|
||||
--------------------------------------------------
|
||||
|
@ -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 {
|
||||
|
@ -30,7 +30,6 @@ includedirs {
|
||||
|
||||
includedirs {
|
||||
ext_includedir("expat"),
|
||||
ext_includedir("lua"),
|
||||
ext_includedir("zlib"),
|
||||
ext_includedir("flac"),
|
||||
ext_includedir("jpeg"),
|
||||
|
@ -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
|
||||
|
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user