mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +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) \
|
$(GENIE) \
|
||||||
$(GEN_FOLDERS) \
|
$(GEN_FOLDERS) \
|
||||||
$(patsubst $(SRC)/%.lay,$(GENDIR)/%.lh,$(LAYOUTS)) \
|
$(patsubst $(SRC)/%.lay,$(GENDIR)/%.lh,$(LAYOUTS)) \
|
||||||
$(patsubst $(SRC)/%.h,$(GENDIR)/%.moc.c,$(MOC_FILES)) \
|
$(patsubst $(SRC)/%.h,$(GENDIR)/%.moc.c,$(MOC_FILES))
|
||||||
$(GENDIR)/resource/$(TARGET)-Info.plist
|
|
||||||
|
|
||||||
$(GENDIR)/%.lh: $(SRC)/%.lay $(SRC)/build/file2str.py
|
$(GENDIR)/%.lh: $(SRC)/%.lay $(SRC)/build/file2str.py
|
||||||
@echo Converting $<...
|
@echo Converting $<...
|
||||||
$(PYTHON) $(SRC)/build/file2str.py $< $@ layout_$(basename $(notdir $<))
|
$(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
|
$(GENDIR)/%.moc.c: $(SRC)/%.h
|
||||||
$(SILENT) $(MOC) $(MOCINCPATH) $< -o $@
|
$(SILENT) $(MOC) $(MOCINCPATH) $< -o $@
|
||||||
|
|
||||||
|
@ -81,8 +81,15 @@ function mainProject(_target, _subtarget)
|
|||||||
|
|
||||||
if _OPTIONS["targetos"]=="macosx" then
|
if _OPTIONS["targetos"]=="macosx" then
|
||||||
linkoptions {
|
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
|
end
|
||||||
|
|
||||||
if _OPTIONS["targetos"]=="windows" then
|
if _OPTIONS["targetos"]=="windows" then
|
||||||
|
Loading…
Reference in New Issue
Block a user