summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/emu.lua
diff options
context:
space:
mode:
author Cesare Falco <c.falco@ubuntu.com>2015-05-11 09:37:45 +0200
committer Cesare Falco <c.falco@ubuntu.com>2015-05-11 09:37:45 +0200
commit7652d47d8ecaa5bd751d6408442d1ce309d17ba1 (patch)
tree3a3d6588f65612178ecbb8cec15dc10db2a37305 /scripts/src/emu.lua
parent77e6356641eb78e89f3925c86fb3f19a631a64ce (diff)
Add makefile switch to choose linking against bundled OR system expat library.
Diffstat (limited to 'scripts/src/emu.lua')
-rw-r--r--scripts/src/emu.lua26
1 files changed, 21 insertions, 5 deletions
diff --git a/scripts/src/emu.lua b/scripts/src/emu.lua
index ebe9e894f54..3b020839b14 100644
--- a/scripts/src/emu.lua
+++ b/scripts/src/emu.lua
@@ -14,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",
@@ -368,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"))
@@ -402,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
@@ -410,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"))
@@ -428,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
@@ -449,4 +465,4 @@ function emuProject(_target, _subtarget)
disasm_custombuildtask[1]
}
end
-end \ No newline at end of file
+end