trunk/3rdparty/genie/src/host/scripts.c
| r250249 | r250250 | |
| 176 | 176 | "function premake.cmake.workspace(sln)\n_p('cmake_minimum_required(VERSION 2.8.4)')\n_p('')\nfor i,prj in ipairs(sln.projects) do\nlocal name = premake.esc(prj.name)\n_p('add_subdirectory(%s)', name)\nend\nend\n", |
| 177 | 177 | |
| 178 | 178 | /* actions/cmake/cmake_project.lua */ |
| 179 | | "local cmake = premake.cmake\nlocal tree = premake.tree\nfunction cmake.files(prj)\nlocal tr = premake.project.buildsourcetree(prj)\ntree.traverse(tr, {\nonbranchenter = function(node, depth)\nend,\nonbranchexit = function(node, depth)\nend,\nonleaf = function(node, depth)\n_p(1, '../%s', node.cfg.name)\nend,\n}, true, 1)\nend\nfunction premake.cmake.project(prj)\nio.indent = \" \"\n_p('cmake_minimum_required(VERSION 2.8.4)')\n_p('')\n_p('project(%s)', premake.esc(prj.name))\n_p('set(')\n_p('source_list')\ncmake.files(prj)\n_p(')')\nlocal platforms = premake.filterplatforms(prj.solution, premake[_OPTIONS.cc].platforms, \"Native\")\nfor i = #platforms, 1, -1 do\nif premake.platforms[platforms[i]].iscrosscompiler then\ntable.remove(platforms, i)\nend\nend \nfor _, platform in ipairs(platforms) do\nfor cfg in premake.eachconfig(prj, platform) do\nfor _,v in ipairs(cfg.includedirs) do\n_p('include_directories(../%s)', premake.esc(v))\nend\nend\nend\nif (prj.kind=='StaticLib') then\n_p('add_library(%s STATIC ${sour" |
| 180 | | "ce_list})',premake.esc(prj.name))\nend\nif (prj.kind=='SharedLib') then\n_p('add_library(%s SHARED ${source_list})',premake.esc(prj.name))\nend\nif (prj.kind=='ConsoleApp') then\n_p('add_executable(%s ${source_list})',premake.esc(prj.name))\nend\nif (prj.kind=='WindowedApp') then\n_p('add_executable(%s ${source_list})',premake.esc(prj.name))\nend\nend\n", |
| 179 | "local cmake = premake.cmake\nlocal tree = premake.tree\nfunction cmake.files(prj)\nlocal tr = premake.project.buildsourcetree(prj)\ntree.traverse(tr, {\nonbranchenter = function(node, depth)\nend,\nonbranchexit = function(node, depth)\nend,\nonleaf = function(node, depth)\n_p(1, '../%s', node.cfg.name)\nend,\n}, true, 1)\nend\nfunction premake.cmake.project(prj)\nio.indent = \" \"\n_p('cmake_minimum_required(VERSION 2.8.4)')\n_p('')\n_p('project(%s)', premake.esc(prj.name))\n_p('set(')\n_p('source_list')\ncmake.files(prj)\n_p(')')\nlocal platforms = premake.filterplatforms(prj.solution, premake[_OPTIONS.cc].platforms, \"Native\")\nfor i = #platforms, 1, -1 do\nif premake.platforms[platforms[i]].iscrosscompiler then\ntable.remove(platforms, i)\nend\nend \nfor _, platform in ipairs(platforms) do\nfor cfg in premake.eachconfig(prj, platform) do\nfor _,v in ipairs(cfg.includedirs) do\n_p('include_directories(../%s)', premake.esc(v))\nend\nfor _,v in ipairs(cfg.defines) do\n_p('add_definitions(-D%s)', premake.esc(" |
| 180 | "v))\nend\nbreak\nend\nbreak\nend\nif (prj.kind=='StaticLib') then\n_p('add_library(%s STATIC ${source_list})',premake.esc(prj.name))\nend\nif (prj.kind=='SharedLib') then\n_p('add_library(%s SHARED ${source_list})',premake.esc(prj.name))\nend\nif (prj.kind=='ConsoleApp') then\n_p('add_executable(%s ${source_list})',premake.esc(prj.name))\nend\nif (prj.kind=='WindowedApp') then\n_p('add_executable(%s ${source_list})',premake.esc(prj.name))\nend\nend\n", |
| 181 | 181 | |
| 182 | 182 | /* actions/make/_make.lua */ |
| 183 | 183 | "_MAKE = { }\npremake.make = { }\nlocal make = premake.make\nfunction _MAKE.esc(value)\nlocal result\nif (type(value) == \"table\") then\nresult = { }\nfor _,v in ipairs(value) do\ntable.insert(result, _MAKE.esc(v))\nend\nreturn result\nelse\nresult = value:gsub(\"\\\\\", \"\\\\\\\\\")\nresult = result:gsub(\" \", \"\\\\ \")\nresult = result:gsub(\"%%(\", \"\\\\%(\")\nresult = result:gsub(\"%%)\", \"\\\\%)\")\nresult = result:gsub(\"$\\\\%((.-)\\\\%)\", \"$%(%1%)\")\nreturn result\nend\nend\nfunction premake.make_copyrule(source, target)\n_p('%s: %s', target, source)\n_p('\\t@echo Copying $(notdir %s)', target)\n_p('\\t-$(call COPY,%s,%s)', source, target)\nend\nfunction premake.make_mkdirrule(var)\n_p('\\t@echo Creating %s', var)\n_p('\\t-$(call MKDIR,%s)', var)\n_p('')\nend\nfunction make.list(value)\nif #value > 0 then\nreturn \" \" .. table.concat(value, \" \")\nelse\nreturn \"\"\nend\nend\nfunction _MAKE.getmakefilename(this, searchprjs)\nlocal count = 0\nfor sln in premake.solution.each() do\nif (sln.loca" |
trunk/src/mame/drivers/namcos23.cpp
| r250249 | r250250 | |
| 3377 | 3377 | INPUT_PORTS_END |
| 3378 | 3378 | |
| 3379 | 3379 | |
| 3380 | static INPUT_PORTS_START( downhill ) |
| 3381 | PORT_START("P1") |
| 3382 | PORT_BIT( 0xfff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3380 | 3383 | |
| 3384 | PORT_START("P2") |
| 3385 | PORT_BIT( 0xfff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3381 | 3386 | |
| 3387 | PORT_START("IN01") |
| 3388 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON3) // brake left |
| 3389 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_START1) // start |
| 3390 | PORT_BIT(0x100, IP_ACTIVE_LOW, IPT_SERVICE) PORT_TOGGLE // test switch |
| 3391 | PORT_BIT(0x200, IP_ACTIVE_LOW, IPT_JOYSTICK_UP) // select up |
| 3392 | PORT_BIT(0x400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN) // select down |
| 3393 | PORT_BIT(0x800, IP_ACTIVE_LOW, IPT_BUTTON1) // enter |
| 3394 | PORT_BIT(0xf00c, IP_ACTIVE_LOW, IPT_UNKNOWN) |
| 3382 | 3395 | |
| 3396 | PORT_START("IN23") |
| 3397 | PORT_BIT(0x400, IP_ACTIVE_LOW, IPT_BUTTON4) // brake right |
| 3398 | PORT_BIT(0xfbff, IP_ACTIVE_LOW, IPT_UNKNOWN) |
| 3399 | |
| 3400 | PORT_START("SERVICE") |
| 3401 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) // service coin |
| 3402 | |
| 3403 | PORT_START("DSW") |
| 3404 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 3405 | PORT_DIPNAME( 0x02, 0x02, "Skip POST" ) |
| 3406 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 3407 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3408 | PORT_DIPNAME( 0x04, 0x04, "Freeze?" ) |
| 3409 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 3410 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3411 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 3412 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 3413 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3414 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 3415 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 3416 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3417 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 3418 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 3419 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3420 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 3421 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 3422 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3423 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 3424 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 3425 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 3426 | INPUT_PORTS_END |
| 3427 | |
| 3428 | |
| 3383 | 3429 | /*************************************************************************** |
| 3384 | 3430 | |
| 3385 | 3431 | Machine Drivers |
| r250249 | r250250 | |
| 5081 | 5127 | GAME( 1997, rapidrvrv2c, rapidrvr, gorgon, rapidrvr, namcos23_state, s23, ROT0, "Namco", "Rapid River (RD2 Ver. C)", GAME_FLAGS ) // 97/11/27, Europe |
| 5082 | 5128 | GAME( 1997, rapidrvrp, rapidrvr, gorgon, rapidrvrp, namcos23_state, s23, ROT0, "Namco", "Rapid River (prototype)", GAME_FLAGS ) // 97/11/10, USA |
| 5083 | 5129 | GAME( 1997, finfurl, 0, gorgon, finfurl, namcos23_state, s23, ROT0, "Namco", "Final Furlong (FF2 Ver. A)", GAME_FLAGS ) |
| 5084 | | GAME( 1997, downhill, 0, s23, s23, namcos23_state, s23, ROT0, "Namco", "Downhill Bikers (DH3 Ver. A)", GAME_FLAGS ) |
| 5130 | GAME( 1997, downhill, 0, s23, downhill, namcos23_state, s23, ROT0, "Namco", "Downhill Bikers (DH3 Ver. A)", GAME_FLAGS ) |
| 5085 | 5131 | GAME( 1997, motoxgo, 0, s23, s23, namcos23_state, s23, ROT0, "Namco", "Motocross Go! (MG3 Ver. A)", GAME_FLAGS ) |
| 5086 | 5132 | GAME( 1997, motoxgov2a, motoxgo, s23, s23, namcos23_state, s23, ROT0, "Namco", "Motocross Go! (MG2 Ver. A)", GAME_FLAGS ) |
| 5087 | 5133 | GAME( 1997, motoxgov1a, motoxgo, s23, s23, namcos23_state, s23, ROT0, "Namco", "Motocross Go! (MG1 Ver. A, set 1)", GAME_FLAGS ) |