trunk/scripts/src/3rdparty.lua
| r250172 | r250173 | |
| 91 | 91 | uuid "04fbf89e-4761-4cf2-8a12-64500cf0c5c5" |
| 92 | 92 | kind "StaticLib" |
| 93 | 93 | |
| 94 | | configuration { "vs*" } |
| 95 | | buildoptions { |
| 96 | | -- from lib section |
| 97 | | "/wd4290", -- warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow) |
| 98 | | "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data |
| 99 | | -- from emu section |
| 100 | | "/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter |
| 101 | | "/wd4127", -- warning C4127: conditional expression is constant |
| 102 | | "/wd4245", -- warning C4245: 'conversion' : conversion from 'type1' to 'type2', signed/unsigned mismatch |
| 103 | | "/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data |
| 104 | | "/wd4800", -- warning C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning) |
| 105 | | "/wd4018", -- warning C4018: 'x' : signed/unsigned mismatch |
| 106 | | "/wd4150", -- warning C4150: deletion of pointer to incomplete type 'xxx'; no destructor called |
| 107 | | |
| 108 | | -- in softfloat |
| 109 | | "/wd4146", -- warning C4146: unary minus operator applied to unsigned type, result still unsigned |
| 110 | | } |
| 111 | | |
| 112 | | configuration { "gmake" } |
| 113 | | buildoptions { |
| 114 | | "-Wno-sign-compare", |
| 115 | | } |
| 116 | | |
| 117 | | if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then |
| 118 | | buildoptions { |
| 119 | | "-Wno-tautological-compare", |
| 120 | | } |
| 121 | | end |
| 122 | | |
| 123 | | configuration { } |
| 124 | | |
| 125 | 94 | options { |
| 126 | 95 | "ForceCPP", |
| 127 | 96 | } |
| 128 | 97 | |
| 129 | 98 | includedirs { |
| 130 | 99 | MAME_DIR .. "src/osd", |
| 131 | | MAME_DIR .. "src/emu", |
| 132 | | MAME_DIR .. "src/lib", |
| 133 | | MAME_DIR .. "src/lib/util", |
| 134 | | MAME_DIR .. "3rdparty", |
| 135 | 100 | } |
| 136 | | if _OPTIONS["with-bundled-expat"] then |
| 137 | | includedirs { |
| 138 | | MAME_DIR .. "3rdparty/expat/lib/", |
| 139 | | } |
| 140 | | end |
| 141 | 101 | |
| 142 | 102 | files { |
| 143 | 103 | MAME_DIR .. "3rdparty/softfloat/softfloat.c", |