mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Moved plist generate to lua (nw)
This commit is contained in:
parent
4788c3222d
commit
ed0de1632e
7
makefile
7
makefile
@ -859,17 +859,12 @@ generate: \
|
||||
$(GENIE) \
|
||||
$(GEN_FOLDERS) \
|
||||
$(patsubst $(SRC)/%.lay,$(GENDIR)/%.lh,$(LAYOUTS)) \
|
||||
$(patsubst $(SRC)/%.h,$(GENDIR)/%.moc.c,$(MOC_FILES)) \
|
||||
$(GENDIR)/resource/$(TARGET)-Info.plist
|
||||
$(patsubst $(SRC)/%.h,$(GENDIR)/%.moc.c,$(MOC_FILES))
|
||||
|
||||
$(GENDIR)/%.lh: $(SRC)/%.lay $(SRC)/build/file2str.py
|
||||
@echo Converting $<...
|
||||
$(PYTHON) $(SRC)/build/file2str.py $< $@ layout_$(basename $(notdir $<))
|
||||
|
||||
$(GENDIR)/resource/$(TARGET)-Info.plist: $(SRC)/build/verinfo.py $(SRC)/version.c
|
||||
@echo Emitting $@...
|
||||
$(PYTHON) $(SRC)/build/verinfo.py -p -b $(TARGET) $(SRC)/version.c > $@
|
||||
|
||||
$(GENDIR)/%.moc.c: $(SRC)/%.h
|
||||
$(SILENT) $(MOC) $(MOCINCPATH) $< -o $@
|
||||
|
||||
|
@ -81,8 +81,15 @@ function mainProject(_target, _subtarget)
|
||||
|
||||
if _OPTIONS["targetos"]=="macosx" then
|
||||
linkoptions {
|
||||
"-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _OPTIONS["target"] .. "-Info.plist"
|
||||
"-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _target .. "-Info.plist"
|
||||
}
|
||||
custombuildtask {
|
||||
{ MAME_DIR .. "src/version.c" , GEN_DIR .. "/resource/" .. _target .. "-Info.plist", { MAME_DIR .. "src/build/verinfo.py" }, {"@echo Emitting " .. _target .. "-Info.plist" .. "...", "python $(1) -p -b " .. _target .. " $(<) > $(@)" }},
|
||||
}
|
||||
dependency {
|
||||
{ "$(TARGET)" , GEN_DIR .. "/resource/" .. _target .. "-Info.plist", true },
|
||||
}
|
||||
|
||||
end
|
||||
|
||||
if _OPTIONS["targetos"]=="windows" then
|
||||
|
Loading…
Reference in New Issue
Block a user