diff options
author | 2020-03-22 00:03:07 +1100 | |
---|---|---|
committer | 2020-03-22 00:03:07 +1100 | |
commit | bdd2a3377699b3cfb69a64a6a1d91020b562f829 (patch) | |
tree | 933197abb01db5d594e31d5d15038f7e1dfb1abe /scripts/src | |
parent | 6a89b25745dc4a5762acb462597557aba4911ad7 (diff) |
compile in the contents of the COPYING file for the about box - safer than assuming it will be in the working directory. no attempt at compressing it for now (nw)
Diffstat (limited to 'scripts/src')
-rw-r--r-- | scripts/src/emu.lua | 4 | ||||
-rw-r--r-- | scripts/src/mame/frontend.lua | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/scripts/src/emu.lua b/scripts/src/emu.lua index 1561bb1b691..b8b08385e68 100644 --- a/scripts/src/emu.lua +++ b/scripts/src/emu.lua @@ -283,11 +283,11 @@ dependency { } custombuildtask { - { MAME_DIR .. "scripts/font/NotoSans-Bold.bdc", GEN_DIR .. "emu/uismall.fh", { MAME_DIR .. "scripts/build/file2str.py" }, {"@echo Converting NotoSans-Bold.bdc...", PYTHON .. " $(1) $(<) $(@) font_uismall uint8_t" }}, + { MAME_DIR .. "scripts/font/NotoSans-Bold.bdc", GEN_DIR .. "emu/uismall.fh", { MAME_DIR .. "scripts/build/file2str.py" }, { "@echo Converting NotoSans-Bold.bdc...", PYTHON .. " $(1) $(<) $(@) font_uismall uint8_t" } }, } custombuildtask { - { MAME_DIR .. "src/frontend/mame/ui/uicmd14.png" , GEN_DIR .. "emu/ui/uicmd14.fh", { MAME_DIR.. "scripts/build/png2bdc.py", MAME_DIR .. "scripts/build/file2str.py" }, {"@echo Converting uicmd14.png...", PYTHON .. " $(1) $(<) temp_cmd.bdc", PYTHON .. " $(2) temp_cmd.bdc $(@) font_uicmd14 uint8_t" }}, + { MAME_DIR .. "src/frontend/mame/ui/uicmd14.png", GEN_DIR .. "emu/ui/uicmd14.fh", { MAME_DIR.. "scripts/build/png2bdc.py", MAME_DIR .. "scripts/build/file2str.py" }, { "@echo Converting uicmd14.png...", PYTHON .. " $(1) $(<) temp_cmd.bdc", PYTHON .. " $(2) temp_cmd.bdc $(@) font_uicmd14 uint8_t" } }, layoutbuildtask("emu/layout", "dualhovu"), layoutbuildtask("emu/layout", "dualhsxs"), diff --git a/scripts/src/mame/frontend.lua b/scripts/src/mame/frontend.lua index cddda85c481..8253bf439b5 100644 --- a/scripts/src/mame/frontend.lua +++ b/scripts/src/mame/frontend.lua @@ -176,3 +176,11 @@ files { } pchsource(MAME_DIR .. "src/frontend/mame/audit.cpp") + +dependency { + { MAME_DIR .. "src/frontend/mame/ui/about.cpp", GEN_DIR .. "emu/copying.ipp" }, +} + +custombuildtask { + { MAME_DIR .. "COPYING", GEN_DIR .. "emu/copying.ipp", { MAME_DIR .. "scripts/build/file2lines.py" }, { "@echo Converting COPYING...", PYTHON .. " $(1) $(<) $(@) copying_text" } }, +} |