keine_schweine test is not platform dependent
This commit is contained in:
parent
0c31686fec
commit
b320e02903
3 changed files with 16 additions and 12 deletions
|
|
@ -18,10 +18,9 @@
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
#
|
#
|
||||||
when defined(Linux):
|
|
||||||
const Lib = "libchipmunk.so.6.1.1"
|
const Lib = "libchipmunk.so.6.1.1"
|
||||||
else:
|
|
||||||
{.error: "Platform unsupported".}
|
|
||||||
when defined(MoreNimrod):
|
when defined(MoreNimrod):
|
||||||
{.hint: "MoreNimrod defined; some Chipmunk functions replaced in Nimrod".}
|
{.hint: "MoreNimrod defined; some Chipmunk functions replaced in Nimrod".}
|
||||||
{.deadCodeElim: on.}
|
{.deadCodeElim: on.}
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,9 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
"""
|
"""
|
||||||
when defined(Linux):
|
|
||||||
const Lib = "libenet.so.1(|.0.3)"
|
const Lib = "libenet.so.1(|.0.3)"
|
||||||
else:
|
|
||||||
{.error: "Your platform has not been accounted for."}
|
|
||||||
{.deadCodeElim: ON.}
|
{.deadCodeElim: ON.}
|
||||||
const
|
const
|
||||||
ENET_VERSION_MAJOR* = 1
|
ENET_VERSION_MAJOR* = 1
|
||||||
|
|
@ -267,7 +266,7 @@ const
|
||||||
ENET_PEER_RELIABLE_WINDOW_SIZE = 0x1000
|
ENET_PEER_RELIABLE_WINDOW_SIZE = 0x1000
|
||||||
ENET_PEER_FREE_RELIABLE_WINDOWS = 8
|
ENET_PEER_FREE_RELIABLE_WINDOWS = 8
|
||||||
|
|
||||||
when defined(Linux):
|
when defined(Linux) or true:
|
||||||
import posix
|
import posix
|
||||||
const
|
const
|
||||||
ENET_SOCKET_NULL*: cint = -1
|
ENET_SOCKET_NULL*: cint = -1
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,12 @@ when defined(linux):
|
||||||
LibS = "libcsfml-system.so.2.0"
|
LibS = "libcsfml-system.so.2.0"
|
||||||
LibW = "libcsfml-window.so.2.0"
|
LibW = "libcsfml-window.so.2.0"
|
||||||
else:
|
else:
|
||||||
{.error: "Platform unsupported".}
|
# We only compile for testing here, so it doesn't matter it's not supported
|
||||||
|
const
|
||||||
|
LibG = "libcsfml-graphics.so.2.0"
|
||||||
|
LibS = "libcsfml-system.so.2.0"
|
||||||
|
LibW = "libcsfml-window.so.2.0"
|
||||||
|
#{.error: "Platform unsupported".}
|
||||||
{.deadCodeElim: on.}
|
{.deadCodeElim: on.}
|
||||||
{.pragma: pf, pure, final.}
|
{.pragma: pf, pure, final.}
|
||||||
type
|
type
|
||||||
|
|
@ -153,8 +158,9 @@ type
|
||||||
KeyF15, #/< The F15 key
|
KeyF15, #/< The F15 key
|
||||||
KeyPause, #/< The Pause key
|
KeyPause, #/< The Pause key
|
||||||
KeyCount #/< Keep last -- the total number of keyboard keys
|
KeyCount #/< Keep last -- the total number of keyboard keys
|
||||||
when defined(linux): #or defined(bsd) ??
|
|
||||||
type TWindowHandle* = clong
|
type TWindowHandle* = clong
|
||||||
|
|
||||||
#elif defined(mac):
|
#elif defined(mac):
|
||||||
# type TWindowHandle* = pointer ##typedef void* sfWindowHandle; <- whatever the hell that is
|
# type TWindowHandle* = pointer ##typedef void* sfWindowHandle; <- whatever the hell that is
|
||||||
#elif defined(windows):
|
#elif defined(windows):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue