mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Made all windows build use icons (nw)
This commit is contained in:
parent
c8b9fc1efb
commit
6e0007b83d
2 changed files with 20 additions and 18 deletions
|
@ -93,6 +93,26 @@ function mainProject(_target, _subtarget)
|
|||
end
|
||||
|
||||
if _OPTIONS["targetos"]=="windows" then
|
||||
local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/".._OPTIONS["osd"].."/" .. _target ..".rc"
|
||||
if not os.isfile(rcfile) then
|
||||
rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc"
|
||||
end
|
||||
|
||||
if os.isfile(rcfile) then
|
||||
files {
|
||||
rcfile,
|
||||
}
|
||||
dependency {
|
||||
{ "$(OBJDIR)/".._target ..".res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true },
|
||||
}
|
||||
else
|
||||
files {
|
||||
MAME_DIR .. "src/osd/windows/mame.rc",
|
||||
}
|
||||
dependency {
|
||||
{ "$(OBJDIR)/mame.res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true },
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
files {
|
||||
|
|
|
@ -32,24 +32,6 @@ function maintargetosdoptions(_target)
|
|||
"comctl32",
|
||||
"comdlg32",
|
||||
}
|
||||
|
||||
local rcfile = MAME_DIR .. "src/" .. _target .. "/osd/windows/" .. _target ..".rc"
|
||||
|
||||
if os.isfile(rcfile) then
|
||||
files {
|
||||
rcfile,
|
||||
}
|
||||
dependency {
|
||||
{ "$(OBJDIR)/".._target ..".res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true },
|
||||
}
|
||||
else
|
||||
files {
|
||||
MAME_DIR .. "src/osd/windows/mame.rc",
|
||||
}
|
||||
dependency {
|
||||
{ "$(OBJDIR)/mame.res" , GEN_DIR .. "/resource/" .. _target .. "vers.rc", true },
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue