diff options
Diffstat (limited to 'scripts/src/emu.lua')
-rw-r--r-- | scripts/src/emu.lua | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/scripts/src/emu.lua b/scripts/src/emu.lua index 60eaa29b5e9..3b020839b14 100644 --- a/scripts/src/emu.lua +++ b/scripts/src/emu.lua @@ -1,3 +1,6 @@ +-- license:BSD-3-Clause +-- copyright-holders:MAMEdev Team + project ("emu") uuid ("e6fa15e4-a354-4526-acef-13c8e80fcacf") kind "StaticLib" @@ -11,12 +14,16 @@ includedirs { MAME_DIR .. "src/lib", MAME_DIR .. "src/lib/util", MAME_DIR .. "3rdparty", - MAME_DIR .. "3rdparty/expat/lib", MAME_DIR .. "3rdparty/lua/src", MAME_DIR .. "3rdparty/zlib", GEN_DIR .. "emu", GEN_DIR .. "emu/layout", } +if _OPTIONS["with-bundled-expat"] then + includedirs { + MAME_DIR .. "3rdparty/expat/lib", + } +end files { MAME_DIR .. "src/emu/emu.h", @@ -365,13 +372,17 @@ function emuProject(_target, _subtarget) MAME_DIR .. "src/lib", MAME_DIR .. "src/lib/util", MAME_DIR .. "3rdparty", - MAME_DIR .. "3rdparty/expat/lib", MAME_DIR .. "3rdparty/lua/src", MAME_DIR .. "3rdparty/zlib", GEN_DIR .. "emu", GEN_DIR .. "emu/layout", MAME_DIR .. "src/emu/cpu/m68000", } + if _OPTIONS["with-bundled-expat"] then + includedirs { + MAME_DIR .. "3rdparty/expat/lib", + } + end dofile(path.join("src", "cpu.lua")) @@ -399,7 +410,6 @@ function emuProject(_target, _subtarget) MAME_DIR .. "src/lib", MAME_DIR .. "src/lib/util", MAME_DIR .. "3rdparty", - MAME_DIR .. "3rdparty/expat/lib", MAME_DIR .. "3rdparty/lua/src", MAME_DIR .. "3rdparty/zlib", MAME_DIR .. "src/mess", -- some mess bus devices need this @@ -407,6 +417,11 @@ function emuProject(_target, _subtarget) GEN_DIR .. "emu", GEN_DIR .. "emu/layout", } + if _OPTIONS["with-bundled-expat"] then + includedirs { + MAME_DIR .. "3rdparty/expat/lib", + } + end dofile(path.join("src", "bus.lua")) @@ -425,11 +440,15 @@ function emuProject(_target, _subtarget) MAME_DIR .. "src/lib", MAME_DIR .. "src/lib/util", MAME_DIR .. "3rdparty", - MAME_DIR .. "3rdparty/expat/lib", MAME_DIR .. "3rdparty/lua/src", MAME_DIR .. "3rdparty/zlib", GEN_DIR .. "emu", } + if _OPTIONS["with-bundled-expat"] then + includedirs { + MAME_DIR .. "3rdparty/expat/lib", + } + end files { disasm_files @@ -446,4 +465,4 @@ function emuProject(_target, _subtarget) disasm_custombuildtask[1] } end -end
\ No newline at end of file +end |