diff options
author | 2015-04-08 14:19:43 +0200 | |
---|---|---|
committer | 2015-04-08 14:19:43 +0200 | |
commit | 899f23a7ec90ec6f0d87f4dd232e1ca01f7522ef (patch) | |
tree | 63e4cf6fa524b5a1a610f8a0e506bd3e1f5e64fc /scripts/genie.lua | |
parent | 9cc6018c150517abaddc777c151be2da46dd4af5 (diff) |
Added PYTHON_EXECUTABLE to use differently named python executable(nw)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index 0a70ebb904f..c907c87cf13 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -41,7 +41,7 @@ function findfunction(x) end function layoutbuildtask(_folder, _name) - return { MAME_DIR .. "src/".._folder.."/".. _name ..".lay" , GEN_DIR .. _folder .. "/".._name..".lh", { MAME_DIR .. "src/build/file2str.py" }, {"@echo Converting src/".._folder.."/".._name..".lay...", "python $(1) $(<) $(@) layout_".._name }}; + return { MAME_DIR .. "src/".._folder.."/".. _name ..".lay" , GEN_DIR .. _folder .. "/".._name..".lh", { MAME_DIR .. "src/build/file2str.py" }, {"@echo Converting src/".._folder.."/".._name..".lay...", PYTHON .. " $(1) $(<) $(@) layout_".._name }}; end CPUS = {} @@ -272,6 +272,17 @@ newoption { } } +newoption { + trigger = "PYTHON_EXECUTABLE", + description = "Python executable.", +} + +PYTHON = "python" + +if _OPTIONS["PYTHON_EXECUTABLE"]~=nil then + PYTHON = _OPTIONS["PYTHON_EXECUTABLE"] +end + if not _OPTIONS["BIGENDIAN"] then _OPTIONS["BIGENDIAN"] = "0" end |