Author: belegdol
Update of /cvs/nonfree/rpms/mame/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv12667
Modified Files:
.cvsignore mame-genie-smpfix.patch mame.spec sources
Log Message:
* Thu Nov 26 2015 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.168-1
- Updated to 0.168
- Updated the smpfix patch
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/mame/devel/.cvsignore,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -r1.93 -r1.94
--- .cvsignore 29 Oct 2015 22:29:47 -0000 1.93
+++ .cvsignore 26 Nov 2015 20:16:26 -0000 1.94
@@ -1,2 +1,2 @@
-mame0167s.exe
+mame0168s.exe
whatsnew.zip
mame-genie-smpfix.patch:
actions/make/make_cpp.lua | 2 +-
host/scripts.c | 24 ++++++++++++------------
2 files changed, 13 insertions(+), 13 deletions(-)
Index: mame-genie-smpfix.patch
===================================================================
RCS file: /cvs/nonfree/rpms/mame/devel/mame-genie-smpfix.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mame-genie-smpfix.patch 29 Oct 2015 22:29:47 -0000 1.3
+++ mame-genie-smpfix.patch 26 Nov 2015 20:16:26 -0000 1.4
@@ -1,6 +1,6 @@
-diff -up mame-0.167/3rdparty/genie/src/actions/make/make_cpp.lua.smpfix
mame-0.167/3rdparty/genie/src/actions/make/make_cpp.lua
---- mame-0.167/3rdparty/genie/src/actions/make/make_cpp.lua.smpfix 2015-10-29
21:17:08.821442209 +0100
-+++ mame-0.167/3rdparty/genie/src/actions/make/make_cpp.lua 2015-10-29 21:17:09.069445301
+0100
+diff -up mame-0.168/3rdparty/genie/src/actions/make/make_cpp.lua.smpfix
mame-0.168/3rdparty/genie/src/actions/make/make_cpp.lua
+--- mame-0.168/3rdparty/genie/src/actions/make/make_cpp.lua.smpfix 2015-11-26
21:01:37.849031558 +0100
++++ mame-0.168/3rdparty/genie/src/actions/make/make_cpp.lua 2015-11-26 21:01:38.131034386
+0100
@@ -86,7 +86,7 @@
end
@@ -10,10 +10,10 @@
if prj.kind == "StaticLib" then
if prj.msgarchiving then
-diff -up mame-0.167/3rdparty/genie/src/host/scripts.c.smpfix
mame-0.167/3rdparty/genie/src/host/scripts.c
---- mame-0.167/3rdparty/genie/src/host/scripts.c.smpfix 2015-10-29 21:17:09.070445314
+0100
-+++ mame-0.167/3rdparty/genie/src/host/scripts.c 2015-10-29 21:28:42.366879398 +0100
-@@ -180,18 +180,18 @@ const char* builtin_scripts[] = {
+diff -up mame-0.168/3rdparty/genie/src/host/scripts.c.smpfix
mame-0.168/3rdparty/genie/src/host/scripts.c
+--- mame-0.168/3rdparty/genie/src/host/scripts.c.smpfix 2015-11-26 21:01:38.141034486
+0100
++++ mame-0.168/3rdparty/genie/src/host/scripts.c 2015-11-26 21:07:59.960857987 +0100
+@@ -190,18 +190,18 @@ const char* builtin_scripts[] = {
/* actions/make/make_cpp.lua */
"premake.make.cpp = { }\npremake.make.override = { }\nlocal cpp =
premake.make.cpp\nlocal make = premake.make\nfunction premake.make_cpp(prj)\nlocal cc =
premake.gettool(prj)\nlocal platforms = premake.filterplatforms(prj.solution,
cc.platforms, \"Native\")\npremake.gmake_cpp_header(prj, cc, platforms)\nfor _,
platform in ipairs(platforms) do\nfor cfg in premake.eachconfig(prj, platform)
do\npremake.gmake_cpp_config(prj, cfg, cc)\nend\nend\nlocal objdirs = {}\nlocal
additionalobjdirs = {}\nfor _, file in ipairs(prj.files) do\nif path.iscppfile(file)
then\nobjdirs[_MAKE.esc(path.getdirectory(path.trimdots(file)))] = 1\nend\nend\nfor _,
custombuildtask in ipairs(prj.custombuildtask or {}) do\nfor _, buildtask in
ipairs(custombuildtask or {})
do\nadditionalobjdirs[_MAKE.esc(path.getdirectory(path.getrelative(prj.location,buildtask[2])))]
= 1\nend\nend\n_p('OBJDIRS := \\\\')\n_p('\\t$(OBJDIR) \\\\')\nfor dir, _
in pairs(objdirs) do\n_p('\\t$(OBJDIR)/%s \\\\', dir)\nend\nfor di
r, _ in pairs(additionalobjdirs) do\n_p"
@@ -21,26 +21,26 @@
- "ving)\nelse\n_p('\\t@echo Archiving %s', prj.name)\nend\nif (not
prj.archivesplit_size) then\nprj.archivesplit_size=200\nend\nif (not
prj.options.ArchiveSplit) then\n_p('\\t$(SILENT) $(LINKCMD) $(OBJECTS)' ..
(os.is(\"MacOSX\") and \" 2>&1 > /dev/null | sed -e '/.o) has
no symbols$$/d'\" or \"\"))\nelse\n_p('\\t$(call
RM,$(TARGET))')\n_p('\\t@$(call max_args,$(LINKCMD),'.. prj.archivesplit_size
..',$(OBJECTS))' .. (os.is(\"MacOSX\") and \" 2>&1 >
/dev/null | sed -e '/.o) has no symbols$$/d'\" or
\"\"))\n_p('\\t$(SILENT) $(LINKCMD_NDX)')\nend\nelse\nif prj.msglinking
then\n_p('\\t@echo ' .. prj.msglinking)\nelse\n_p('\\t@echo Linking %s',
prj.name)\nend\n_p('\\t$(SILENT)
$(LINKCMD)')\nend\n_p('\\t$(POSTBUILDCMDS)')\n_p('')\n_p('$(TARGETDIR):')\npremake.make_mkdirrule(\"$(TARGETDIR)\")\n_p('$(OBJDIRS):')\nif
(not prj.solution.messageskip) or (not table.contains(prj.solution.messageskip,
\"SkipCreatingMessage\")) then\n_p('\\t@echo Creating
$(@)')\nend\n_p('\\t-$(call MKDIR,
$@)')\n_p('')\nif os.is(\"MacOSX\") and"
- " prj.kind == \"WindowedApp\" then\n_p('$(dir
$(TARGETDIR))PkgInfo:')\n_p('$(dir
$(TARGETDIR))Info.plist:')\n_p('')\nend\n_p('clean:')\nif (not
prj.solution.messageskip) or (not table.contains(prj.solution.messageskip,
\"SkipCleaningMessage\")) then\n_p('\\t@echo Cleaning %s',
prj.name)\nend\n_p('ifeq (posix,$(SHELLTYPE))')\n_p('\\t$(SILENT) rm -f
$(TARGET)')\n_p('\\t$(SILENT) rm -rf
$(OBJDIR)')\n_p('else')\n_p('\\t$(SILENT) if exist $(subst
/,\\\\\\\\,$(TARGET)) del $(subst /,\\\\\\\\,$(TARGET))')\n_p('\\t$(SILENT) if
exist $(subst /,\\\\\\\\,$(OBJDIR)) rmdir /s /q $(subst
/,\\\\\\\\,$(OBJDIR))')\n_p('endif')\n_p('')\n_p('prebuild:')\n_p('\\t$(PREBUILDCMDS)')\n_p('')\n_p('prelink:')\n_p('\\t$(PRELINKCMDS)')\n_p('')\ncpp.pchrules(prj)\ncpp.fileRules(prj)\ncpp.dependencyRules(prj)\nfor
_, custombuildtask in ipairs(prj.custombuildtask or {}) do\nfor _, buildtask in
ipairs(custombuildtask or {}) do\nlocal deps = string.format(\"%s
\",path.getrelative(prj.location,buildtask[
1]))\nfor _, depdata in ipairs(buildtas"
- "k[3] or {}) do\ndeps = deps .. string.format(\"%s
\",path.getrelative(prj.location,depdata))\nend\n_p('%s:
%s'\n,path.getrelative(prj.location,buildtask[2])\n, deps\n)\nfor _, cmdline in
ipairs(buildtask[4] or {}) do\nlocal cmd = cmdline\nlocal num = 1\nfor _, depdata in
ipairs(buildtask[3] or {}) do\ncmd = string.gsub(cmd,\"%$%(\" .. num
..\"%)\", string.format(\"%s
\",path.getrelative(prj.location,depdata)))\nnum = num + 1\nend\ncmd =
string.gsub(cmd, \"%$%(<%)\", \"$<\")\ncmd = string.gsub(cmd,
\"%$%(@%)\", \"$@\")\n \n_p('\\t$(SILENT)
%s',cmd)\nend\n_p('')\nend\nend\n_p('-include
$(OBJECTS:%%.o=%%.d)')\n_p('ifneq (,$(PCH))')\n_p(' -include
$(OBJDIR)/$(notdir $(PCH)).d')\n_p('endif')\nend\nfunction
premake.gmake_cpp_header(prj, cc, platforms)\n_p('# %s project makefile autogenerated
by GENie', premake.action.current().shortname)\n_p('ifndef config')\n_p('
config=%s', _MAKE.esc(premake.getconfigname(prj.solution.configurations[1],
platforms[1], true)))\n_p('endif')\n_
p('')\n_p('ifndef verbose')\n_p(' SILE"
-- "NT = @')\n_p('endif')\n_p('')\n_p('SHELLTYPE :=
msdos')\n_p('ifeq (,$(ComSpec)$(COMSPEC))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('ifeq (/bin,$(findstring
/bin,$(SHELL)))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('')\n_p('ifeq
(posix,$(SHELLTYPE))')\n_p(' MKDIR = $(SILENT) mkdir -p
\"$(1)\"')\n_p(' COPY = $(SILENT) cp -fR \"$(1)\"
\"$(2)\"')\n_p(' RM= $(SILENT) rm -f
\"$(1)\"')\n_p('else')\n_p(' MKDIR = $(SILENT) mkdir
\"$(subst /,\\\\\\\\,$(1))\" 2> nul || exit 0')\n_p(' COPY =
$(SILENT) copy /Y \"$(subst /,\\\\\\\\,$(1))\" \"$(subst
/,\\\\\\\\,$(2))\"')\n_p(' RM = $(SILENT) del /F \"$(subst
/,\\\\\\\\,$(1))\" 2> nul || exit
0')\n_p('endif')\n_p('')\n_p('CC = %s', cc.cc)\n_p('CXX =
%s', cc.cxx)\n_p('AR = %s', cc.ar)\n_p('')\n_p('ifndef
RESCOMP')\n_p(' ifdef WINDRES')\n_p(' RESCOMP =
$(WINDRES)')\n_p(' else')\n_p(' RESCOMP = windres')\n_p('
endif')\n_p('endif')\n_p('')\nend\nfunction
premake.gmake_cpp_config(prj, cfg, cc)\n_p('ifeq ($(con
fig),%s)', _MAKE.esc(cfg.shortname))\nc"
-- "pp.platformtools(cfg, cc)\n_p(' ' ..
(table.contains(premake.make.override,\"OBJDIR\") and \"override \" or
\"\") .. 'OBJDIR = %s', _MAKE.esc(cfg.objectsdir))\n_p('
' .. (table.contains(premake.make.override,\"TARGETDIR\") and
\"override \" or \"\") .. 'TARGETDIR = %s',
_MAKE.esc(cfg.buildtarget.directory))\n_p(' ' ..
(table.contains(premake.make.override,\"TARGET\") and \"override \" or
\"\") .. 'TARGET = $(TARGETDIR)/%s',
_MAKE.esc(cfg.buildtarget.name))\n_p(' DEFINES +=%s',
make.list(cc.getdefines(cfg.defines)))\n_p(' INCLUDES +=%s',
make.list(cc.getincludedirs(cfg.includedirs)))\ncpp.pchconfig(cfg)\ncpp.flags(cfg,
cc)\ncpp.linker(prj, cfg, cc)\n_p(' OBJECTS := \\\\')\nfor _, file in
ipairs(prj.files) do\nif path.iscppfile(file) then\nif not table.icontains(cfg.excludes,
file) then\n_p('\\t$(OBJDIR)/%s.o \\\\'\n,
_MAKE.esc(path.trimdots(path.removeext(file)))\n)\nend\nend\nend\n_p('')\n_p('
define PREBUILDCMDS')\nif #cfg.prebuildcommands > 0 th
en\n_p('\\t@echo Running pre-build comm"
-- "ands')\n_p('\\t%s', table.implode(cfg.prebuildcommands,
\"\", \"\", \"\\n\\t\"))\nend\n_p('
endef')\n_p(' define PRELINKCMDS')\nif #cfg.prelinkcommands > 0
then\n_p('\\t@echo Running pre-link commands')\n_p('\\t%s',
table.implode(cfg.prelinkcommands, \"\", \"\",
\"\\n\\t\"))\nend\n_p(' endef')\n_p(' define
POSTBUILDCMDS')\nif #cfg.postbuildcommands > 0 then\n_p('\\t@echo Running
post-build commands')\n_p('\\t%s', table.implode(cfg.postbuildcommands,
\"\", \"\", \"\\n\\t\"))\nend\n_p('
endef')\nmake.settings(cfg, cc)\n_p('endif')\n_p('')\nend\nfunction
cpp.platformtools(cfg, cc)\nlocal platform = cc.platforms[cfg.platform]\nif platform.cc
then\n_p(' CC = %s', platform.cc)\nend\nif platform.cxx then\n_p('
CXX = %s', platform.cxx)\nend\nif platform.ar then\n_p(' AR =
%s', platform.ar)\nend\nend\nfunction cpp.flags(cfg, cc)\nif cfg.pchheader and not
cfg.flags.NoPCH then\n_p(' FORCE_INCLUDE += -include $(OBJDIR)/$(notdir
$(PCH))')\nend\nif #cfg.
forcedincludes > 0 then\n_p(' FORCE_IN"
-- "CLUDE += -include %s'\n,premake.esc(table.concat(cfg.forcedincludes,
\";\")))\nend\n_p(' ALL_CPPFLAGS += $(CPPFLAGS) %s $(DEFINES)
$(INCLUDES)', table.concat(cc.getcppflags(cfg), \" \"))\n_p('
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH)%s',
make.list(table.join(cc.getcflags(cfg), cfg.buildoptions, cfg.buildoptions_c)))\n_p('
ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH)%s',
make.list(table.join(cc.getcflags(cfg), cc.getcxxflags(cfg), cfg.buildoptions,
cfg.buildoptions_cpp)))\n_p(' ALL_OBJCFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS)
$(ARCH)%s', make.list(table.join(cc.getcflags(cfg), cc.getcxxflags(cfg),
cfg.buildoptions, cfg.buildoptions_objc)))\n_p(' ALL_RESFLAGS += $(RESFLAGS)
$(DEFINES) $(INCLUDES)%s',\n
make.list(table.join(cc.getdefines(cfg.resdefines),\n
cc.getincludedirs(cfg.resincludedirs), cfg.resoptions)))\nend\nfunction cpp.linker(prj,
cfg, cc)\n_p(' ALL_LDFLAGS += $(LDFLAGS)%s', make.li
st(table.join(cc.getlibdirflags(cfg), c"
-- "c.getldflags(cfg), cfg.linkoptions)))\n_p(' LDDEPS +=%s',
make.list(_MAKE.esc(premake.getlinks(cfg, \"siblings\",
\"fullpath\"))))\n_p(' LIBS += $(LDDEPS)%s',
make.list(cc.getlinkflags(cfg)))\nif cfg.kind == \"StaticLib\" then\nif
cfg.platform:startswith(\"Universal\") then\n_p(' LINKCMD = libtool -o
$(TARGET)')\nelse\nif (not prj.options.ArchiveSplit) then\nif cc.llvm then\n_p('
LINKCMD = $(AR) rcs $(TARGET)')\nelse\n_p(' LINKCMD = $(AR) -rcs
$(TARGET)')\nend\nelse\nif cc.llvm then\n_p(' LINKCMD = $(AR) qc
$(TARGET)')\n_p(' LINKCMD_NDX= $(AR) cs $(TARGET)')\nelse\n_p(' LINKCMD
= $(AR) -qc $(TARGET)')\n_p(' LINKCMD_NDX= $(AR) -cs
$(TARGET)')\nend\nend\nend\nelse\nlocal tool = iif(cfg.language == \"C\",
\"CC\", \"CXX\")\n_p(' LINKCMD = $(%s) -o $(TARGET) $(OBJECTS)
$(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS)', tool)\nend\nend\nfunction
cpp.pchconfig(cfg)\nif not cfg.pchheader or cfg.flags.NoPCH then\nreturn\nend\nlocal pch =
cfg.pchheade
r\nfor _, incdir in ipairs(cfg.included"
-- "irs) do\nlocal abspath = path.getabsolute(path.join(cfg.project.location,
incdir))\nlocal testname = path.join(abspath, pch)\nif os.isfile(testname) then\npch =
path.getrelative(cfg.location, testname)\nbreak\nend\nend\n_p(' PCH = %s',
_MAKE.esc(pch))\n_p(' GCH = $(OBJDIR)/$(notdir
$(PCH)).gch')\nend\nfunction cpp.pchrules(prj)\n_p('ifneq
(,$(PCH))')\n_p('$(GCH): $(PCH)')\n_p('\\t@echo $(notdir
$<)')\nlocal cmd = iif(prj.language == \"C\", \"$(CC) -x c-header
$(ALL_CFLAGS)\", \"$(CXX) -x c++-header
$(ALL_CXXFLAGS)\")\n_p('\\t$(SILENT) %s -MMD -MP $(DEFINES) $(INCLUDES) -o
\"$@\" -MF \"$(@:%%.gch=%%.d)\" -c \"$<\"',
cmd)\n_p('endif')\n_p('')\nend\nfunction cpp.fileRules(prj)\nfor _, file
in ipairs(prj.files or {}) do\nif path.iscppfile(file) then\n_p('$(OBJDIR)/%s.o:
%s'\n, _MAKE.esc(path.trimdots(path.removeext(file)))\n, _MAKE.esc(file)\n)\nif
(path.isobjcfile(file) and prj.msgcompile_objc) then\n_p('\\t@echo ' ..
prj.msgcompile_objc)\nelseif prj.msgcompi
le then\n_p('\\t@echo ' .. prj.msgcompi"
-- "le)\nelse\n_p('\\t@echo $(notdir $<)')\nend\nif
(path.isobjcfile(file)) then\n_p('\\t$(SILENT) $(CXX) $(ALL_OBJCFLAGS)
$(FORCE_INCLUDE) -o \"$@\" -MF $(@:%%.o=%%.d) -c
\"$<\"')\nelse\ncpp.buildcommand(path.iscfile(file) and not
prj.options.ForceCPP, \"o\")\nend\nfor _, task in ipairs(prj.postcompiletasks or
{}) do\n_p('\\t$(SILENT) %s', task)\n_p('')\nend\n_p('')\nelseif
(path.getextension(file) == \".rc\") then\n_p('$(OBJDIR)/%s.res: %s',
_MAKE.esc(path.getbasename(file)), _MAKE.esc(file))\nif prj.msgresource
then\n_p('\\t@echo ' .. prj.msgresource)\nelse\n_p('\\t@echo $(notdir
$<)')\nend\n_p('\\t$(SILENT) $(RESCOMP) $< -O coff -o \"$@\"
$(ALL_RESFLAGS)')\n_p('')\nend\nend\nend\nfunction
cpp.dependencyRules(prj)\nfor _, dependency in ipairs(prj.dependency or {}) do\nfor _, dep
in ipairs(dependency or {}) do\nif (dep[3]==nil or dep[3]==false)
then\n_p('$(OBJDIR)/%s.o: %s'\n,
_MAKE.esc(path.trimdots(path.removeext(path.getrelative(prj.location, dep[1]))))\n,
_MAKE.esc(path
.getrelative(prj.location, dep[2]))\n)"
-- "\nelse\n_p('%s: %s'\n, _MAKE.esc(dep[1])\n,
_MAKE.esc(path.getrelative(prj.location,
dep[2]))\n)\nend\n_p('')\nend\nend\nend\nfunction cpp.buildcommand(iscfile,
objext)\nlocal flags = iif(iscfile, '$(CC) $(ALL_CFLAGS)', '$(CXX)
$(ALL_CXXFLAGS)')\n_p('\\t$(SILENT) %s $(FORCE_INCLUDE) -o \"$@\" -MF
$(@:%%.%s=%%.d) -c \"$<\"', flags, objext)\nend\n",
+- "NT = @')\n_p('endif')\n_p('')\n_p('SHELLTYPE :=
msdos')\n_p('ifeq (,$(ComSpec)$(COMSPEC))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('ifeq (/bin,$(findstring
/bin,$(SHELL)))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('ifeq (/bin,$(findstring
/bin,$(MAKESHELL)))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('')\n_p('ifeq
(posix,$(SHELLTYPE))')\n_p(' MKDIR = $(SILENT) mkdir -p
\"$(1)\"')\n_p(' COPY = $(SILENT) cp -fR \"$(1)\"
\"$(2)\"')\n_p(' RM= $(SILENT) rm -f
\"$(1)\"')\n_p('else')\n_p(' MKDIR = $(SILENT) mkdir
\"$(subst /,\\\\\\\\,$(1))\" 2> nul || exit 0')\n_p(' COPY =
$(SILENT) copy /Y \"$(subst /,\\\\\\\\,$(1))\" \"$(subst
/,\\\\\\\\,$(2))\"')\n_p(' RM = $(SILENT) del /F \"$(subst
/,\\\\\\\\,$(1))\" 2> nul || exit
0')\n_p('endif')\n_p('')\n_p('CC = %s', cc.cc)\n_p('CXX =
%s', cc.cxx)\n_p('AR = %s', cc.ar)\n_p('')\n_p('ifndef
RESCOMP')\n_p(' ifdef WINDRES')\n_p(' RESCOMP =
$(WINDRES)')\n_p(' else')\n_p(' RESCOMP = windres')\n_p('
endif')
\n_p('endif')\n_p('')\nend\nfunction pr"
+- "emake.gmake_cpp_config(prj, cfg, cc)\n_p('ifeq ($(config),%s)',
_MAKE.esc(cfg.shortname))\ncpp.platformtools(cfg, cc)\n_p(' ' ..
(table.contains(premake.make.override,\"OBJDIR\") and \"override \" or
\"\") .. 'OBJDIR = %s', _MAKE.esc(cfg.objectsdir))\n_p('
' .. (table.contains(premake.make.override,\"TARGETDIR\") and
\"override \" or \"\") .. 'TARGETDIR = %s',
_MAKE.esc(cfg.buildtarget.directory))\n_p(' ' ..
(table.contains(premake.make.override,\"TARGET\") and \"override \" or
\"\") .. 'TARGET = $(TARGETDIR)/%s',
_MAKE.esc(cfg.buildtarget.name))\n_p(' DEFINES +=%s',
make.list(cc.getdefines(cfg.defines)))\n_p(' INCLUDES +=%s',
make.list(cc.getincludedirs(cfg.includedirs)))\ncpp.pchconfig(cfg)\ncpp.flags(cfg,
cc)\ncpp.linker(prj, cfg, cc)\n_p(' OBJECTS := \\\\')\nfor _, file in
ipairs(prj.files) do\nif path.iscppfile(file) then\nif not table.icontains(cfg.excludes,
file) then\n_p('\\t$(OBJDIR)/%s.o \\\\'\n,
_MAKE.esc(path.trimdots(path.removeext(fil
e)))\n)\nend\nend\nend\n_p('')\n_p(' d"
+- "efine PREBUILDCMDS')\nif #cfg.prebuildcommands > 0 then\n_p('\\t@echo
Running pre-build commands')\n_p('\\t%s', table.implode(cfg.prebuildcommands,
\"\", \"\", \"\\n\\t\"))\nend\n_p('
endef')\n_p(' define PRELINKCMDS')\nif #cfg.prelinkcommands > 0
then\n_p('\\t@echo Running pre-link commands')\n_p('\\t%s',
table.implode(cfg.prelinkcommands, \"\", \"\",
\"\\n\\t\"))\nend\n_p(' endef')\n_p(' define
POSTBUILDCMDS')\nif #cfg.postbuildcommands > 0 then\n_p('\\t@echo Running
post-build commands')\n_p('\\t%s', table.implode(cfg.postbuildcommands,
\"\", \"\", \"\\n\\t\"))\nend\n_p('
endef')\nmake.settings(cfg, cc)\n_p('endif')\n_p('')\nend\nfunction
cpp.platformtools(cfg, cc)\nlocal platform = cc.platforms[cfg.platform]\nif platform.cc
then\n_p(' CC = %s', platform.cc)\nend\nif platform.cxx then\n_p('
CXX = %s', platform.cxx)\nend\nif platform.ar then\n_p(' AR =
%s', platform.ar)\nend\nend\nfunction cpp.flags(cfg, cc)\nif cfg.pchheader and not
cfg.f
lags.NoPCH then\n_p(' FORCE_INCLUDE +="
+- "-include $(OBJDIR)/$(notdir $(PCH))')\nend\nif #cfg.forcedincludes > 0
then\n_p(' FORCE_INCLUDE += -include
%s'\n,premake.esc(table.concat(cfg.forcedincludes, \";\")))\nend\n_p('
ALL_CPPFLAGS += $(CPPFLAGS) %s $(DEFINES) $(INCLUDES)',
table.concat(cc.getcppflags(cfg), \" \"))\n_p(' ALL_CFLAGS += $(CFLAGS)
$(ALL_CPPFLAGS) $(ARCH)%s', make.list(table.join(cc.getcflags(cfg), cfg.buildoptions,
cfg.buildoptions_c)))\n_p(' ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS)
$(ARCH)%s', make.list(table.join(cc.getcflags(cfg), cc.getcxxflags(cfg),
cfg.buildoptions, cfg.buildoptions_cpp)))\n_p(' ALL_OBJCFLAGS += $(CXXFLAGS)
$(CFLAGS) $(ALL_CPPFLAGS) $(ARCH)%s', make.list(table.join(cc.getcflags(cfg),
cc.getcxxflags(cfg), cfg.buildoptions, cfg.buildoptions_objc)))\n_p(' ALL_RESFLAGS
+= $(RESFLAGS) $(DEFINES) $(INCLUDES)%s',\n
make.list(table.join(cc.getdefines(cfg.resdefines),\n
cc.getincludedirs(cfg.resincludedirs), cfg.resoption
s)))\nend\nfunction cpp.linker(prj, cfg"
+- ", cc)\n_p(' ALL_LDFLAGS += $(LDFLAGS)%s',
make.list(table.join(cc.getlibdirflags(cfg), cc.getldflags(cfg),
cfg.linkoptions)))\n_p(' LDDEPS +=%s',
make.list(_MAKE.esc(premake.getlinks(cfg, \"siblings\",
\"fullpath\"))))\n_p(' LIBS += $(LDDEPS)%s',
make.list(cc.getlinkflags(cfg)))\nif cfg.kind == \"StaticLib\" then\nif
cfg.platform:startswith(\"Universal\") then\n_p(' LINKCMD = libtool -o
$(TARGET)')\nelse\nif (not prj.options.ArchiveSplit) then\nif cc.llvm then\n_p('
LINKCMD = $(AR) rcs $(TARGET)')\nelse\n_p(' LINKCMD = $(AR) -rcs
$(TARGET)')\nend\nelse\nif cc.llvm then\n_p(' LINKCMD = $(AR) qc
$(TARGET)')\n_p(' LINKCMD_NDX= $(AR) cs $(TARGET)')\nelse\n_p(' LINKCMD
= $(AR) -qc $(TARGET)')\n_p(' LINKCMD_NDX= $(AR) -cs
$(TARGET)')\nend\nend\nend\nelse\nlocal tool = iif(cfg.language == \"C\",
\"CC\", \"CXX\")\n_p(' LINKCMD = $(%s) -o $(TARGET) $(OBJECTS)
$(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS)', tool)\nend\nend\nfunction cpp.pchconfi
g(cfg)\nif not cfg.pchheader or cfg.fla"
+- "gs.NoPCH then\nreturn\nend\nlocal pch = cfg.pchheader\nfor _, incdir in
ipairs(cfg.includedirs) do\nlocal abspath =
path.getabsolute(path.join(cfg.project.location, incdir))\nlocal testname =
path.join(abspath, pch)\nif os.isfile(testname) then\npch = path.getrelative(cfg.location,
testname)\nbreak\nend\nend\n_p(' PCH = %s', _MAKE.esc(pch))\n_p(' GCH
= $(OBJDIR)/$(notdir $(PCH)).gch')\nend\nfunction
cpp.pchrules(prj)\n_p('ifneq (,$(PCH))')\n_p('$(GCH):
$(PCH)')\n_p('\\t@echo $(notdir $<)')\nlocal cmd = iif(prj.language ==
\"C\", \"$(CC) -x c-header $(ALL_CFLAGS)\", \"$(CXX) -x
c++-header $(ALL_CXXFLAGS)\")\n_p('\\t$(SILENT) %s -MMD -MP $(DEFINES)
$(INCLUDES) -o \"$@\" -MF \"$(@:%%.gch=%%.d)\" -c
\"$<\"', cmd)\n_p('endif')\n_p('')\nend\nfunction
cpp.fileRules(prj)\nfor _, file in ipairs(prj.files or {}) do\nif path.iscppfile(file)
then\n_p('$(OBJDIR)/%s.o: %s'\n, _MAKE.esc(path.trimdots(path.removeext(file)))\n,
_MAKE.esc(file)\n)\nif (path.isobjcfile(file)
and prj.msgcompile_objc) then\n_p('\\t"
+- "@echo ' .. prj.msgcompile_objc)\nelseif prj.msgcompile then\n_p('\\t@echo
' .. prj.msgcompile)\nelse\n_p('\\t@echo $(notdir $<)')\nend\nif
(path.isobjcfile(file)) then\n_p('\\t$(SILENT) $(CXX) $(ALL_OBJCFLAGS)
$(FORCE_INCLUDE) -o \"$@\" -MF $(@:%%.o=%%.d) -c
\"$<\"')\nelse\ncpp.buildcommand(path.iscfile(file) and not
prj.options.ForceCPP, \"o\")\nend\nfor _, task in ipairs(prj.postcompiletasks or
{}) do\n_p('\\t$(SILENT) %s', task)\n_p('')\nend\n_p('')\nelseif
(path.getextension(file) == \".rc\") then\n_p('$(OBJDIR)/%s.res: %s',
_MAKE.esc(path.getbasename(file)), _MAKE.esc(file))\nif prj.msgresource
then\n_p('\\t@echo ' .. prj.msgresource)\nelse\n_p('\\t@echo $(notdir
$<)')\nend\n_p('\\t$(SILENT) $(RESCOMP) $< -O coff -o \"$@\"
$(ALL_RESFLAGS)')\n_p('')\nend\nend\nend\nfunction
cpp.dependencyRules(prj)\nfor _, dependency in ipairs(prj.dependency or {}) do\nfor _, dep
in ipairs(dependency or {}) do\nif (dep[3]==nil or dep[3]==false)
then\n_p('$(OBJDIR)/%s.o: %s'\n, _MAKE.e
sc(path.trimdots(path.removeext(path.ge"
+- "trelative(prj.location, dep[1]))))\n, _MAKE.esc(path.getrelative(prj.location,
dep[2]))\n)\nelse\n_p('%s: %s'\n, _MAKE.esc(dep[1])\n,
_MAKE.esc(path.getrelative(prj.location,
dep[2]))\n)\nend\n_p('')\nend\nend\nend\nfunction cpp.buildcommand(iscfile,
objext)\nlocal flags = iif(iscfile, '$(CC) $(ALL_CFLAGS)', '$(CXX)
$(ALL_CXXFLAGS)')\n_p('\\t$(SILENT) %s $(FORCE_INCLUDE) -o \"$@\" -MF
$(@:%%.%s=%%.d) -c \"$<\"', flags, objext)\nend\n",
+ "('\\t%s \\\\', dir)\nend\n_p('')\n_p('RESOURCES :=
\\\\')\nfor _, file in ipairs(prj.files) do\nif path.isresourcefile(file)
then\n_p('\\t$(OBJDIR)/%s.res \\\\',
_MAKE.esc(path.getbasename(file)))\nend\nend\n_p('')\n_p('.PHONY: clean
prebuild prelink')\n_p('')\nif os.is(\"MacOSX\") and prj.kind ==
\"WindowedApp\" then\n_p('all: $(TARGETDIR) $(OBJDIRS) prebuild prelink
$(TARGET) $(dir $(TARGETDIR))PkgInfo $(dir
$(TARGETDIR))Info.plist')\nelse\n_p('all: $(TARGETDIR) $(OBJDIRS) prebuild prelink
$(TARGET)')\nend\n_p('\\t@:')\n_p('')\nif (prj.kind ==
\"StaticLib\" and prj.options.ArchiveSplit) then\n_p('define
max_args')\n_p('\\t$(eval _args:=)')\n_p('\\t$(foreach obj,$3,$(eval
_args+=$(obj))$(if $(word $2,$(_args)),$1$(_args)$(EOL)$(eval
_args:=)))')\n_p('\\t$(if
$(_args),$1$(_args))')\n_p('endef')\n_p('')\n_p('define
EOL')\n_p('')\n_p('')\n_p('endef')\n_p('')\nend\n_p('$(TARGET):
$(TARGETDIR) $(OBJDIRS) $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)')\nif prj.kind ==
\"StaticLib\"
then\nif prj.msgarchiving then\n_p('"
+ "\\t@echo ' .. prj.msgarchiving)\nelse\n_p('\\t@echo Archiving %s',
prj.name)\nend\nif (not prj.archivesplit_size) then\nprj.archivesplit_size=200\nend\nif
(not prj.options.ArchiveSplit) then\n_p('\\t$(SILENT) $(LINKCMD) $(OBJECTS)' ..
(os.is(\"MacOSX\") and \" 2>&1 > /dev/null | sed -e '/.o) has
no symbols$$/d'\" or \"\"))\nelse\n_p('\\t$(call
RM,$(TARGET))')\n_p('\\t@$(call max_args,$(LINKCMD),'.. prj.archivesplit_size
..',$(OBJECTS))' .. (os.is(\"MacOSX\") and \" 2>&1 >
/dev/null | sed -e '/.o) has no symbols$$/d'\" or
\"\"))\n_p('\\t$(SILENT) $(LINKCMD_NDX)')\nend\nelse\nif prj.msglinking
then\n_p('\\t@echo ' .. prj.msglinking)\nelse\n_p('\\t@echo Linking %s',
prj.name)\nend\n_p('\\t$(SILENT)
$(LINKCMD)')\nend\n_p('\\t$(POSTBUILDCMDS)')\n_p('')\n_p('$(TARGETDIR):')\npremake.make_mkdirrule(\"$(TARGETDIR)\")\n_p('$(OBJDIRS):')\nif
(not prj.solution.messageskip) or (not table.contains(prj.solution.messageskip,
\"SkipCreatingMessage\")) then\n_p('\\t@echo Creating $(@)')\n
end\n_p('\\t-$(call MKDIR,$@)')\n_p('')"
+ "\nif os.is(\"MacOSX\") and prj.kind == \"WindowedApp\"
then\n_p('$(dir $(TARGETDIR))PkgInfo:')\n_p('$(dir
$(TARGETDIR))Info.plist:')\n_p('')\nend\n_p('clean:')\nif (not
prj.solution.messageskip) or (not table.contains(prj.solution.messageskip,
\"SkipCleaningMessage\")) then\n_p('\\t@echo Cleaning %s',
prj.name)\nend\n_p('ifeq (posix,$(SHELLTYPE))')\n_p('\\t$(SILENT) rm -f
$(TARGET)')\n_p('\\t$(SILENT) rm -rf
$(OBJDIR)')\n_p('else')\n_p('\\t$(SILENT) if exist $(subst
/,\\\\\\\\,$(TARGET)) del $(subst /,\\\\\\\\,$(TARGET))')\n_p('\\t$(SILENT) if
exist $(subst /,\\\\\\\\,$(OBJDIR)) rmdir /s /q $(subst
/,\\\\\\\\,$(OBJDIR))')\n_p('endif')\n_p('')\n_p('prebuild:')\n_p('\\t$(PREBUILDCMDS)')\n_p('')\n_p('prelink:')\n_p('\\t$(PRELINKCMDS)')\n_p('')\ncpp.pchrules(prj)\ncpp.fileRules(prj)\ncpp.dependencyRules(prj)\nfor
_, custombuildtask in ipairs(prj.custombuildtask or {}) do\nfor _, buildtask in
ipairs(custombuildtask or {}) do\nlocal deps = string.format(\"%s
\",path.getrelati
ve(prj.location,buildtask[1]))\nfor _, "
+ "depdata in ipairs(buildtask[3] or {}) do\ndeps = deps .. string.format(\"%s
\",path.getrelative(prj.location,depdata))\nend\n_p('%s:
%s'\n,path.getrelative(prj.location,buildtask[2])\n, deps\n)\nfor _, cmdline in
ipairs(buildtask[4] or {}) do\nlocal cmd = cmdline\nlocal num = 1\nfor _, depdata in
ipairs(buildtask[3] or {}) do\ncmd = string.gsub(cmd,\"%$%(\" .. num
..\"%)\", string.format(\"%s
\",path.getrelative(prj.location,depdata)))\nnum = num + 1\nend\ncmd =
string.gsub(cmd, \"%$%(<%)\", \"$<\")\ncmd = string.gsub(cmd,
\"%$%(@%)\", \"$@\")\n \n_p('\\t$(SILENT)
%s',cmd)\nend\n_p('')\nend\nend\n_p('-include
$(OBJECTS:%%.o=%%.d)')\n_p('ifneq (,$(PCH))')\n_p(' -include
$(OBJDIR)/$(notdir $(PCH)).d')\n_p('endif')\nend\nfunction
premake.gmake_cpp_header(prj, cc, platforms)\n_p('# %s project makefile autogenerated
by GENie', premake.action.current().shortname)\n_p('ifndef config')\n_p('
config=%s', _MAKE.esc(premake.getconfigname(prj.solution.configurations[1],
platforms[1
], true)))\n_p('endif')\n_p('')\n_p('if"
-+ "ndef verbose')\n_p(' SILENT =
@')\n_p('endif')\n_p('')\n_p('SHELLTYPE :=
msdos')\n_p('ifeq (,$(ComSpec)$(COMSPEC))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('ifeq (/bin,$(findstring
/bin,$(SHELL)))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('')\n_p('ifeq
(posix,$(SHELLTYPE))')\n_p(' MKDIR = $(SILENT) mkdir -p
\"$(1)\"')\n_p(' COPY = $(SILENT) cp -fR \"$(1)\"
\"$(2)\"')\n_p(' RM= $(SILENT) rm -f
\"$(1)\"')\n_p('else')\n_p(' MKDIR = $(SILENT) mkdir
\"$(subst /,\\\\\\\\,$(1))\" 2> nul || exit 0')\n_p(' COPY =
$(SILENT) copy /Y \"$(subst /,\\\\\\\\,$(1))\" \"$(subst
/,\\\\\\\\,$(2))\"')\n_p(' RM = $(SILENT) del /F \"$(subst
/,\\\\\\\\,$(1))\" 2> nul || exit
0')\n_p('endif')\n_p('')\n_p('CC = %s', cc.cc)\n_p('CXX =
%s', cc.cxx)\n_p('AR = %s', cc.ar)\n_p('')\n_p('ifndef
RESCOMP')\n_p(' ifdef WINDRES')\n_p(' RESCOMP =
$(WINDRES)')\n_p(' else')\n_p(' RESCOMP = windres')\n_p('
endif')\n_p('endif')\n_p('')\nend\nfunction
premake.gmake_cpp_config(prj,
cfg, cc)\n_p('ifeq ($(config),%s)', _M"
-+ "AKE.esc(cfg.shortname))\ncpp.platformtools(cfg, cc)\n_p(' ' ..
(table.contains(premake.make.override,\"OBJDIR\") and \"override \" or
\"\") .. 'OBJDIR = %s', _MAKE.esc(cfg.objectsdir))\n_p('
' .. (table.contains(premake.make.override,\"TARGETDIR\") and
\"override \" or \"\") .. 'TARGETDIR = %s',
_MAKE.esc(cfg.buildtarget.directory))\n_p(' ' ..
(table.contains(premake.make.override,\"TARGET\") and \"override \" or
\"\") .. 'TARGET = $(TARGETDIR)/%s',
_MAKE.esc(cfg.buildtarget.name))\n_p(' DEFINES +=%s',
make.list(cc.getdefines(cfg.defines)))\n_p(' INCLUDES +=%s',
make.list(cc.getincludedirs(cfg.includedirs)))\ncpp.pchconfig(cfg)\ncpp.flags(cfg,
cc)\ncpp.linker(prj, cfg, cc)\n_p(' OBJECTS := \\\\')\nfor _, file in
ipairs(prj.files) do\nif path.iscppfile(file) then\nif not table.icontains(cfg.excludes,
file) then\n_p('\\t$(OBJDIR)/%s.o \\\\'\n,
_MAKE.esc(path.trimdots(path.removeext(file)))\n)\nend\nend\nend\n_p('')\n_p('
define PREBUILDCMDS')\nif #c
fg.prebuildcommands > 0 then\n_p('\\t@e"
-+ "cho Running pre-build commands')\n_p('\\t%s',
table.implode(cfg.prebuildcommands, \"\", \"\",
\"\\n\\t\"))\nend\n_p(' endef')\n_p(' define PRELINKCMDS')\nif
#cfg.prelinkcommands > 0 then\n_p('\\t@echo Running pre-link
commands')\n_p('\\t%s', table.implode(cfg.prelinkcommands, \"\",
\"\", \"\\n\\t\"))\nend\n_p(' endef')\n_p(' define
POSTBUILDCMDS')\nif #cfg.postbuildcommands > 0 then\n_p('\\t@echo Running
post-build commands')\n_p('\\t%s', table.implode(cfg.postbuildcommands,
\"\", \"\", \"\\n\\t\"))\nend\n_p('
endef')\nmake.settings(cfg, cc)\n_p('endif')\n_p('')\nend\nfunction
cpp.platformtools(cfg, cc)\nlocal platform = cc.platforms[cfg.platform]\nif platform.cc
then\n_p(' CC = %s', platform.cc)\nend\nif platform.cxx then\n_p('
CXX = %s', platform.cxx)\nend\nif platform.ar then\n_p(' AR =
%s', platform.ar)\nend\nend\nfunction cpp.flags(cfg, cc)\nif cfg.pchheader and not
cfg.flags.NoPCH then\n_p(' FORCE_INCLUDE += -include $(OBJDIR)/$(notdi
r $(PCH))')\nend\nif #cfg.forcedinclude"
-+ "s > 0 then\n_p(' FORCE_INCLUDE += -include
%s'\n,premake.esc(table.concat(cfg.forcedincludes, \";\")))\nend\n_p('
ALL_CPPFLAGS += $(CPPFLAGS) %s $(DEFINES) $(INCLUDES)',
table.concat(cc.getcppflags(cfg), \" \"))\n_p(' ALL_CFLAGS += $(CFLAGS)
$(ALL_CPPFLAGS) $(ARCH)%s', make.list(table.join(cc.getcflags(cfg), cfg.buildoptions,
cfg.buildoptions_c)))\n_p(' ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS)
$(ARCH)%s', make.list(table.join(cc.getcflags(cfg), cc.getcxxflags(cfg),
cfg.buildoptions, cfg.buildoptions_cpp)))\n_p(' ALL_OBJCFLAGS += $(CXXFLAGS)
$(CFLAGS) $(ALL_CPPFLAGS) $(ARCH)%s', make.list(table.join(cc.getcflags(cfg),
cc.getcxxflags(cfg), cfg.buildoptions, cfg.buildoptions_objc)))\n_p(' ALL_RESFLAGS
+= $(RESFLAGS) $(DEFINES) $(INCLUDES)%s',\n
make.list(table.join(cc.getdefines(cfg.resdefines),\n
cc.getincludedirs(cfg.resincludedirs), cfg.resoptions)))\nend\nfunction cpp.linker(prj,
cfg, cc)\n_p(' ALL_LDFLAGS
+= $(LDFLAGS)%s', make.list(table.join"
-+ "(cc.getlibdirflags(cfg), cc.getldflags(cfg), cfg.linkoptions)))\n_p(' LDDEPS
+=%s', make.list(_MAKE.esc(premake.getlinks(cfg, \"siblings\",
\"fullpath\"))))\n_p(' LIBS += $(LDDEPS)%s',
make.list(cc.getlinkflags(cfg)))\nif cfg.kind == \"StaticLib\" then\nif
cfg.platform:startswith(\"Universal\") then\n_p(' LINKCMD = libtool -o
$(TARGET)')\nelse\nif (not prj.options.ArchiveSplit) then\nif cc.llvm then\n_p('
LINKCMD = $(AR) rcs $(TARGET)')\nelse\n_p(' LINKCMD = $(AR) -rcs
$(TARGET)')\nend\nelse\nif cc.llvm then\n_p(' LINKCMD = $(AR) qc
$(TARGET)')\n_p(' LINKCMD_NDX= $(AR) cs $(TARGET)')\nelse\n_p(' LINKCMD
= $(AR) -qc $(TARGET)')\n_p(' LINKCMD_NDX= $(AR) -cs
$(TARGET)')\nend\nend\nend\nelse\nlocal tool = iif(cfg.language == \"C\",
\"CC\", \"CXX\")\n_p(' LINKCMD = $(%s) -o $(TARGET) $(OBJECTS)
$(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS)', tool)\nend\nend\nfunction
cpp.pchconfig(cfg)\nif not cfg.pchheader or cfg.flags.NoPCH then\nreturn\nend
\nlocal pch = cfg.pchheader\nfor _, inc"
-+ "dir in ipairs(cfg.includedirs) do\nlocal abspath =
path.getabsolute(path.join(cfg.project.location, incdir))\nlocal testname =
path.join(abspath, pch)\nif os.isfile(testname) then\npch = path.getrelative(cfg.location,
testname)\nbreak\nend\nend\n_p(' PCH = %s', _MAKE.esc(pch))\n_p(' GCH
= $(OBJDIR)/$(notdir $(PCH)).gch')\nend\nfunction
cpp.pchrules(prj)\n_p('ifneq (,$(PCH))')\n_p('$(GCH):
$(PCH)')\n_p('\\t@echo $(notdir $<)')\nlocal cmd = iif(prj.language ==
\"C\", \"$(CC) -x c-header $(ALL_CFLAGS)\", \"$(CXX) -x
c++-header $(ALL_CXXFLAGS)\")\n_p('\\t$(SILENT) %s -MMD -MP $(DEFINES)
$(INCLUDES) -o \"$@\" -MF \"$(@:%%.gch=%%.d)\" -c
\"$<\"', cmd)\n_p('endif')\n_p('')\nend\nfunction
cpp.fileRules(prj)\nfor _, file in ipairs(prj.files or {}) do\nif path.iscppfile(file)
then\n_p('$(OBJDIR)/%s.o: %s'\n, _MAKE.esc(path.trimdots(path.removeext(file)))\n,
_MAKE.esc(file)\n)\nif (path.isobjcfile(file) and prj.msgcompile_objc)
then\n_p('\\t@echo ' .. prj.msgcompile_
objc)\nelseif prj.msgcompile then\n_p('"
-+ "\\t@echo ' .. prj.msgcompile)\nelse\n_p('\\t@echo $(notdir
$<)')\nend\nif (path.isobjcfile(file)) then\n_p('\\t$(SILENT) $(CXX)
$(ALL_OBJCFLAGS) $(FORCE_INCLUDE) -o \"$@\" -MF $(@:%%.o=%%.d) -c
\"$<\"')\nelse\ncpp.buildcommand(path.iscfile(file) and not
prj.options.ForceCPP, \"o\")\nend\nfor _, task in ipairs(prj.postcompiletasks or
{}) do\n_p('\\t$(SILENT) %s', task)\n_p('')\nend\n_p('')\nelseif
(path.getextension(file) == \".rc\") then\n_p('$(OBJDIR)/%s.res: %s',
_MAKE.esc(path.getbasename(file)), _MAKE.esc(file))\nif prj.msgresource
then\n_p('\\t@echo ' .. prj.msgresource)\nelse\n_p('\\t@echo $(notdir
$<)')\nend\n_p('\\t$(SILENT) $(RESCOMP) $< -O coff -o \"$@\"
$(ALL_RESFLAGS)')\n_p('')\nend\nend\nend\nfunction
cpp.dependencyRules(prj)\nfor _, dependency in ipairs(prj.dependency or {}) do\nfor _, dep
in ipairs(dependency or {}) do\nif (dep[3]==nil or dep[3]==false)
then\n_p('$(OBJDIR)/%s.o: %s'\n,
_MAKE.esc(path.trimdots(path.removeext(path.getrelative(prj.location, de
p[1]))))\n, _MAKE.esc(path.getrelative("
-+ "prj.location, dep[2]))\n)\nelse\n_p('%s: %s'\n, _MAKE.esc(dep[1])\n,
_MAKE.esc(path.getrelative(prj.location,
dep[2]))\n)\nend\n_p('')\nend\nend\nend\nfunction cpp.buildcommand(iscfile,
objext)\nlocal flags = iif(iscfile, '$(CC) $(ALL_CFLAGS)', '$(CXX)
$(ALL_CXXFLAGS)')\n_p('\\t$(SILENT) %s $(FORCE_INCLUDE) -o \"$@\" -MF
$(@:%%.%s=%%.d) -c \"$<\"', flags, objext)\nend\n",
++ "ndef verbose')\n_p(' SILENT =
@')\n_p('endif')\n_p('')\n_p('SHELLTYPE :=
msdos')\n_p('ifeq (,$(ComSpec)$(COMSPEC))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('ifeq (/bin,$(findstring
/bin,$(SHELL)))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('ifeq (/bin,$(findstring
/bin,$(MAKESHELL)))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('')\n_p('ifeq
(posix,$(SHELLTYPE))')\n_p(' MKDIR = $(SILENT) mkdir -p
\"$(1)\"')\n_p(' COPY = $(SILENT) cp -fR \"$(1)\"
\"$(2)\"')\n_p(' RM= $(SILENT) rm -f
\"$(1)\"')\n_p('else')\n_p(' MKDIR = $(SILENT) mkdir
\"$(subst /,\\\\\\\\,$(1))\" 2> nul || exit 0')\n_p(' COPY =
$(SILENT) copy /Y \"$(subst /,\\\\\\\\,$(1))\" \"$(subst
/,\\\\\\\\,$(2))\"')\n_p(' RM = $(SILENT) del /F \"$(subst
/,\\\\\\\\,$(1))\" 2> nul || exit
0')\n_p('endif')\n_p('')\n_p('CC = %s', cc.cc)\n_p('CXX =
%s', cc.cxx)\n_p('AR = %s', cc.ar)\n_p('')\n_p('ifndef
RESCOMP')\n_p(' ifdef WINDRES')\n_p(' RESCOMP =
$(WINDRES)')\n_p(' else')\n_p(' RESCOMP
= windres')\n_p(' endif')\n_p('endif')"
++ "\n_p('')\nend\nfunction premake.gmake_cpp_config(prj, cfg,
cc)\n_p('ifeq ($(config),%s)', _MAKE.esc(cfg.shortname))\ncpp.platformtools(cfg,
cc)\n_p(' ' .. (table.contains(premake.make.override,\"OBJDIR\") and
\"override \" or \"\") .. 'OBJDIR = %s',
_MAKE.esc(cfg.objectsdir))\n_p(' ' ..
(table.contains(premake.make.override,\"TARGETDIR\") and \"override \"
or \"\") .. 'TARGETDIR = %s',
_MAKE.esc(cfg.buildtarget.directory))\n_p(' ' ..
(table.contains(premake.make.override,\"TARGET\") and \"override \" or
\"\") .. 'TARGET = $(TARGETDIR)/%s',
_MAKE.esc(cfg.buildtarget.name))\n_p(' DEFINES +=%s',
make.list(cc.getdefines(cfg.defines)))\n_p(' INCLUDES +=%s',
make.list(cc.getincludedirs(cfg.includedirs)))\ncpp.pchconfig(cfg)\ncpp.flags(cfg,
cc)\ncpp.linker(prj, cfg, cc)\n_p(' OBJECTS := \\\\')\nfor _, file in
ipairs(prj.files) do\nif path.iscppfile(file) then\nif not table.icontains(cfg.excludes,
file) then\n_p('\\t$(OBJDIR)/%s.o \\\\'\n, _MAKE.esc(path.t
rimdots(path.removeext(file)))\n)\nend"
++ "\nend\nend\n_p('')\n_p(' define PREBUILDCMDS')\nif
#cfg.prebuildcommands > 0 then\n_p('\\t@echo Running pre-build
commands')\n_p('\\t%s', table.implode(cfg.prebuildcommands, \"\",
\"\", \"\\n\\t\"))\nend\n_p(' endef')\n_p(' define
PRELINKCMDS')\nif #cfg.prelinkcommands > 0 then\n_p('\\t@echo Running pre-link
commands')\n_p('\\t%s', table.implode(cfg.prelinkcommands, \"\",
\"\", \"\\n\\t\"))\nend\n_p(' endef')\n_p(' define
POSTBUILDCMDS')\nif #cfg.postbuildcommands > 0 then\n_p('\\t@echo Running
post-build commands')\n_p('\\t%s', table.implode(cfg.postbuildcommands,
\"\", \"\", \"\\n\\t\"))\nend\n_p('
endef')\nmake.settings(cfg, cc)\n_p('endif')\n_p('')\nend\nfunction
cpp.platformtools(cfg, cc)\nlocal platform = cc.platforms[cfg.platform]\nif platform.cc
then\n_p(' CC = %s', platform.cc)\nend\nif platform.cxx then\n_p('
CXX = %s', platform.cxx)\nend\nif platform.ar then\n_p(' AR =
%s', platform.ar)\nend\nend\nfunction cpp.flags(cfg, cc)\nif
cfg.pchheader and not cfg.flags.NoPCH t"
++ "hen\n_p(' FORCE_INCLUDE += -include $(OBJDIR)/$(notdir
$(PCH))')\nend\nif #cfg.forcedincludes > 0 then\n_p(' FORCE_INCLUDE +=
-include %s'\n,premake.esc(table.concat(cfg.forcedincludes,
\";\")))\nend\n_p(' ALL_CPPFLAGS += $(CPPFLAGS) %s $(DEFINES)
$(INCLUDES)', table.concat(cc.getcppflags(cfg), \" \"))\n_p('
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH)%s',
make.list(table.join(cc.getcflags(cfg), cfg.buildoptions, cfg.buildoptions_c)))\n_p('
ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH)%s',
make.list(table.join(cc.getcflags(cfg), cc.getcxxflags(cfg), cfg.buildoptions,
cfg.buildoptions_cpp)))\n_p(' ALL_OBJCFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS)
$(ARCH)%s', make.list(table.join(cc.getcflags(cfg), cc.getcxxflags(cfg),
cfg.buildoptions, cfg.buildoptions_objc)))\n_p(' ALL_RESFLAGS += $(RESFLAGS)
$(DEFINES) $(INCLUDES)%s',\n
make.list(table.join(cc.getdefines(cfg.resdefines),\n
cc.getincludedirs(cfg.re
sincludedirs), cfg.resoptions)))\nend\n"
++ "function cpp.linker(prj, cfg, cc)\n_p(' ALL_LDFLAGS += $(LDFLAGS)%s',
make.list(table.join(cc.getlibdirflags(cfg), cc.getldflags(cfg),
cfg.linkoptions)))\n_p(' LDDEPS +=%s',
make.list(_MAKE.esc(premake.getlinks(cfg, \"siblings\",
\"fullpath\"))))\n_p(' LIBS += $(LDDEPS)%s',
make.list(cc.getlinkflags(cfg)))\nif cfg.kind == \"StaticLib\" then\nif
cfg.platform:startswith(\"Universal\") then\n_p(' LINKCMD = libtool -o
$(TARGET)')\nelse\nif (not prj.options.ArchiveSplit) then\nif cc.llvm then\n_p('
LINKCMD = $(AR) rcs $(TARGET)')\nelse\n_p(' LINKCMD = $(AR) -rcs
$(TARGET)')\nend\nelse\nif cc.llvm then\n_p(' LINKCMD = $(AR) qc
$(TARGET)')\n_p(' LINKCMD_NDX= $(AR) cs $(TARGET)')\nelse\n_p(' LINKCMD
= $(AR) -qc $(TARGET)')\n_p(' LINKCMD_NDX= $(AR) -cs
$(TARGET)')\nend\nend\nend\nelse\nlocal tool = iif(cfg.language == \"C\",
\"CC\", \"CXX\")\n_p(' LINKCMD = $(%s) -o $(TARGET) $(OBJECTS)
$(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS)', tool)\nend
\nend\nfunction cpp.pchconfig(cfg)\nif "
++ "not cfg.pchheader or cfg.flags.NoPCH then\nreturn\nend\nlocal pch =
cfg.pchheader\nfor _, incdir in ipairs(cfg.includedirs) do\nlocal abspath =
path.getabsolute(path.join(cfg.project.location, incdir))\nlocal testname =
path.join(abspath, pch)\nif os.isfile(testname) then\npch = path.getrelative(cfg.location,
testname)\nbreak\nend\nend\n_p(' PCH = %s', _MAKE.esc(pch))\n_p(' GCH
= $(OBJDIR)/$(notdir $(PCH)).gch')\nend\nfunction
cpp.pchrules(prj)\n_p('ifneq (,$(PCH))')\n_p('$(GCH):
$(PCH)')\n_p('\\t@echo $(notdir $<)')\nlocal cmd = iif(prj.language ==
\"C\", \"$(CC) -x c-header $(ALL_CFLAGS)\", \"$(CXX) -x
c++-header $(ALL_CXXFLAGS)\")\n_p('\\t$(SILENT) %s -MMD -MP $(DEFINES)
$(INCLUDES) -o \"$@\" -MF \"$(@:%%.gch=%%.d)\" -c
\"$<\"', cmd)\n_p('endif')\n_p('')\nend\nfunction
cpp.fileRules(prj)\nfor _, file in ipairs(prj.files or {}) do\nif path.iscppfile(file)
then\n_p('$(OBJDIR)/%s.o: %s'\n, _MAKE.esc(path.trimdots(path.removeext(file)))\n,
_MAKE.esc(file)\n
)\nif (path.isobjcfile(file) and prj.ms"
++ "gcompile_objc) then\n_p('\\t@echo ' .. prj.msgcompile_objc)\nelseif
prj.msgcompile then\n_p('\\t@echo ' .. prj.msgcompile)\nelse\n_p('\\t@echo
$(notdir $<)')\nend\nif (path.isobjcfile(file)) then\n_p('\\t$(SILENT) $(CXX)
$(ALL_OBJCFLAGS) $(FORCE_INCLUDE) -o \"$@\" -MF $(@:%%.o=%%.d) -c
\"$<\"')\nelse\ncpp.buildcommand(path.iscfile(file) and not
prj.options.ForceCPP, \"o\")\nend\nfor _, task in ipairs(prj.postcompiletasks or
{}) do\n_p('\\t$(SILENT) %s', task)\n_p('')\nend\n_p('')\nelseif
(path.getextension(file) == \".rc\") then\n_p('$(OBJDIR)/%s.res: %s',
_MAKE.esc(path.getbasename(file)), _MAKE.esc(file))\nif prj.msgresource
then\n_p('\\t@echo ' .. prj.msgresource)\nelse\n_p('\\t@echo $(notdir
$<)')\nend\n_p('\\t$(SILENT) $(RESCOMP) $< -O coff -o \"$@\"
$(ALL_RESFLAGS)')\n_p('')\nend\nend\nend\nfunction
cpp.dependencyRules(prj)\nfor _, dependency in ipairs(prj.dependency or {}) do\nfor _, dep
in ipairs(dependency or {}) do\nif (dep[3]==nil or dep[3]==false) then\n_p('$(
OBJDIR)/%s.o: %s'\n, _MAKE.esc(path.tri"
++ "mdots(path.removeext(path.getrelative(prj.location, dep[1]))))\n,
_MAKE.esc(path.getrelative(prj.location, dep[2]))\n)\nelse\n_p('%s: %s'\n,
_MAKE.esc(dep[1])\n, _MAKE.esc(path.getrelative(prj.location,
dep[2]))\n)\nend\n_p('')\nend\nend\nend\nfunction cpp.buildcommand(iscfile,
objext)\nlocal flags = iif(iscfile, '$(CC) $(ALL_CFLAGS)', '$(CXX)
$(ALL_CXXFLAGS)')\n_p('\\t$(SILENT) %s $(FORCE_INCLUDE) -o \"$@\" -MF
$(@:%%.%s=%%.d) -c \"$<\"', flags, objext)\nend\n",
/* actions/make/make_csharp.lua */
"local function getresourcefilename(cfg, fname)\nif path.getextension(fname) ==
\".resx\" then\n local name = cfg.buildtarget.basename .. \".\"\n
local dir = path.getdirectory(fname)\n if dir ~= \".\" then \nname = name ..
path.translate(dir, \".\") .. \".\"\nend\nreturn
\"$(OBJDIR)/\" .. _MAKE.esc(name .. path.getbasename(fname)) ..
\".resources\"\nelse\nreturn fname\nend\nend\nfunction
premake.make_csharp(prj)\nlocal csc = premake.dotnet\nlocal cfglibs = { }\nlocal cfgpairs
= { }\nlocal anycfg\nfor cfg in premake.eachconfig(prj) do\nanycfg = cfg\ncfglibs[cfg] =
premake.getlinks(cfg, \"siblings\", \"fullpath\")\ncfgpairs[cfg] = {
}\nfor _, fname in ipairs(cfglibs[cfg]) do\nif path.getdirectory(fname) ~=
cfg.buildtarget.directory then\ncfgpairs[cfg][\"$(TARGETDIR)/\" ..
_MAKE.esc(path.getname(fname))] = _MAKE.esc(fname)\nend\nend\nend\nlocal sources =
{}\nlocal embedded = { }\nlocal copypairs = { }\nfor fcfg in premake.project.eachfile(prj)
do\nlocal action = csc.
getbuildaction(fcfg)\nif action == \"Co"
Index: mame.spec
===================================================================
RCS file: /cvs/nonfree/rpms/mame/devel/mame.spec,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -r1.121 -r1.122
--- mame.spec 29 Oct 2015 22:29:47 -0000 1.121
+++ mame.spec 26 Nov 2015 20:16:26 -0000 1.122
@@ -5,7 +5,7 @@
%bcond_with debug
%bcond_with simd
-%global baseversion 167
+%global baseversion 168
# work around low memory on the RPM Fusion builder
%bcond_without lowmem
@@ -322,6 +322,10 @@
%changelog
+* Thu Nov 26 2015 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.168-1
+- Updated to 0.168
+- Updated the smpfix patch
+
* Thu Oct 29 2015 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.167-1
- Update 0.167
- Updated the smpfix patch
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/mame/devel/sources,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -r1.93 -r1.94
--- sources 29 Oct 2015 22:29:47 -0000 1.93
+++ sources 26 Nov 2015 20:16:26 -0000 1.94
@@ -1,2 +1,2 @@
-4ace436cf420b3b741972920f522f694 mame0167s.exe
-e2d79f8308ab133f713d388b62089bb4 whatsnew.zip
+1c271ff20dea6a4d5ced7dd1f00fd43b mame0168s.exe
+2e91d160438edb391f5e9f3d62a9d473 whatsnew.zip